Cleanup and Bug Fixes
- Fixed a bug that left View menu items checked after the associated windows closed. - Cleaned up UI init code for several components.
This commit is contained in:
1 parent
933b09827a
commit
3636e78435
5 files changed
+67
-69
No files matched your search
@@ -48,7 +48,8 @@ public class PreferencesDialog extends Observable implements Preferences {
|
||||
|
||||
public PreferencesDialog(Frame parent, boolean modal) {
|
||||
this.dialog = new JDialog(parent, modal);
|
||||
initComponents();
|
||||
|
||||
createUi();
|
||||
updateUi();
|
||||
}
|
||||
|
||||
@@ -59,7 +60,7 @@ public class PreferencesDialog extends Observable implements Preferences {
|
||||
/**
|
||||
* TODO: Validation of input.
|
||||
*/
|
||||
private void initComponents() {
|
||||
private void createUi() {
|
||||
dialog.setTitle("Preferences");
|
||||
Container contents = dialog.getContentPane();
|
||||
|
||||
|
||||
Reference in new issue
Block a user