• Post Reply Bookmark Topic Watch Topic
  • New Topic

No groupbox class?

 
Chris Stewart
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there no groupbox class I can use in Swing? I did a search in google and looked through my book, no mention on a groupbox class.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A GroupBox? What functionallity are you trying to achieve?
 
Chris Stewart
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can find a screenshot here: http://www.codeproject.com/cs/miscctrl/headeronlygroupbox.asp
I'm looking for something that does what "groupBox2" does in this pic.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's Easy
Just create a JPanel with a TitledBorder. This sounds like something I might want to add to my JRSwing package.
If you want a code sample, let me know.
 
Chris Stewart
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A code sample would be great.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a small example
 
Chris Stewart
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perfect! Thank you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!