my dog learned polymorphism
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JButton/JLabel Problem" Watch "JButton/JLabel Problem" New topic

JButton/JLabel Problem

capp luckett
Ranch Hand

Joined: Dec 07, 2000
Posts: 33
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.)
Html: "code=Medium.class width=400 height=300"

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

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

Joined: Sep 29, 2000
Posts: 8521
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.
I agree. Here's the link:
subject: JButton/JLabel Problem
It's not a secret anymore!