From 72e4eb197193860c7b1fcfc0c66f14aa037e3fbd Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Tue, 28 Jun 2011 20:58:07 +0000 Subject: [PATCH] - add 800x600 to nifty preview git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7766 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../src/com/jme3/gde/gui/multiview/NiftyPreviewPanel.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyPreviewPanel.java b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyPreviewPanel.java index 2e159b9e0..4b0fb3831 100644 --- a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyPreviewPanel.java +++ b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyPreviewPanel.java @@ -69,7 +69,7 @@ public class NiftyPreviewPanel extends PanelView { toolBar.setPreferredSize(new Dimension(10000, 24)); toolBar.setMaximumSize(new Dimension(10000, 24)); toolBar.setFloatable(false); - JComboBox comboBox = new JComboBox(new String[]{"640x480", "1024x768", "1280x720"}); + JComboBox comboBox = new JComboBox(new String[]{"640x480", "800x600", "1024x768", "1280x720"}); comboBox.addItemListener(new ItemListener() { public void itemStateChanged(ItemEvent e) { @@ -85,7 +85,10 @@ public class NiftyPreviewPanel extends PanelView { } else if ("1280x720".equals(string)) { width = 1280; height = 720; - } else { + } else if ("800x600".equals(string)) { + width = 800; + height = 600; + } else{ width = 640; height = 480; }