File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Graphics and Swing

 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are the Graphics and Graphics2D classes available to work in a Swing Application. All I ever see them in is an applet.
If so, I need to draw a line across my JPanel. Does anyone know how?
------------------
Happy Coding,
Gregg Bolinger
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could do it that way... if you wanted to...

However, I think in your case a JSeparator would serve the purpose much more nicely...




JSeparators! They're not just for JMenus any more!


-Nate
[This message has been edited by Nathan Pruett (edited September 18, 2001).]
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much!! That helped out. I got it done. I was even able to change the color of the serparator which is what I needed to do.
Thanks again!!

------------------
Happy Coding,
Gregg Bolinger
 
Mary Shell
Greenhorn
Posts: 17
C++ Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the help. Just what I needed too.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic