java gui border

 Moderator: hife

Post Reply
Raksha
CC Advisor - Veteran
CC Advisor - Veteran
Posts: 1966
Joined: Wed Sep 19, 2007 2:10 pm
Location: nothingness

java gui border

Post by Raksha »

ok i work on a little java gui (graphical user interface) for school.
Is there any way to create a border around a JPanel?
Or are there any other methods to create different borders?
(I mustn't create them around a JLabel...)
Image
~ Veteran ~
sense of life: Nobody knows what it is. But It has no sense being the richest man on the graveyard
User avatar
Penguin
Chief Warrant Officer
Chief Warrant Officer
Posts: 5582
Joined: Mon Mar 23, 2009 5:51 pm
Location: Stamper, winning very ez 15:0 against Vash
Contact:

Re: java gui border

Post by Penguin »

I don't do Java myself but my friend who does told me to send you this

Official Java documentation :P

http://download.oracle.com/javase/tutor ... order.html
Image

Image
Most BS you read all day^
Raksha
CC Advisor - Veteran
CC Advisor - Veteran
Posts: 1966
Joined: Wed Sep 19, 2007 2:10 pm
Location: nothingness

Re: java gui border

Post by Raksha »

somehow the method: setBorder() doesn't work with panels.
Image
~ Veteran ~
sense of life: Nobody knows what it is. But It has no sense being the richest man on the graveyard
Post Reply

Return to “General”