aboutsummaryrefslogtreecommitdiff
path: root/libjava/javax/swing/JFrame.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/javax/swing/JFrame.java')
-rw-r--r--libjava/javax/swing/JFrame.java23
1 files changed, 18 insertions, 5 deletions
diff --git a/libjava/javax/swing/JFrame.java b/libjava/javax/swing/JFrame.java
index 5c362ce..3c254ab 100644
--- a/libjava/javax/swing/JFrame.java
+++ b/libjava/javax/swing/JFrame.java
@@ -59,10 +59,23 @@ import javax.accessibility.AccessibleContext;
*/
public class JFrame extends Frame implements WindowConstants, RootPaneContainer
{
- protected AccessibleContext accessibleContext;
+ private static final long serialVersionUID = -3362141868504252139L;
+
+ protected AccessibleContext accessibleContext;
+
+ private int close_action = HIDE_ON_CLOSE;
+
+ private static boolean defaultLookAndFeelDecorated = false;
- private int close_action = HIDE_ON_CLOSE;
-
+ public static void setDefaultLookAndFeelDecorated(boolean d)
+ {
+ defaultLookAndFeelDecorated = d;
+ }
+
+ public static boolean isDefaultLookAndFeelDecorated()
+ {
+ return defaultLookAndFeelDecorated;
+ }
/***************************************************
*
@@ -111,10 +124,10 @@ public class JFrame extends Frame implements WindowConstants, RootPaneContainer
return d;
}
- JMenuBar getJMenuBar()
+ public JMenuBar getJMenuBar()
{ return getRootPane().getJMenuBar(); }
- void setJMenuBar(JMenuBar menubar)
+ public void setJMenuBar(JMenuBar menubar)
{ getRootPane().setJMenuBar(menubar); }