Applet « Dialog « Java Swing Q&A





1. JApplets and JDialog    stackoverflow.com

I have a japplet which contains an "about" button, which when pressed creates a new JDialog. The idea is that when the user clicks on the about button in the applet ...

2. Dialog in Applet    coderanch.com

7. java applet: how to create a JDialog window bigger than screen?    forums.oracle.com

Hi, I am new to java, and I am writing a java applet that pop up a JDialog window which has many controls (buttons, check boxes, edit boxes, etc.) and I'd like it to run on different screens from 640x480 to 1280x1024. The problem I found that I simply cannot create a window that bigger than screen size. I tried setPreferredSize(), ...

8. Applet won't load/run in my JDialog.    forums.oracle.com

When you build a house and you have a weak foundation. Sooner or later as you add more bricks to it the house will collapse. Trying to add code to a poorly structed program is inviting problems in the future. There are so many things wrong with this. First of all you don't know what the difference between an applet and ...

9. Adding image to JDialog in Applet    forums.oracle.com

Swing related questions should be posted in the Swing forum. For a Swing applet you should be extending JApplet. You don't even need an ImagePanel. You are drawing the image at its actual size. Therefore, just create an ImageIcon and add it to a JLabel and add the label to the content pane. Never override the paint() method. Why don't you ...