Skip to content

Commit

Permalink
Changing preferred height from 800 to 600 as windows do not fit on sm…
Browse files Browse the repository at this point in the history
…aller screens.
  • Loading branch information
geniot committed Aug 18, 2021
1 parent de88af0 commit a7a3586
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ public DesktopApplication() {
//Display the window.
try {
int width = JNovelPreferences.getInt(Prop.WIDTH.name(), 600);
int height = JNovelPreferences.getInt(Prop.HEIGHT.name(), 800);
int height = JNovelPreferences.getInt(Prop.HEIGHT.name(), 600);
setPreferredSize(new Dimension(width, height));
} catch (Exception ex) {
setPreferredSize(new Dimension(600, 800));
setPreferredSize(new Dimension(600, 600));
}

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public PreferencesDialog(JNovelistApplication f) {
setIconImage(DesktopApplication.ICON);
getRootPane().setDefaultButton(buttonOK);
setTitle("Preferences");
setPreferredSize(new Dimension(600, 800));
setPreferredSize(new Dimension(600, 600));
String fonts[] = GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();
fontComboBox.setModel(new DefaultComboBoxModel(fonts));

Expand Down

0 comments on commit a7a3586

Please sign in to comment.