Java Doc for JFrame.java in  » Apache-Harmony-Java-SE » javax-package » javax » swing » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » javax package » javax.swing 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.awt.Frame
   javax.swing.JFrame

JFrame
public class JFrame extends Frame implements WindowConstants,Accessible,RootPaneContainer(Code)

JFrame

Implementation Notes:

  • The serialVersionUID fields are explicitly declared as a performance optimization, not as a guarantee of serialization compatibility.

Inner Class :protected class AccessibleJFrame extends AccessibleAWTFrame

Field Summary
final public static  intEXIT_ON_CLOSE
    
protected  AccessibleContextaccessibleContext
    
protected  JRootPanerootPane
    
protected  booleanrootPaneCheckingEnabled
    

Constructor Summary
public  JFrame(String title, GraphicsConfiguration gc)
     Constructs a new frame in the specified GraphicsConfiguration and the specified title.
public  JFrame(String title)
     Constructs a new frame with the specified title which is initially invisible.
public  JFrame(GraphicsConfiguration gc)
     Constructs a new frame in the specified GraphicsConfiguration and an empty title.
public  JFrame()
     Constructs a new frame with an empty title which is initially invisible.

Method Summary
protected  voidaddImpl(Component comp, Object constraints, int index)
    
protected  JRootPanecreateRootPane()
     Called by the constructors to create the default rootPane property.
protected  voidframeInit()
    
public  AccessibleContextgetAccessibleContext()
     Returns the accessible context for the frame.
public  ContainergetContentPane()
     Returns the contentPane property.
public  intgetDefaultCloseOperation()
     Returns defaultCloseOperation value.
public  ComponentgetGlassPane()
     Returns glassPane property.
public  JMenuBargetJMenuBar()
    
public  JLayeredPanegetLayeredPane()
     Returns layeredPane property.
public  JRootPanegetRootPane()
     Get rootPane property.
static  FramegetSharedOwner()
     Returns the frame that is used as a default shared owner for JDialog and JWindow.
public static  booleanisDefaultLookAndFeelDecorated()
    
protected  booleanisRootPaneCheckingEnabled()
     Returns rootPaneCheckingEnabled value.
protected  StringparamString()
     Returns string representation of this frame.
protected  voidprocessWindowEvent(WindowEvent e)
     Implements actions depending on defaultCloseOperation property.
public  voidremove(Component comp)
    
public  voidsetContentPane(Container contentPane)
     Sets contentPane property.
public  voidsetDefaultCloseOperation(int operation)
     Sets defaultCloseOperation property.
public static  voidsetDefaultLookAndFeelDecorated(boolean defaultLookAndFeelDecorated)
    
public  voidsetGlassPane(Component glassPane)
     Set glassPane property.
public  voidsetIconImage(Image image)
    
public  voidsetJMenuBar(JMenuBar menuBar)
     Sets the menu bar for the frame.
public  voidsetLayeredPane(JLayeredPane layeredPane)
     Sets layeredPane property.
public  voidsetLayout(LayoutManager layout)
    
protected  voidsetRootPane(JRootPane root)
     Set rootPane property.
protected  voidsetRootPaneCheckingEnabled(boolean enabled)
     Sets rootPaneCheckingEnabled.
public  voidupdate(Graphics g)
     Just calls paint(g).

Field Detail
EXIT_ON_CLOSE
final public static int EXIT_ON_CLOSE(Code)



accessibleContext
protected AccessibleContext accessibleContext(Code)



rootPane
protected JRootPane rootPane(Code)



rootPaneCheckingEnabled
protected boolean rootPaneCheckingEnabled(Code)




Constructor Detail
JFrame
public JFrame(String title, GraphicsConfiguration gc)(Code)
Constructs a new frame in the specified GraphicsConfiguration and the specified title.
Parameters:
  title - - title of the frame; if title is null, an empty titleis assumed
Parameters:
  gc - - the GraphicsConfiguration to construct the frame;if gc is null, the system default GraphicsConfiguration is assumed



JFrame
public JFrame(String title) throws HeadlessException(Code)
Constructs a new frame with the specified title which is initially invisible.
Parameters:
  title - - title of the frame; if title is null, an empty titleis assumed
throws:
  HeadlessException - - when GraphicsEnvironment.isHeadless()returns true



JFrame
public JFrame(GraphicsConfiguration gc)(Code)
Constructs a new frame in the specified GraphicsConfiguration and an empty title.
Parameters:
  gc - - the GraphicsConfiguration to construct the frame;if gc is null, the system default GraphicsConfiguration is assumed



JFrame
public JFrame() throws HeadlessException(Code)
Constructs a new frame with an empty title which is initially invisible.
throws:
  HeadlessException - - when GraphicsEnvironment.isHeadless()returns true




Method Detail
addImpl
protected void addImpl(Component comp, Object constraints, int index)(Code)



createRootPane
protected JRootPane createRootPane()(Code)
Called by the constructors to create the default rootPane property. default JRootPane



frameInit
protected void frameInit()(Code)
Called by the constructors to init JFrame



getAccessibleContext
public AccessibleContext getAccessibleContext()(Code)
Returns the accessible context for the frame. the accessible context for the frame



getContentPane
public Container getContentPane()(Code)
Returns the contentPane property. the contentPane property



getDefaultCloseOperation
public int getDefaultCloseOperation()(Code)
Returns defaultCloseOperation value. defaultCloseOperation value



getGlassPane
public Component getGlassPane()(Code)
Returns glassPane property. glassPane property



getJMenuBar
public JMenuBar getJMenuBar()(Code)
Returns the menu bar for the frame the menu bar for the frame



getLayeredPane
public JLayeredPane getLayeredPane()(Code)
Returns layeredPane property. layeredPane property



getRootPane
public JRootPane getRootPane()(Code)
Get rootPane property. rootPane property



getSharedOwner
static Frame getSharedOwner()(Code)
Returns the frame that is used as a default shared owner for JDialog and JWindow.



isDefaultLookAndFeelDecorated
public static boolean isDefaultLookAndFeelDecorated()(Code)



isRootPaneCheckingEnabled
protected boolean isRootPaneCheckingEnabled()(Code)
Returns rootPaneCheckingEnabled value. value of rootPaneCheckingEnabled



paramString
protected String paramString()(Code)
Returns string representation of this frame. string representation of this frame



processWindowEvent
protected void processWindowEvent(WindowEvent e)(Code)
Implements actions depending on defaultCloseOperation property.
Parameters:
  e - - window event



remove
public void remove(Component comp)(Code)



setContentPane
public void setContentPane(Container contentPane)(Code)
Sets contentPane property.
Parameters:
  contentPane - - new contentPane property value



setDefaultCloseOperation
public void setDefaultCloseOperation(int operation)(Code)
Sets defaultCloseOperation property. This is a bound property.
Parameters:
  operation - - new defaultCloseOperation value



setDefaultLookAndFeelDecorated
public static void setDefaultLookAndFeelDecorated(boolean defaultLookAndFeelDecorated)(Code)



setGlassPane
public void setGlassPane(Component glassPane)(Code)
Set glassPane property.
Parameters:
  glassPane - - new glassPane property value



setIconImage
public void setIconImage(Image image)(Code)



setJMenuBar
public void setJMenuBar(JMenuBar menuBar)(Code)
Sets the menu bar for the frame.
Parameters:
  menuBar - - menu bar to be placed in the frame



setLayeredPane
public void setLayeredPane(JLayeredPane layeredPane)(Code)
Sets layeredPane property.
Parameters:
  layeredPane - - new layeredPane property value



setLayout
public void setLayout(LayoutManager layout)(Code)



setRootPane
protected void setRootPane(JRootPane root)(Code)
Set rootPane property.
Parameters:
  root - - new rootPane property value



setRootPaneCheckingEnabled
protected void setRootPaneCheckingEnabled(boolean enabled)(Code)
Sets rootPaneCheckingEnabled.
Parameters:
  enabled - - new rootPaneCheckingEnabled value



update
public void update(Graphics g)(Code)
Just calls paint(g). This method was overridden to prevent an unnecessary call to clear the background.
Parameters:
  g - - the graphics context to paint



Fields inherited from java.awt.Frame
final public static int CROSSHAIR_CURSOR(Code)(Java Doc)
final public static int DEFAULT_CURSOR(Code)(Java Doc)
final public static int E_RESIZE_CURSOR(Code)(Java Doc)
final public static int HAND_CURSOR(Code)(Java Doc)
final public static int ICONIFIED(Code)(Java Doc)
final public static int MAXIMIZED_BOTH(Code)(Java Doc)
final public static int MAXIMIZED_HORIZ(Code)(Java Doc)
final public static int MAXIMIZED_VERT(Code)(Java Doc)
final public static int MOVE_CURSOR(Code)(Java Doc)
final public static int NE_RESIZE_CURSOR(Code)(Java Doc)
final public static int NORMAL(Code)(Java Doc)
final public static int NW_RESIZE_CURSOR(Code)(Java Doc)
final public static int N_RESIZE_CURSOR(Code)(Java Doc)
final public static int SE_RESIZE_CURSOR(Code)(Java Doc)
final public static int SW_RESIZE_CURSOR(Code)(Java Doc)
final public static int S_RESIZE_CURSOR(Code)(Java Doc)
final public static int TEXT_CURSOR(Code)(Java Doc)
final public static int WAIT_CURSOR(Code)(Java Doc)
final public static int W_RESIZE_CURSOR(Code)(Java Doc)

Methods inherited from java.awt.Frame
public void addNotify()(Code)(Java Doc)
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public int getCursorType()(Code)(Java Doc)
public synchronized int getExtendedState()(Code)(Java Doc)
public static Frame[] getFrames()(Code)(Java Doc)
public Image getIconImage()(Code)(Java Doc)
public Rectangle getMaximizedBounds()(Code)(Java Doc)
public MenuBar getMenuBar()(Code)(Java Doc)
public synchronized int getState()(Code)(Java Doc)
public String getTitle()(Code)(Java Doc)
public boolean isResizable()(Code)(Java Doc)
public boolean isUndecorated()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public void remove(MenuComponent m)(Code)(Java Doc)
public void removeNotify()(Code)(Java Doc)
public void setCursor(int cursorType)(Code)(Java Doc)
public synchronized void setExtendedState(int state)(Code)(Java Doc)
public void setIconImage(Image image)(Code)(Java Doc)
public synchronized void setMaximizedBounds(Rectangle bounds)(Code)(Java Doc)
public void setMenuBar(MenuBar mb)(Code)(Java Doc)
public void setResizable(boolean resizable)(Code)(Java Doc)
public synchronized void setState(int state)(Code)(Java Doc)
public void setTitle(String title)(Code)(Java Doc)
public void setUndecorated(boolean undecorated)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.