Results 1 to 4 of 4

Thread: How to use Window class in java?

  1. #1
    Join Date
    Jan 2010
    Posts
    42

    How to use Window class in java?

    Hi friend,

    I just started to study the java language. I am not getting how to use Window class of java. I will need to use this class in my one java project. Because of that I need to be fully aware about Window class along with it's methods. If you have sound knowledge about the Window class, then please let me know the same. I would appreciate your any help over this java class.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: How to use Window class in java?

    A Window object is a top-level window with no borders and no menubar. The default layout for a window is BorderLayout.A window must have either a frame, dialog, or another window defined as its owner when it's constructed.In a multi-screen environment, you can create a Window on a different screen device by constructing the Window with Window(Window, GraphicsConfiguration). The GraphicsConfiguration object is one of the GraphicsConfiguration objects of the target screen device.

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    Re: How to use Window class in java?

    Hi,

    Please review below methods of Window class:
    • setLocationRelativeTo(Component comp)
    • setFocusCycleRoot(boolean bln)
    • setFocusableWindowState(boolean bln)
    • setCursor(Cursor cursor1)
    • removeWindowStateListener(WindowStateListener lstn)

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    Re: How to use Window class in java?

    Hi friend,

    I suggest you to go through following nested classes of Window class:
    1. Window.AccessibleAWTWindow
    2. Component.AccessibleAWTComponent
    3. Component.FlipBufferStrategy
    4. Container.AccessibleAWTContainer

Similar Threads

  1. Converting java class to java bean class
    By Ucchal in forum Software Development
    Replies: 6
    Last Post: 09-08-2010, 10:24 AM
  2. How to use Font class in java?
    By Bottlenecked in forum Software Development
    Replies: 5
    Last Post: 25-02-2010, 09:35 AM
  3. JFormattedTextField class of java
    By Khan Baba in forum Software Development
    Replies: 5
    Last Post: 17-02-2010, 11:37 AM
  4. JList class of java
    By Owen Fernandes in forum Software Development
    Replies: 5
    Last Post: 17-02-2010, 08:19 AM
  5. Java Programming Language Basics: Reflection Basics and Class Class
    By mayuri_gunjan in forum Guides & Tutorials
    Replies: 6
    Last Post: 29-08-2005, 12:04 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,717,767,688.07609 seconds with 17 queries