Logo Search packages:      
Sourcecode: classpath version File versions

javax::swing::JInternalFrame Class Reference

Inheritance diagram for javax::swing::JInternalFrame:

javax::swing::JComponent javax::accessibility::Accessible javax::swing::WindowConstants javax::swing::RootPaneContainer java::awt::Container java::io::Serializable java::awt::Component java::awt::image::ImageObserver java::awt::MenuContainer java::io::Serializable

List of all members.

Detailed Description

This class implements a Swing widget that looks and acts like a native frame. The frame can be dragged, resized, closed, etc. Typically, JInternalFrames are placed in JDesktopPanes. The actions that the JInternalFrame performs (maximizing, minimizing, etc.) are performed by a DesktopManager. As with regular frames, components are added by calling frame.getContentPane().add.

Definition at line 66 of file JInternalFrame.java.

Public Member Functions

boolean action (Event evt, Object what)
synchronized void add (PopupMenu popup)
void add (Component comp, Object constraints, int index)
void add (Component comp, Object constraints)
Component add (Component comp, int index)
Component add (String name, Component comp)
Component add (Component comp)
void addAncestorListener (AncestorListener listener)
synchronized void addComponentListener (ComponentListener l)
synchronized void addContainerListener (ContainerListener l)
synchronized void addFocusListener (FocusListener l)
synchronized void addHierarchyBoundsListener (HierarchyBoundsListener l)
synchronized void addHierarchyListener (HierarchyListener l)
synchronized void addInputMethodListener (InputMethodListener l)
void addInternalFrameListener (InternalFrameListener l)
synchronized void addKeyListener (KeyListener l)
synchronized void addMouseListener (MouseListener l)
synchronized void addMouseMotionListener (MouseMotionListener l)
synchronized void addMouseWheelListener (MouseWheelListener l)
void addNotify ()
void addPropertyChangeListener (String propertyName, PropertyChangeListener listener)
void addPropertyChangeListener (PropertyChangeListener listener)
void addVetoableChangeListener (VetoableChangeListener listener)
void applyComponentOrientation (ComponentOrientation orientation)
boolean areFocusTraversalKeysSet (int id)
Rectangle bounds ()
int checkImage (Image image, int width, int height, ImageObserver observer)
int checkImage (Image image, ImageObserver observer)
void computeVisibleRect (Rectangle rect)
boolean contains (Point p)
boolean contains (int x, int y)
int countComponents ()
Image createImage (int width, int height)
Image createImage (ImageProducer producer)
JToolTip createToolTip ()
VolatileImage createVolatileImage (int width, int height, ImageCapabilities caps) throws AWTException
VolatileImage createVolatileImage (int width, int height)
void deliverEvent (Event e)
void disable ()
final void dispatchEvent (AWTEvent e)
void dispose ()
void doDefaultCloseAction ()
void doLayout ()
void enable (boolean b)
void enable ()
void enableInputMethods (boolean enable)
Component findComponentAt (Point p)
Component findComponentAt (int x, int y)
void firePropertyChange (String propertyName, short oldValue, short newValue)
void firePropertyChange (String propertyName, long oldValue, long newValue)
void firePropertyChange (String propertyName, int oldValue, int newValue)
void firePropertyChange (String propertyName, float oldValue, float newValue)
void firePropertyChange (String propertyName, double oldValue, double newValue)
void firePropertyChange (String propertyName, char oldValue, char newValue)
void firePropertyChange (String propertyName, byte oldValue, byte newValue)
void firePropertyChange (String propertyName, boolean oldValue, boolean newValue)
AccessibleContext getAccessibleContext ()
ActionListener getActionForKeyStroke (KeyStroke ks)
final ActionMap getActionMap ()
float getAlignmentX ()
float getAlignmentY ()
AncestorListener[] getAncestorListeners ()
boolean getAutoscrolls ()
Color getBackground ()
Border getBorder ()
Rectangle getBounds ()
Rectangle getBounds (Rectangle rv)
Object getClientProperty (Object key)
ColorModel getColorModel ()
Component getComponent (int n)
Component getComponentAt (Point p)
Component getComponentAt (int x, int y)
int getComponentCount ()
synchronized ComponentListener[] getComponentListeners ()
ComponentOrientation getComponentOrientation ()
Component[] getComponents ()
int getConditionForKeyStroke (KeyStroke ks)
synchronized ContainerListener[] getContainerListeners ()
Container getContentPane ()
Cursor getCursor ()
int getDebugGraphicsOptions ()
int getDefaultCloseOperation ()
JDesktopIcon getDesktopIcon ()
JDesktopPane getDesktopPane ()
DropTarget getDropTarget ()
Container getFocusCycleRootAncestor ()
synchronized FocusListener[] getFocusListeners ()
Component getFocusOwner ()
Set getFocusTraversalKeys (int id)
boolean getFocusTraversalKeysEnabled ()
FocusTraversalPolicy getFocusTraversalPolicy ()
Font getFont ()
FontMetrics getFontMetrics (Font font)
Color getForeground ()
Icon getFrameIcon ()
Component getGlassPane ()
Graphics getGraphics ()
GraphicsConfiguration getGraphicsConfiguration ()
int getHeight ()
getHierarchyBoundsListeners ()
synchronized HierarchyListener[] getHierarchyListeners ()
boolean getIgnoreRepaint ()
InputContext getInputContext ()
final InputMap getInputMap ()
final InputMap getInputMap (int condition)
synchronized InputMethodListener[] getInputMethodListeners ()
InputMethodRequests getInputMethodRequests ()
InputVerifier getInputVerifier ()
Insets getInsets (Insets insets)
Insets getInsets ()
InternalFrameListener[] getInternalFrameListeners ()
JMenuBar getJMenuBar ()
synchronized KeyListener[] getKeyListeners ()
int getLayer ()
JLayeredPane getLayeredPane ()
LayoutManager getLayout ()
EventListener[] getListeners (Class listenerType)
Locale getLocale ()
Point getLocation ()
Point getLocation (Point rv)
Point getLocationOnScreen ()
Dimension getMaximumSize ()
JMenuBar getMenuBar ()
Dimension getMinimumSize ()
Component getMostRecentFocusOwner ()
synchronized MouseListener[] getMouseListeners ()
synchronized MouseMotionListener[] getMouseMotionListeners ()
synchronized MouseWheelListener[] getMouseWheelListeners ()
String getName ()
Component getNextFocusableComponent ()
Rectangle getNormalBounds ()
Container getParent ()
ComponentPeer getPeer ()
Dimension getPreferredSize ()
PropertyChangeListener[] getPropertyChangeListeners ()
PropertyChangeListener[] getPropertyChangeListeners (String property)
KeyStroke[] getRegisteredKeyStrokes ()
JRootPane getRootPane ()
Dimension getSize ()
Dimension getSize (Dimension rv)
String getTitle ()
Toolkit getToolkit ()
Point getToolTipLocation (MouseEvent event)
String getToolTipText (MouseEvent event)
String getToolTipText ()
Container getTopLevelAncestor ()
TransferHandler getTransferHandler ()
final Object getTreeLock ()
InternalFrameUI getUI ()
String getUIClassID ()
VetoableChangeListener[] getVetoableChangeListeners ()
Rectangle getVisibleRect ()
String getWarningString ()
int getWidth ()
int getX ()
int getY ()
boolean gotFocus (Event evt, Object what)
void grabFocus ()
boolean handleEvent (Event evt)
boolean hasFocus ()
void hide ()
boolean imageUpdate (Image img, int flags, int x, int y, int w, int h)
Insets insets ()
boolean inside (int x, int y)
void invalidate ()
boolean isAncestorOf (Component comp)
boolean isBackgroundSet ()
boolean isClosable ()
boolean isClosed ()
boolean isCursorSet ()
boolean isDisplayable ()
boolean isDoubleBuffered ()
boolean isEnabled ()
boolean isFocusable ()
boolean isFocusCycleRoot (Container c)
boolean isFocusCycleRoot ()
boolean isFocusOwner ()
boolean isFocusTraversable ()
boolean isFocusTraversalPolicySet ()
boolean isFontSet ()
boolean isForegroundSet ()
boolean isIcon ()
boolean isIconifiable ()
boolean isLightweight ()
boolean isManagingFocus ()
boolean isMaximizable ()
boolean isMaximum ()
boolean isMaximumSizeSet ()
boolean isMinimumSizeSet ()
boolean isOpaque ()
boolean isOptimizedDrawingEnabled ()
boolean isPaintingTile ()
boolean isPreferredSizeSet ()
boolean isRequestFocusEnabled ()
boolean isResizable ()
boolean isSelected ()
boolean isShowing ()
boolean isValid ()
boolean isValidateRoot ()
boolean isVisible ()
 JInternalFrame (String title, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable)
 JInternalFrame (String title, boolean resizable, boolean closable, boolean maximizable)
 JInternalFrame (String title, boolean resizable, boolean closable)
 JInternalFrame (String title, boolean resizable)
 JInternalFrame (String title)
 JInternalFrame ()
boolean keyDown (Event evt, int key)
boolean keyUp (Event evt, int key)
void layout ()
void list (PrintWriter out)
void list (PrintStream out)
void list ()
void list (PrintWriter out, int indent)
void list (PrintStream out, int indent)
Component locate (int x, int y)
Point location ()
boolean lostFocus (Event evt, Object what)
Dimension minimumSize ()
boolean mouseDown (Event evt, int x, int y)
boolean mouseDrag (Event evt, int x, int y)
boolean mouseEnter (Event evt, int x, int y)
boolean mouseExit (Event evt, int x, int y)
boolean mouseMove (Event evt, int x, int y)
boolean mouseUp (Event evt, int x, int y)
void move (int x, int y)
void moveToBack ()
void moveToFront ()
void nextFocus ()
void pack ()
void paint (Graphics g)
void paintAll (Graphics g)
void paintComponents (Graphics g)
void paintImmediately (Rectangle r)
void paintImmediately (int x, int y, int w, int h)
boolean postEvent (Event e)
Dimension preferredSize ()
boolean prepareImage (Image image, int width, int height, ImageObserver observer)
boolean prepareImage (Image image, ImageObserver observer)
void print (Graphics g)
void printAll (Graphics g)
void printComponents (Graphics g)
void putClientProperty (Object key, Object value)
void registerKeyboardAction (ActionListener act, String cmd, KeyStroke stroke, int cond)
void registerKeyboardAction (ActionListener act, KeyStroke stroke, int cond)
synchronized void remove (MenuComponent popup)
void remove (int index)
void remove (Component comp)
void removeAll ()
void removeAncestorListener (AncestorListener listener)
synchronized void removeComponentListener (ComponentListener l)
synchronized void removeContainerListener (ContainerListener l)
synchronized void removeFocusListener (FocusListener l)
synchronized void removeHierarchyBoundsListener (HierarchyBoundsListener l)
synchronized void removeHierarchyListener (HierarchyListener l)
synchronized void removeInputMethodListener (InputMethodListener l)
void removeInternalFrameListener (InternalFrameListener l)
synchronized void removeKeyListener (KeyListener l)
synchronized void removeMouseListener (MouseListener l)
synchronized void removeMouseMotionListener (MouseMotionListener l)
synchronized void removeMouseWheelListener (MouseWheelListener l)
void removeNotify ()
void removePropertyChangeListener (String propertyName, PropertyChangeListener listener)
void removePropertyChangeListener (PropertyChangeListener listener)
void removeVetoableChangeListener (VetoableChangeListener listener)
void repaint (int x, int y, int w, int h)
void repaint (long tm)
void repaint ()
void repaint (Rectangle r)
void repaint (long tm, int x, int y, int width, int height)
boolean requestDefaultFocus ()
void requestFocus ()
boolean requestFocusInWindow ()
void resetKeyboardActions ()
void reshape (int x, int y, int width, int height)
void resize (Dimension d)
void resize (int width, int height)
void restoreSubcomponentFocus ()
void revalidate ()
void scrollRectToVisible (Rectangle r)
final void setActionMap (ActionMap map)
void setAlignmentX (float a)
void setAlignmentY (float a)
void setAutoscrolls (boolean a)
void setBackground (Color bg)
void setBorder (Border newBorder)
void setBounds (Rectangle r)
void setBounds (int x, int y, int w, int h)
void setClosable (boolean b)
void setClosed (boolean b) throws PropertyVetoException
void setComponentOrientation (ComponentOrientation o)
void setContentPane (Container c)
void setCursor (Cursor cursor)
void setDebugGraphicsOptions (int debugOptions)
void setDefaultCloseOperation (int operation)
void setDesktopIcon (JDesktopIcon d)
void setDoubleBuffered (boolean db)
void setDropTarget (DropTarget dt)
void setEnabled (boolean enable)
void setFocusable (boolean focusable)
final void setFocusCycleRoot (boolean focusCycleRoot)
void setFocusTraversalKeys (int id, Set keystrokes)
void setFocusTraversalKeysEnabled (boolean focusTraversalKeysEnabled)
void setFocusTraversalPolicy (FocusTraversalPolicy policy)
void setFont (Font f)
void setForeground (Color fg)
void setFrameIcon (Icon icon)
void setGlassPane (Component glass)
void setIcon (boolean b) throws PropertyVetoException
void setIconifiable (boolean b)
void setIgnoreRepaint (boolean ignoreRepaint)
final void setInputMap (int condition, InputMap map)
void setInputVerifier (InputVerifier verifier)
void setJMenuBar (JMenuBar b)
void setLayer (Integer layer)
void setLayer (int layer)
void setLayeredPane (JLayeredPane layered)
void setLayout (LayoutManager manager)
void setLocale (Locale l)
void setLocation (Point p)
void setLocation (int x, int y)
void setMaximizable (boolean b)
void setMaximum (boolean b) throws PropertyVetoException
void setMaximumSize (Dimension max)
void setMenuBar (JMenuBar m)
void setMinimumSize (Dimension min)
void setName (String name)
void setNextFocusableComponent (Component aComponent)
void setNormalBounds (Rectangle r)
void setOpaque (boolean isOpaque)
void setPreferredSize (Dimension pref)
void setRequestFocusEnabled (boolean e)
void setResizable (boolean b)
void setSelected (boolean selected) throws PropertyVetoException
void setSize (Dimension d)
void setSize (int width, int height)
void setTitle (String title)
void setToolTipText (String text)
void setUI (InternalFrameUI ui)
void setVisible (boolean v)
void show (boolean b)
void show ()
Dimension size ()
void toBack ()
void toFront ()
String toString ()
void transferFocus ()
void transferFocusBackward ()
void transferFocusDownCycle ()
void transferFocusUpCycle ()
void unregisterKeyboardAction (KeyStroke aKeyStroke)
void update (Graphics g)
void updateUI ()
void validate ()

Static Public Member Functions

static Locale getDefaultLocale ()
static boolean isLightweightComponent (Component c)
static void setDefaultLocale (Locale l)

Public Attributes

int ABORT = 128
int ALLBITS = 32
int ERROR = 64
int FRAMEBITS = 16
int HEIGHT = 2
int SOMEBITS = 8

Static Public Attributes

static final float BOTTOM_ALIGNMENT = 1
static final float CENTER_ALIGNMENT = 0.5f
static final String CONTENT_PANE_PROPERTY = "contentPane"
static final String FRAME_ICON_PROPERTY = "frameIcon"
static final String GLASS_PANE_PROPERTY = "glassPane"
static final String IS_CLOSED_PROPERTY = "closed"
static final String IS_ICON_PROPERTY = "icon"
static final String IS_MAXIMUM_PROPERTY = "maximum"
static final String IS_SELECTED_PROPERTY = "selected"
static final String LAYERED_PANE_PROPERTY = "layeredPane"
static final float LEFT_ALIGNMENT = 0
static final String MENU_BAR_PROPERTY = "JMenuBar"
static final float RIGHT_ALIGNMENT = 1
static final String ROOT_PANE_PROPERTY = "rootPane"
static final String TITLE_PROPERTY = "title"
static final String TOOL_TIP_TEXT_KEY = "ToolTipText"
static final float TOP_ALIGNMENT = 0
static final int UNDEFINED_CONDITION = -1
static final int WHEN_FOCUSED = 0
static final int WHEN_IN_FOCUSED_WINDOW = 2

Protected Member Functions

void addImpl (Component comp, Object constraints, int index)
AWTEvent coalesceEvents (AWTEvent existingEvent, AWTEvent newEvent)
JRootPane createRootPane ()
final void disableEvents (long eventsToDisable)
final void enableEvents (long eventsToEnable)
void fireInternalFrameEvent (int id)
void firePropertyChange (String propertyName, Object oldValue, Object newValue)
void fireVetoableChange (String propertyName, Object oldValue, Object newValue) throws PropertyVetoException
Graphics getComponentGraphics (Graphics g)
boolean isRootPaneCheckingEnabled ()
void paintBorder (Graphics g)
void paintChildren (Graphics g)
void paintComponent (Graphics g)
String paramString ()
void processComponentEvent (ComponentEvent e)
void processComponentKeyEvent (KeyEvent e)
void processContainerEvent (ContainerEvent e)
void processEvent (AWTEvent e)
void processFocusEvent (FocusEvent e)
void processHierarchyBoundsEvent (HierarchyEvent e)
void processHierarchyEvent (HierarchyEvent e)
void processInputMethodEvent (InputMethodEvent e)
boolean processKeyBinding (KeyStroke ks, KeyEvent e, int condition, boolean pressed)
void processKeyEvent (KeyEvent e)
void processMouseEvent (MouseEvent e)
void processMouseMotionEvent (MouseEvent e)
void processMouseWheelEvent (MouseWheelEvent e)
boolean requestFocus (boolean temporary)
boolean requestFocusInWindow (boolean temporary)
void setRootPane (JRootPane root)
void setRootPaneCheckingEnabled (boolean enabled)
void setUI (ComponentUI newUI)
void swapComponents (int i, int j)
void validateTree ()

Protected Attributes

AccessibleContext accessibleContext
boolean closable
JDesktopIcon desktopIcon
Icon frameIcon
boolean iconable
boolean isClosed
boolean isIcon
boolean isMaximum
boolean isSelected
EventListenerList listenerList = new EventListenerList()
boolean maximizable
boolean resizable
JRootPane rootPane
boolean rootPaneCheckingEnabled = true
String title
ComponentUI ui

Package Functions

void dispatchEventImpl (AWTEvent e)
boolean eventTypeEnabled (int type)
Component findNextFocusComponent (Component child)
String generateName ()
GraphicsConfiguration getGraphicsConfigurationImpl ()
boolean getWasIcon ()
void invalidateTree ()
final void setPeer (ComponentPeer peer)
void setTransferHandler (TransferHandler newHandler)
void setWasIcon (boolean b, String ID)

Static Package Functions

 [static initializer]
static Event translateEvent (AWTEvent e)

Package Attributes

float alignmentX = 0.0f
float alignmentY = 0.0f
boolean autoscrolls = false
Color background
Border border
transient BufferStrategy bufferStrategy
Component[] component
transient ComponentListener componentListener
int componentSerializedDataVersion = 4
transient ContainerListener containerListener
int containerSerializedDataVersion
Cursor cursor
int debugGraphicsOptions
LightweightDispatcher dispatcher
boolean doubleBuffered = false
DropTarget dropTarget
boolean enabled = true
boolean focusable = true
boolean focusCycleRoot
transient FocusListener focusListener
transient Set[] focusTraversalKeys
boolean focusTraversalKeysEnabled = true
Font font
Color foreground
transient GraphicsConfiguration graphicsConfig
int height
transient HierarchyBoundsListener hierarchyBoundsListener
transient HierarchyListener hierarchyListener
boolean ignoreRepaint
transient InputMethodListener inputMethodListener
int isFocusTraversableOverridden
boolean isPacked
transient KeyListener keyListener
LayoutManager layoutMgr
Locale locale = Locale.getDefault ()
Dimension maximumSize
Dimension maxSize
Dimension minimumSize
Dimension minSize
transient MouseListener mouseListener
transient MouseMotionListener mouseMotionListener
transient MouseWheelListener mouseWheelListener
String name
boolean nameExplicitlySet
int ncomponents
boolean newEventsOnly
boolean opaque = false
transient ComponentOrientation orientation = ComponentOrientation.UNKNOWN
transient Container parent
transient ComponentPeer peer
Font peerFont
Vector popups
Dimension preferredSize
Dimension prefSize
boolean requestFocusEnabled
String toolTipText
boolean valid
boolean visible = true
int WIDTH = 1
int width
int x
int y

Static Package Attributes

static final Object treeLock = new String("AWT_TREE_LOCK")

Private Member Functions

void fireVetoableChange (String name, boolean oldValue, boolean newValue) throws PropertyVetoException

Private Attributes

transient int defaultCloseOperation = DISPOSE_ON_CLOSE
transient Component defaultFocus
transient boolean isFirstTimeVisible = true
transient boolean maxTransition = false
transient Rectangle storedBounds
transient boolean wasIcon = false

Static Private Attributes

static final long serialVersionUID = -5425177187760785402L


class  AccessibleJInternalFrame
class  JDesktopIcon

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index