File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Adding a JPanel Component Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Adding a JPanel Component" Watch "Adding a JPanel Component" New topic

Adding a JPanel Component

V Bose
Ranch Hand

Joined: Jul 10, 2003
Posts: 113

Line 1 works but Line 2 does not. (when using one or the other...)
Any suggestions why ?
marc weber

Joined: Aug 31, 2004
Posts: 11343

Originally posted by V Bose:
...Line 1 works but Line 2 does not. (when using one or the other...)...

What makes you say it's not working? There is nothing wrong with either of these lines. Both should work in the proper context -- but neither will work in the context presented, so maybe the problem is in the missing code?

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
I agree. Here's the link:
subject: Adding a JPanel Component
It's not a secret anymore!