aspose file tools*
The moose likes Beginning Java and the fly likes JButton/JLabel Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JButton/JLabel Problem" Watch "JButton/JLabel Problem" New topic
Author

JButton/JLabel Problem

capp luckett
Ranch Hand

Joined: Dec 07, 2000
Posts: 33
Hello:
Could someone please explain to me why when I use JLabel and
JButton, I am missing my label and button, under JLabel/JButton.
I can get it to work ok under Label/Button. What is wrong??
(P.S. I had a post from Oct 19, not responded to, that can be removed.)
Thanks
Html: "code=Medium.class width=400 height=300"


flodin
Rikard Qvarforth
Ranch Hand

Joined: Jul 10, 2001
Posts: 107
you have to use the htmlconverter and the object tag ..
ps. the button "converter" dosen't properly repaint

Rille
[This message has been edited by Rikard Qvarforth (edited October 21, 2001).]
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
capp,
If you start mixing AWT components and Swing components you are going to end up with LOTS of headaches. The reason is that AWT components are "heavyweight" which means that they are strongly tied to their peer components on the operating system. Swing components try to be more "lightweight" and therefore less operating system dependant. They also get squashed by AWT components quite easily.
Pick one or the other and stick with them.


"JavaRanch, where the deer and the Certified play" - David O'Meara
capp luckett
Ranch Hand

Joined: Dec 07, 2000
Posts: 33
Got it.
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JButton/JLabel Problem
 
Similar Threads
Can't see my Panels!!! Aaarrghhhhh....
code not working
GridBagLayout Compile problems
Button not appearing and drawString issue
Instance Variable errors for MouseMotionAdapt