This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes How to draw an etched line? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to draw an etched line?" Watch "How to draw an etched line?" New topic
Author

How to draw an etched line?

Tris Rabar
Ranch Hand

Joined: Feb 27, 2002
Posts: 72
Hi there,
I want to draw/place an etched line across a JFrame/JPanel. How do I go about doing this? (A line to separate stuff placed on the panel.)
Thanks for any assistance.


- Trish -
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

If you need to be able to move the line around to resize the components on either side, you should use the JSplitPane class that comes with Swing. If you just need a line, you can use a JSeparator kinda like this :


-nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Tris Rabar
Ranch Hand

Joined: Feb 27, 2002
Posts: 72
Hey, thanks a lot! It's the JSeparator I needed, not the JSplitPane.
Great help...thanks a million. Works wonderfully!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to draw an etched line?
 
Similar Threads
html
html
Custom Swing Borders
how to write sine wave algorithm code
How to replace JTabbedPane's bevel border?