aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes how to set this a borderq Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to set this a borderq" Watch "how to set this a borderq" New topic
Author

how to set this a borderq

Roldan Baldo
Ranch Hand

Joined: Aug 11, 2009
Posts: 99
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

Joined: Jul 08, 2003
Posts: 24187
    
  34

Did you check out the addBorder() method, and the BorderFactory class?


[Jess in Action][AskingGoodQuestions]
Roldan Baldo
Ranch Hand

Joined: Aug 11, 2009
Posts: 99
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

Joined: Oct 13, 2005
Posts: 40052
    
  28
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

Joined: Jun 13, 2009
Posts: 2227
    
    8
Add the Border to the panel.
Brian Cole
Author
Ranch Hand

Joined: Sep 20, 2005
Posts: 863
    
    1
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.

bitguru blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to set this a borderq