<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java_Tutorial%2FSwing%2FJInternalFrame</id>
		<title>Java Tutorial/Swing/JInternalFrame - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java_Tutorial%2FSwing%2FJInternalFrame"/>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java_Tutorial/Swing/JInternalFrame&amp;action=history"/>
		<updated>2026-04-10T17:47:27Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://jexp.ru/index.php?title=Java_Tutorial/Swing/JInternalFrame&amp;diff=4021&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java_Tutorial/Swing/JInternalFrame&amp;diff=4021&amp;oldid=prev"/>
				<updated>2010-06-01T04:57:27Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 04:57, 1 июня 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://jexp.ru/index.php?title=Java_Tutorial/Swing/JInternalFrame&amp;diff=4020&amp;oldid=prev</id>
		<title> в 17:44, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java_Tutorial/Swing/JInternalFrame&amp;diff=4020&amp;oldid=prev"/>
				<updated>2010-05-31T17:44:27Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==  Customizing a JInternalFrame Look and Feel ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Property StringObject TypeInternalFrame.actionMapActionMapInternalFrame.activeBorderColorColorInternalFrame.activeTitleBackgroundColorInternalFrame.activeTitleForegroundColorInternalFrame.activeTitleGradientListInternalFrame.borderBorderInternalFrame.borderColorColorInternalFrame.borderDarkShadowColorInternalFrame.borderHighlightColorInternalFrame.borderLightColorInternalFrame.borderShadowColorInternalFrame.borderWidthIntegerInternalFrame.closeButtonToolTipStringInternalFrame.closeIconIconInternalFrame.closeSoundStringInternalFrame.iconIconInternalFrame.iconButtonToolTipStringInternalFrame.iconifyIconIconInternalFrame.inactiveBorderColorColorInternalFrame.inactiveTitleBackgroundColorInternalFrame.inactiveTitleForegroundColorInternalFrame.inactiveTitleGradientListInternalFrame.layoutTitlePaneAtOriginBooleanInternalFrame.maxButtonToolTipStringInternalFrame.maximizeIconIconInternalFrame.maximizeSoundStringInternalFrame.minimizeIconIconInternalFrame.minimizeIconBackgroundColorInternalFrame.minimizeSoundStringInternalFrame.optionDialogBorderBorderInternalFrame.paletteBorderBorderInternalFrame.paletteCloseIconIconInternalFrame.paletteTitleHeightIntegerInternalFrame.resizeIconHighlightColorInternalFrame.resizeIconShadowColorInternalFrame.restoreButtonToolTipStringInternalFrame.restoreDownSoundStringInternalFrame.restoreUpSoundStringInternalFrame.titleButtonHeightIntegerInternalFrame.titleButtonWidthIntegerInternalFrame.titleFontFontInternalFrame.titlePaneHeightIntegerInternalFrame.useTaskBarBooleanInternalFrame.windowBindingsObject[ ]InternalFrameTitlePane.closeButtonAccessibleNameStringInternalFrameTitlePane.closeButtonTextStringInternalFrameTitlePane.closeIconIconInternalFrameTitlePane.iconifyButtonAccessibleNameStringInternalFrameTitlePane.iconifyIconIconInternalFrameTitlePane.maximizeButtonAccessibleNameStringInternalFrameTitlePane.maximizeButtonTextStringInternalFrameTitlePane.maximizeIconIconInternalFrameTitlePane.minimizeButtonTextStringInternalFrameTitlePane.minimizeIconIconInternalFrameTitlePane.moveButtonTextStringInternalFrameTitlePane.restoreButtonTextStringInternalFrameTitlePane.sizeButtonTextStringInternalFrameTitlePane.titlePaneLayoutLayoutManagerInternalFrameTitlePaneUIStringInternalFrameUIString&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Customizing JInternalFrame.DesktopIcon Look and Feel ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Property StringObject TypeDesktopIcon.backgroundColorDesktopIcon.borderBorderDesktopIcon.fontFontDesktopIcon.foregroundColorDesktopIcon.iconIconDesktopIcon.widthIntegerDesktopIcon.windowBindingsObject[ ]DesktopIconUIString&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Demonstrating the use of the constants within a PropertyChangeListener. ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
import java.awt.BorderLayout;&lt;br /&gt;
import java.beans.PropertyChangeEvent;&lt;br /&gt;
import java.beans.PropertyChangeListener;&lt;br /&gt;
import javax.swing.JDesktopPane;&lt;br /&gt;
import javax.swing.JFrame;&lt;br /&gt;
import javax.swing.JInternalFrame;&lt;br /&gt;
import javax.swing.JLabel;&lt;br /&gt;
class InternalFramePropertyChangeHandler implements PropertyChangeListener {&lt;br /&gt;
  public void propertyChange(PropertyChangeEvent propertyChangeEvent) {&lt;br /&gt;
    String propertyName = propertyChangeEvent.getPropertyName();&lt;br /&gt;
    System.out.println(propertyName);&lt;br /&gt;
    if (propertyName.equals(JInternalFrame.IS_ICON_PROPERTY)) {&lt;br /&gt;
      System.out.println(&amp;quot;Icon property changed. React.&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
public class InternalFramePropertyChangeHandlerSample {&lt;br /&gt;
  public static void main(final String[] args) {&lt;br /&gt;
    JFrame frame = new JFrame();&lt;br /&gt;
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);&lt;br /&gt;
    JDesktopPane desktop = new JDesktopPane();&lt;br /&gt;
    JInternalFrame internalFrame = new JInternalFrame(&amp;quot;Can Do All&amp;quot;, true, true, true, true);&lt;br /&gt;
    InternalFramePropertyChangeHandler ins = new InternalFramePropertyChangeHandler();&lt;br /&gt;
    // Add listener for iconification events&lt;br /&gt;
    internalFrame.addPropertyChangeListener(ins);&lt;br /&gt;
    desktop.add(internalFrame);&lt;br /&gt;
    internalFrame.setBounds(25, 25, 200, 100);&lt;br /&gt;
    JLabel label = new JLabel(internalFrame.getTitle(), JLabel.CENTER);&lt;br /&gt;
    internalFrame.add(label, BorderLayout.CENTER);&lt;br /&gt;
    internalFrame.setVisible(true);&lt;br /&gt;
    frame.add(desktop, BorderLayout.CENTER);&lt;br /&gt;
    frame.setSize(500, 300);&lt;br /&gt;
    frame.setVisible(true);&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  DragMode: JDesktopPane.OUTLINE_DRAG_MODE ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
import java.awt.BorderLayout;&lt;br /&gt;
import javax.swing.JDesktopPane;&lt;br /&gt;
import javax.swing.JFrame;&lt;br /&gt;
import javax.swing.JInternalFrame;&lt;br /&gt;
import javax.swing.JLabel;&lt;br /&gt;
&lt;br /&gt;
public class InternalFrameOutLineDragSample {&lt;br /&gt;
  public static void main(final String[] args) {&lt;br /&gt;
    JFrame frame = new JFrame();&lt;br /&gt;
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);&lt;br /&gt;
    JDesktopPane desktop = new JDesktopPane();&lt;br /&gt;
    JInternalFrame internalFrame = new JInternalFrame(&amp;quot;Can Do All&amp;quot;, true, true, true, true);&lt;br /&gt;
    desktop.add(internalFrame);&lt;br /&gt;
    internalFrame.setBounds(25, 25, 200, 100);&lt;br /&gt;
    JLabel label = new JLabel(internalFrame.getTitle(), JLabel.CENTER);&lt;br /&gt;
    internalFrame.add(label, BorderLayout.CENTER);&lt;br /&gt;
    internalFrame.setVisible(true);&lt;br /&gt;
    desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);&lt;br /&gt;
    &lt;br /&gt;
    frame.add(desktop, BorderLayout.CENTER);&lt;br /&gt;
    frame.setSize(500, 300);&lt;br /&gt;
    frame.setVisible(true);&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  JInternalFrame: JInternalFrame.isPalette ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
import java.awt.BorderLayout;&lt;br /&gt;
import javax.swing.JDesktopPane;&lt;br /&gt;
import javax.swing.JFrame;&lt;br /&gt;
import javax.swing.JInternalFrame;&lt;br /&gt;
&lt;br /&gt;
public class InternalFramePaletteSample {&lt;br /&gt;
  public static void main(final String[] args) {&lt;br /&gt;
    JFrame frame = new JFrame();&lt;br /&gt;
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);&lt;br /&gt;
    JDesktopPane desktop = new JDesktopPane();&lt;br /&gt;
    &lt;br /&gt;
    JInternalFrame palette = new JInternalFrame(&amp;quot;Palette&amp;quot;, true, false, true, false);&lt;br /&gt;
    palette.setBounds(350, 150, 100, 100);&lt;br /&gt;
    palette.putClientProperty(&amp;quot;JInternalFrame.isPalette&amp;quot;, Boolean.TRUE);&lt;br /&gt;
    desktop.add(palette, JDesktopPane.PALETTE_LAYER);&lt;br /&gt;
    palette.setVisible(true);&lt;br /&gt;
    &lt;br /&gt;
    frame.add(desktop, BorderLayout.CENTER);&lt;br /&gt;
    frame.setSize(500, 300);&lt;br /&gt;
    frame.setVisible(true);&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  JInternalFrame Property Constants ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Property Name ConstantAssociated PropertyCONTENT_PANE_PROPERTYcontentPaneFRAME_ICON_PROPERTYframeIconGLASS_PANE_PROPERTYglassPaneIS_CLOSED_PROPERTYclosedIS_ICON_PROPERTYiconIS_MAXIMUM_PROPERTYmaximumIS_SELECTED_PROPERTYselectedLAYERED_PANE_PROPERTYlayeredPaneMENU_BAR_PROPERTYjMenuBarROOT_PANE_PROPERTYrootPaneTITLE_PROPERTYtitle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  JInternalFrame style: Not Resizable, Not Closable, Not Maximizable, Not Iconifiable ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The JInternalFrame is hidden when first created.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
import java.awt.BorderLayout;&lt;br /&gt;
import javax.swing.JDesktopPane;&lt;br /&gt;
import javax.swing.JFrame;&lt;br /&gt;
import javax.swing.JInternalFrame;&lt;br /&gt;
import javax.swing.JLabel;&lt;br /&gt;
public class DesktopInternalFrameStyleSample {&lt;br /&gt;
  public static void main(final String[] args) {&lt;br /&gt;
    JFrame frame = new JFrame();&lt;br /&gt;
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);&lt;br /&gt;
    JDesktopPane desktop = new JDesktopPane();&lt;br /&gt;
    JInternalFrame internalFrames[] = { new JInternalFrame(&amp;quot;Can Do All&amp;quot;, true, true, true, true),&lt;br /&gt;
        new JInternalFrame(&amp;quot;Not Resizable&amp;quot;, false, true, true, true),&lt;br /&gt;
        new JInternalFrame(&amp;quot;Not Closable&amp;quot;, true, false, true, true),&lt;br /&gt;
        new JInternalFrame(&amp;quot;Not Maximizable&amp;quot;, true, true, false, true),&lt;br /&gt;
        new JInternalFrame(&amp;quot;Not Iconifiable&amp;quot;, true, true, true, false) };&lt;br /&gt;
    int pos = 0;&lt;br /&gt;
    for (JInternalFrame internalFrame : internalFrames) {&lt;br /&gt;
      desktop.add(internalFrame);&lt;br /&gt;
      internalFrame.setBounds(pos * 25, pos * 25, 200, 100);&lt;br /&gt;
      pos++;&lt;br /&gt;
      JLabel label = new JLabel(internalFrame.getTitle(), JLabel.CENTER);&lt;br /&gt;
      internalFrame.add(label, BorderLayout.CENTER);&lt;br /&gt;
      internalFrame.setVisible(true);&lt;br /&gt;
    }&lt;br /&gt;
    frame.add(desktop, BorderLayout.CENTER);&lt;br /&gt;
    frame.setSize(500, 300);&lt;br /&gt;
    frame.setVisible(true);&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Listening to InternalFrameListener ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
import java.awt.BorderLayout;&lt;br /&gt;
import javax.swing.JDesktopPane;&lt;br /&gt;
import javax.swing.JFrame;&lt;br /&gt;
import javax.swing.JInternalFrame;&lt;br /&gt;
import javax.swing.JLabel;&lt;br /&gt;
import javax.swing.event.InternalFrameAdapter;&lt;br /&gt;
import javax.swing.event.InternalFrameEvent;&lt;br /&gt;
import javax.swing.event.InternalFrameListener;&lt;br /&gt;
class InternalFrameIconifyListener extends InternalFrameAdapter {&lt;br /&gt;
  public void internalFrameIconified(InternalFrameEvent internalFrameEvent) {&lt;br /&gt;
    JInternalFrame source = (JInternalFrame) internalFrameEvent.getSource();&lt;br /&gt;
    System.out.println(&amp;quot;Iconified: &amp;quot; + source.getTitle());&lt;br /&gt;
  }&lt;br /&gt;
  public void internalFrameDeiconified(InternalFrameEvent internalFrameEvent) {&lt;br /&gt;
    JInternalFrame source = (JInternalFrame) internalFrameEvent.getSource();&lt;br /&gt;
    System.out.println(&amp;quot;Deiconified: &amp;quot; + source.getTitle());&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
public class InternalFrameIconifyListenerSample {&lt;br /&gt;
  public static void main(final String[] args) {&lt;br /&gt;
    JFrame frame = new JFrame();&lt;br /&gt;
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);&lt;br /&gt;
    JDesktopPane desktop = new JDesktopPane();&lt;br /&gt;
    JInternalFrame internalFrame = new JInternalFrame(&amp;quot;Can Do All&amp;quot;, true, true, true, true);&lt;br /&gt;
    InternalFrameListener internalFrameListener = new InternalFrameIconifyListener();&lt;br /&gt;
//     Add listener for iconification events&lt;br /&gt;
    internalFrame.addInternalFrameListener(internalFrameListener);&lt;br /&gt;
    desktop.add(internalFrame);&lt;br /&gt;
    internalFrame.setBounds(25, 25, 200, 100);&lt;br /&gt;
    JLabel label = new JLabel(internalFrame.getTitle(), JLabel.CENTER);&lt;br /&gt;
    internalFrame.add(label, BorderLayout.CENTER);&lt;br /&gt;
    internalFrame.setVisible(true);&lt;br /&gt;
    frame.add(desktop, BorderLayout.CENTER);&lt;br /&gt;
    frame.setSize(500, 300);&lt;br /&gt;
    frame.setVisible(true);&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Rules of Using Internal Frames ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;OL&amp;gt;&amp;lt;LI&amp;gt;You must set the size of the internal frame.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;You should set the location of the internal frame.&amp;lt;/LI&amp;gt;&amp;lt;/OL&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Dialogs that are internal frames should be implemented using JOptionPane or JInternalFrame, not JDialog.&lt;br /&gt;
To create a simple dialog, you can use the JOptionPane showInternalXxxDialog methods.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Internal frames fire internal frame events, not window events.&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
			</entry>

	</feed>