Results 1 to 5 of 5
  1. #1
    asifzbaig is offline Member
    Join Date
    May 2011
    Posts
    56
    Rep Power
    0

    Default Creating a button on the tilte bar of my application frame

    Hello,

    I want to add few buttons on the title bars of different frames of my application, such as a Logout button in home windows's title bar.

    Please suggest me how can i achieve this and from what thing i have to start for this?

    Any tutorial or articles can will also help me.....

    Regards.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,421
    Rep Power
    25

    Default

    I've never seen buttons on the Title bar. Where have you seen this done?

  3. #3
    asifzbaig is offline Member
    Join Date
    May 2011
    Posts
    56
    Rep Power
    0

    Default

    I dont remember that i have seen an application developed with java, but in case of other apps many are there..........

    few of them are WinAmp, FlashGet........

  4. #4
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

    Default

    Either a) remove the default Title bar (via the setUndecorated method) and create your own within the window or b) Keep the current title bar and add something like a toolbar to the GUI just below it

  5. #5
    asifzbaig is offline Member
    Join Date
    May 2011
    Posts
    56
    Rep Power
    0

    Default

    Either a) remove the default Title bar (via the setUndecorated method) and create your own within the window or b) Keep the current title bar and add something like a toolbar to the GUI just below it
    Thank you for this....finally i had created a panel just below title bar having lable to show the current time and button options which i am trying to put on the title bar..
    it also looking gud though but actually problem is that i am just trying to do some things which comes in my mind that yeah this will be good and till it doesn't happen i will not get fully satisfied.... since its not need of the time so i'll go for it later.........

Similar Threads

  1. creating a frame on button click event
    By ankit1801 in forum New To Java
    Replies: 8
    Last Post: 03-16-2011, 05:11 AM
  2. How do I close a frame with a button?
    By Psyclone in forum AWT / Swing
    Replies: 7
    Last Post: 02-19-2010, 10:43 PM
  3. add tabbed pane to the frame on a button click
    By Mahaveer in forum New To Java
    Replies: 0
    Last Post: 11-20-2009, 09:19 AM
  4. New button in new frame
    By billbo123 in forum New To Java
    Replies: 0
    Last Post: 03-01-2009, 10:32 PM
  5. how disable the display of close button on the frame
    By kalanidhi in forum New To Java
    Replies: 6
    Last Post: 11-19-2008, 09:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •