0% found this document useful (0 votes)
17 views

Java Awt Container

The document discusses various Swing container classes like ScrollPane, Window, Dialog, and Frame and their methods. It also covers classes like JComponent, JDialog, JFrame, and JWindow.

Uploaded by

Keyur Golani
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Java Awt Container

The document discusses various Swing container classes like ScrollPane, Window, Dialog, and Frame and their methods. It also covers classes like JComponent, JDialog, JFrame, and JWindow.

Uploaded by

Keyur Golani
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

java.awt.

* Container
Methods from supertypes are hidden in subtypes

ScrollPane
ScrollPane () ScrollPane (int scrollbarDisplayPolicy) Adjustable int Point int Adjustable int Dimension boolean void getHAdjustable () getHScrollbarHeight () get / setScrollPosition () getScrollbarDisplayPolicy () getVAdjustable () getVScrollbarWidth () getViewportSize () is / setWheelScrollingEnabled () setScrollPosition (int x, int y)

Serializable ImageObserver MenuContainer Component Container


Container () Accessors Component int Component[] FocusTraversalPolicy Insets LayoutManager boolean boolean boolean Collectors Component Component Component void void # void void void void Event Methods void ContainerListener[] # void Other Methods Component Component void void void # void

int SCROLLBARS_AS_NEEDED, SCROLLBARS_ALWAYS, SCROLLBARS_NEVER

Window
Window (Frame owner) Window (Window owner) Window (Window owner, GraphicsConfiguration gc) getComponent (int n) getComponentCount () getComponents () get / setFocusTraversalPolicy () getInsets () get / setLayout () isAncestorOf (Component c) is / setFocusCycleRoot () isFocusTraversalPolicySet () add (Component comp) add (String name, Component comp) add (Component comp, int index) add (Component comp, Object constraints) add (Component comp, Object constraints, int index) addImpl (Component comp, Object constraints, int index) remove (int index) remove (Component comp) removeAll () add / removeContainerListener (ContainerListener l) getContainerListeners () processContainerEvent (ContainerEvent e) findComponentAt (Point p) findComponentAt (int x, int y) paintComponents (Graphics g) printComponents (Graphics g) transferFocusDownCycle () validateTree () Accessors Component boolean Component Window[] Window String boolean boolean boolean void Event Methods void void void WindowFocusListener[] WindowListener[] WindowStateListener[] # void # void # void Object # void Other Public Methods void void Object void void getFocusOwner () get / setFocusableWindowState () getMostRecentFocusOwner () getOwnedWindows () getOwner () getWarningString () isActive () isFocusableWindow () isFocused () setLocationRelativeTo (Component c) add / removeWindowFocusListener (WindowFocusListener l) add / removeWindowListener (WindowListener l) add / removeWindowStateListener (WindowStateListener l) getWindowFocusListeners () getWindowListeners () getWindowStateListeners () processWindowEvent (WindowEvent e) processWindowFocusEvent (WindowEvent e) processWindowStateEvent (WindowEvent e) finalize () dispose () pack () run () toBack () toFront ()

javax.accessibility.

Accessible

Panel
Panel () Panel (LayoutManager layout) java.applet. javax.swing.

Applet JApplet

javax.swing.

JComponent

FileDialog
FileDialog (Frame parent) FileDialog (Frame parent, String title) FileDialog (Frame parent, String title, int mode) String String FilenameFilter int get / setDirectory () get / setFile () get / setFilenameFilter () get / setMode ()

int LOAD, SAVE

Dialog
Dialog Dialog Dialog Dialog Dialog Dialog Dialog Dialog Dialog (Frame owner) (Dialog owner) (Frame owner, (Frame owner, (Dialog owner, (Frame owner, (Dialog owner, (Frame owner, (Dialog owner, boolean modal) String title) String title) String title, boolean modal) String title, boolean modal) String title, boolean modal, GraphicsConfiguration gc) String title, boolean modal, GraphicsConfiguration gc)

RootPaneContainer
Container Component JLayeredPane JRootPane get / setContentPane () get / setGlassPane () get / setLayeredPane () getRootPane ()

String boolean boolean boolean

get / setTitle () is / setModal () is / setResizable () is / setUndecorated ()

javax.swing. JDialog JDialog JDialog JDialog JDialog JDialog JDialog JDialog JDialog JDialog JDialog

JDialog

() (Frame owner) (Dialog owner) (Frame owner, (Frame owner, (Dialog owner, (Dialog owner, (Frame owner, (Dialog owner, (Frame owner, (Dialog owner,

boolean modal) String title) boolean modal) String title) String title, boolean modal) String title, boolean modal) String title, boolean modal, GraphicsConfiguration gc) String title, boolean modal, GraphicsConfiguration gc)

RootPaneContainer
Container Component JLayeredPane JRootPane get / setContentPane () get / setGlassPane () get / setLayeredPane () getRootPane ()

javax.swing. JWindow JWindow JWindow JWindow JWindow

JWindow

() (GraphicsConfiguration gc) (Frame owner) (Window owner) (Window owner, GraphicsConfiguration gc)

Static Methods boolean is / setDefaultLookAndFeelDecorated () Accessors int get / setDefaultCloseOperation () JMenuBar get / setJMenuBar () # boolean is / setRootPaneCheckingEnabled () # void setRootPane (JRootPane root) Other Protected Methods # JRootPane createRootPane () # void dialogInit ()

Accessors # boolean is / setRootPaneCheckingEnabled () # void setRootPane (JRootPane root) Other Protected Methods # JRootPane createRootPane () # void windowInit ()

WindowConstants
int DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, DISPOSE_ON_CLOSE, EXIT_ON_CLOSE

RootPaneContainer
Container Component JLayeredPane JRootPane get / setContentPane () get / setGlassPane () get / setLayeredPane () getRootPane ()

Frame
Frame Frame Frame Frame () (GraphicsConfiguration gc) (String title) (String title, GraphicsConfiguration gc) javax.swing. JFrame JFrame JFrame JFrame

JFrame

() (GraphicsConfiguration gc) (String title) (String title, GraphicsConfiguration gc)

Static Methods Frame[] getFrames () Accessors int get / setExtendedState () Image get / setIconImage () Rectangle get / setMaximizedBounds () MenuBar get / setMenuBar () int get / setState () String get / setTitle () boolean is / setResizable () boolean is / setUndecorated () int NORMAL, ICONIFIED, MAXIMIZED_HORIZ , MAXIMIZED_VERT, MAXIMIZED_BOTH

Static Methods boolean is / setDefaultLookAndFeelDecorated () Accessors int get / setDefaultCloseOperation () JMenuBar get / setJMenuBar () # boolean is / setRootPaneCheckingEnabled () # void setRootPane (JRootPane root) Other Protected Methods # JRootPane createRootPane () # void frameInit () int EXIT_ON_CLOSE
www.falkhausen.de Version 0.8 Copyright 2002 by Markus Falkhausen. All rights reserved.

You might also like