| | |
How to make this sort of frame with SWING
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Jan 2008
Posts: 27
Reputation:
Solved Threads: 0
Hello everybody,
I have various components that I want regroup in the same category. I found numerous screenshots on the internet using some sort of frame surrounding items. For instance : http://www.vieartificielle.com/image..._photo_gui.jpg (the frame surrounding "Joystick information" section) and http://bp3.blogger.com/_45gEBj4xUTA/...20/RobotUI.jpg (the frame surrounding "Current data" section). I dont know how to get the same thing. Hope you can help !
I have various components that I want regroup in the same category. I found numerous screenshots on the internet using some sort of frame surrounding items. For instance : http://www.vieartificielle.com/image..._photo_gui.jpg (the frame surrounding "Joystick information" section) and http://bp3.blogger.com/_45gEBj4xUTA/...20/RobotUI.jpg (the frame surrounding "Current data" section). I dont know how to get the same thing. Hope you can help !
Put all of your components that you want to group into a JPanel and set a border around it. Something like TitledBorder should suffice, although if you want to get really fancy try a CompoundBorder. Then you just add the JPanel to your JFrame where you want.
There are no stupid questions, only those too stupid to ask for help.
echo is a web developer's best friend. Why you not using TitledBorder as darkang suggested? They are easy to use, see the tutorial here
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
![]() |
Similar Threads
- GUI buttons Inventory Part 5 (Java)
- Resizing output window (Java)
- Tic Tac Toe Help (Java)
- help with database assignment (Java)
Other Threads in the Java Forum
- Previous Thread: how to remove node from link list
- Next Thread: Sorting Strings
Views: 557 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for Java
6 android api apple applet application arguments array arrays automation binary bluetooth bold byte c++ chat class classes client code component coordinates database datagram doctype draw eclipse educational error event exception file fractal froglogic game givemetehcodez graphics gui helpwithhomework html ide ideas image ingres input integer internet intersect ip j2me java javaexcel javaprojects jmf jni jpanel jtextarea julia linux list loop map method methods mobile netbeans newbie nextline number object oracle pong print problem program programming project recursion recursive scanner screen sell server set size sms socket sort sql string swing test threads time transfer tree user web websites windows






