• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to change the shape of the JFrame to a custom look

 
Suman Mummaneni
Ranch Hand
Posts: 96
Android Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guy,
In my swing application I need a custom Frame that has a different look and feel than the usual JFrame. I want to remove the title bar and minimize, maximize and close buttons and provide my own buttons. I do not want to modify the JFrame box shape. To start out I know I have to customize the JWindow class. If any one has done this kind of work before could you please guide me through the process, or if there is some third party tool that could provide such kind of ui customization will be a lot helpful for me.
Thanks in advance.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would be surprised if that were possible...
 
Randall Kippen
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use the Frame.setUndecorated method. Then you could
add your own panel, with custom buttons, to the frame. You would
have to implement your own methods for resizing and moving the
frame.
 
Suman Mummaneni
Ranch Hand
Posts: 96
Android Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thanks for the post Randall. This is good start for me. Now I can define my own close, max and min buttons on the frame, instead of using the boring old windows style buttons. I have got the basic platform to work on. Need to define more customization for my JFrame.
Thanks once again.
 
Suman Mummaneni
Ranch Hand
Posts: 96
Android Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ilja Preuss

you need to take a look at the Sun Java (TM) Studio Enterprise IDE.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic