• Post Reply Bookmark Topic Watch Topic
  • New Topic

Looking for AWT version of strut.  RSS feed

 
Darrin Smith
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an applet (not a JApplet) and I would like to put some space btween two sets of buttons. In Swing, you could just add Box.createHorizontalStrut(size) but how can this be done in AWT?

Thanks!
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That depends on the layout you're using. It might be as simple as adding a blank label.
 
Darrin Smith
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ulf Dittmer:
That depends on the layout you're using. It might be as simple as adding a blank label.


By golly that's what I tried and it worked just as well.

Thanks!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!