Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JButton/JLabel Problem

 
capp luckett
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"
 
Rikard Qvarforth
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
capp luckett
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it.
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic