• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to set this a borderq

 
Roldan Baldo
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to put a border on these, so that i can add another datas in another border also, and my datas can be organize.

 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you check out the addBorder() method, and the BorderFactory class?
 
Roldan Baldo
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, but i get confused.

i mean a border that can wrap that 3 label and 3 textfield, not the whole frame that will be having border.
 
Campbell Ritchie
Sheriff
Pie
Posts: 50172
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We usually discuss this sort of thing in the Swing forum. Moving.

And have a look in the Java™ Tutorials; there is always something useful there.
 
Rob Camick
Ranch Hand
Posts: 2615
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add the Border to the panel.
 
Brian Cole
Author
Ranch Hand
Posts: 908
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Camick wrote:Add the Border to the panel.

Exactly, except the panel has been added to BorderLayout CENTER so will fill the frame,
so would have to do something like frame.getContentPane().setLayout(new FlowLayout())
in addition to the panel.setBorder(BorderFactory.createEtchedBorder()) or whatever.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic