Normand Briere
2019-09-02 0216409e390b2005d6bc4eaf564ef9ca2e508dab
ObjEditor.java
....@@ -906,10 +906,20 @@
906906
907907 cButton minButton;
908908 cButton maxButton;
909
- cButton fullButton;
909
+ cButton fullScreenButton;
910910 cButton collapseButton;
911911 cButton maximize3DButton;
912912
913
+ public void Show3DView()
914
+ {
915
+ // bug
916
+ //gridPanel.setDividerLocation(1.0);
917
+ //bigPanel.setDividerLocation(0.0);
918
+ bigThree.ClearUI();
919
+ bigThree.add(centralPanel);
920
+ bigThree.FlushUI();
921
+ }
922
+
913923 void ToggleFullScreen()
914924 {
915925 GraphicsDevice device = frame.getGraphicsConfiguration().getDevice();
....@@ -936,14 +946,18 @@
936946 // framePanel.setDividerLocation(46); // icons are 24x24
937947
938948 //frame.setVisible(true);
939
-// radio.layout = keepButton;
949
+ radio.layout = keepButton;
940950 //theFrame = null;
941951 keepButton = null;
942
-// radio.layout.doClick();
952
+ radio.layout.doClick();
943953
944954 } else
945955 {
946956 keepButton = radio.layout;
957
+
958
+ radio.layout = twoButton;
959
+ Show3DView();
960
+
947961 //keeprect = frame.getBounds();
948962 // frame.setBounds(0, 0, frame.getToolkit().getScreenSize().width,
949963 // frame.getToolkit().getScreenSize().height);
....@@ -965,6 +979,7 @@
965979 // radio.layout = fullscreenLayout;
966980 // radio.layout.doClick();
967981 //frame.setVisible(true);
982
+ CollapseToolbar();
968983 }
969984 frame.validate();
970985
....@@ -1985,11 +2000,16 @@
19852000 {
19862001 if ((Integer)pce.getOldValue() == 1)
19872002 {
1988
- if (radio.layout != expandedLayout)
2003
+ if (CameraPane.FULLSCREEN)
19892004 {
1990
- radio.layout = expandedLayout;
1991
- radio.layout.doClick();
2005
+ ToggleFullScreen();
19922006 }
2007
+
2008
+// if (radio.layout != expandedLayout)
2009
+// {
2010
+// radio.layout = expandedLayout;
2011
+// radio.layout.doClick();
2012
+// }
19932013 }
19942014 }
19952015 });