F
feofao
why my applet can't display components like JButton or JTextField, but
JLabel is well
JLabel is well
why my applet can't display components like JButton or JTextField, but
JLabel is well
Paulus said:Well, it ran fine, when I tried it under 1.4.2_10, but some comments:
you don't need javax.swing.SwingUtilities.invokeAndWait in init.
There's no painting until well after init has finished, so doing GUI
stuff in init is safe. You only need that in some special cases, as I
explain here (if your browser supports the use of applets) :
http://javalessons.com/cgi-bin/ui/java-swing.cgi?1cd=ths&sid=ao789
why my applet can't display components like JButton or JTextField, but
JLabel is well
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.