}
};*/
optionsClick = new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
SettingsWindow window = SettingsWindow.getSettingsWindow(core.getParser());
Container c = core.getButtons();
while ((c = c.getParent()) != null && !(c instanceof JFrame));
if (c != null) {
Point p = c.getLocation();
p.x = p.x + c.getWidth();
window.setLocation(p);
}
window.makeVisible();
}
};
helpClick = new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
SettingsWindow window = SettingsWindow.getSettingsWindow(core.getParser());
int index = window.indexOfTab("Help");
if (index == -1)
return;
window.switchToTab(index);
Container c = core.getButtons();
while ((c = c.getParent()) != null && !(c instanceof JFrame));
if (c != null) {
Point p = c.getLocation();
p.x = p.x + c.getWidth();
window.setLocation(p);
}
window.makeVisible();
}
};
}