Display diference between window and applet
I made a JPanel to store all the information in an application. I set this JPanel as the content pane in both the applet version and the standalone version of the program.
In the application version it displays fine. In the applet version however, I must mouse over the buttons to see them and click on the textfields to see all but the first one. A JLabel is not seen until the text is changed. Also, the background of the JPanels are not what I set them to be. In google chrome the background is white and in firefox it is transparent. I set the background to be gray.
Could someone please tell me how to fix this?
One more thing, is there a way to make the applet fit the size of the components like the pack() method in a window?
Thanks in advance.