Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: How to make these beautiful JPanels for Nimbus look and feel ?

  1. #1
    Junior Member
    Join Date
    May 2011
    Location
    Mumbai , India
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to make these beautiful JPanels for Nimbus look and feel ?

    Hello everybody . I am new to this forum . I am currently working in Java swing . My current interest in Java L&F's ; nimbus to be precise !

    One thing which I am not able to do is create these beautiful JPanels ( groupboxes ) ( marked in red in below picture ) in Java for holding other components !



    BorderFactory.createTitledBorder() creates a title but not the lovely shading thing and beauty of what we see above ...

    CompoundBorder also does not seem to work ..

    Do I have to create a subclass of JPanel to do this ? Looking for your help . thanks ....waiting for your replies !


  2. #2

    Default Re: How to make these beautiful JPanels for Nimbus look and feel ?

    Oh, there' just images. If you run the SwingSet3 (SwingSet3) demo and change the look and feel via the menu it is obvious that they are images. Try making similar effect in your paint software - or you could make a custom border and make it render how you want it to.

Similar Threads

  1. Bold font in JTabbedpane in Nimbus L&F
    By sponarun in forum What's Wrong With My Code?
    Replies: 0
    Last Post: February 28th, 2011, 02:09 AM
  2. Look & Feel
    By Asido in forum AWT / Java Swing
    Replies: 3
    Last Post: September 10th, 2010, 09:13 PM
  3. [SOLVED] Dynamic numbber of JPanels
    By nasi in forum AWT / Java Swing
    Replies: 2
    Last Post: May 14th, 2010, 02:44 AM
  4. repainting a jframe containing two jpanels
    By musasabi in forum What's Wrong With My Code?
    Replies: 0
    Last Post: May 11th, 2010, 10:31 PM
  5. JTable gridlines not showing in a nimbus L&F
    By chronoz13 in forum AWT / Java Swing
    Replies: 0
    Last Post: February 22nd, 2010, 07:45 AM