Package Functions | |
| JWPFrameSS (String s, String d, String c, String b, String f, String w, String h, boolean app) | |
We want to show in fullscreen mode, however, it is not possible in Java 1.4. Thus we show a maximized frame.
Definition at line 194 of file JWebPresenterSS.java.
|
||||||||||||||||||||||||||||||||||||
|
Constructor.
Definition at line 206 of file JWebPresenterSS.java. 00206 {
00207 setDefaultCloseOperation(app?DISPOSE_ON_CLOSE:EXIT_ON_CLOSE);
00208
00209 int width = 0;
00210 try {
00211 width = Integer.parseInt(w);
00212 }
00213 catch (NumberFormatException e) {
00214 width = 0;
00215 }
00216
00217 int height = 0;
00218 try {
00219 height = Integer.parseInt(h);
00220 }
00221 catch (NumberFormatException e) {
00222 height = 0;
00223 }
00224
00225 Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
00226 if (width < 1 || width > screen.width) width = screen.width;
00227 if (height < 1 || height > screen.height) height = screen.height;
00228 setSize(width, height);
00229
00230 // Set the window be undecoreated for full screen mode -- require JRE 1.4+.
00231 if (width == screen.width && height == screen.height) setUndecorated(true);
00232
00233 getContentPane().add(new JWPPanelSS(this, s, d, c, b, f, app));
00234 }
|
1.3.9.1