• Post Reply Bookmark Topic Watch Topic
  • New Topic

Framing within GridBagLayout  RSS feed

 
Jon Camilleri
Ranch Hand
Posts: 664
Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to have the GridBagLayout draw a frame, within one of the panels:







Source code is available at this location.
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add a JPanel with setBorder(...) and add the button to that panel.
 
Jon Camilleri
Ranch Hand
Posts: 664
Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Darryl Burke wrote:Add a JPanel with setBorder(...) and add the button to that panel.


Any code snippet please?

Related links
1. Border
2. Component
3. error 404
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!