• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 99
Android Mac Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would be surprised if that were possible...
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 99
Android Mac Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 99
Android Mac Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ilja Preuss

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

 
reply
    Bookmark Topic Watch Topic
  • New Topic