--- a/jdk/src/share/classes/javax/swing/plaf/metal/MetalInternalFrameUI.java Fri Jun 27 10:26:39 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/metal/MetalInternalFrameUI.java Mon Jun 30 16:32:36 2014 +0400
@@ -47,6 +47,9 @@
private static final Border handyEmptyBorder = new EmptyBorder(0,0,0,0);
+ /**
+ * The property {@code JInternalFrame.isPalette}.
+ */
protected static String IS_PALETTE = "JInternalFrame.isPalette";
private static String IS_PALETTE_KEY = "JInternalFrame.isPalette";
private static String FRAME_TYPE = "JInternalFrame.frameType";
@@ -54,10 +57,22 @@
private static String PALETTE_FRAME = "palette";
private static String OPTION_DIALOG = "optionDialog";
+
+ /**
+ * Constructs a new {@code MetalInternalFrameUI} instance.
+ *
+ * @param b an internal frame
+ */
public MetalInternalFrameUI(JInternalFrame b) {
super(b);
}
+ /**
+ * Constructs a new {@code MetalInternalFrameUI} instance.
+ *
+ * @param c a component
+ * @return a new {@code MetalInternalFrameUI} instance
+ */
public static ComponentUI createUI(JComponent c) {
return new MetalInternalFrameUI( (JInternalFrame) c);
}
@@ -152,6 +167,11 @@
}
}
+ /**
+ * If {@code isPalette} is {@code true}, sets palette border and title
+ *
+ * @param isPalette if {@code true}, sets palette border and title
+ */
// this should be deprecated - jcs
public void setPalette(boolean isPalette) {
if (isPalette) {