Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Panel doesn appear in browser, only appletviewer

Status
Not open for further replies.

mydavor

Programmer
Mar 21, 2004
41
AU
My prog has 2 vertical panels, they both appear when appletviewer is used, but with browser, the panel1 when it has many entries, it doesn't show up:
GridBagLayout gridbag = new GridBagLayout();
GridBagConstraints constraints = new GridBagConstraints();
constraints.fill = GridBagConstraints.BOTH;
setLayout(gridbag);

// Panel1
buildConstraints(constraints, 0, 0, 30, 40, 80, 100);
Panel panel1 = new Panel();
gridbag.setConstraints(panel1, constraints);
panel1.setBackground(Color.white);
add(panel1);

// Panel2
buildConstraints(constraints, 30, 0, 10, 40, 20, 100);
Panel panel2 = new Panel();
gridbag.setConstraints(panel2, constraints);
panel2.setBackground(Color.white);
add(panel2);

is it dimensions in .html that do not fit sizes of the panels (WIDTH=750 HEIGHT = 1650 ) ??
 
You test, if you start it in the appletviewer, and move the appletviewer-window into the browserwindow, whether it should fit into it - height of 1650 isn't a few pixels.

Don't you specify in the applet.html how big it is?
Can you test it with smaller values?
 
This ended to be the same as the issue of access denied (java.net.SocketPermission demo resolve) problem.
The panel that has not come up was supposed to show data from a database. As the access was denied, there was no data, and no panel. I was able to get the message "cannot access ...".
So I am back to the same question:

Why applet within appletviewer can talk to a db, and the same applet within browser cannot ? (I ran keytool, jar and jarsigner, beforehand)

So if I must provide an internet application, which or method to use ?
 
When the appletviewer shows the panel, and the browser doesn't, I would assume the browsersettings are set to 'no java' or something like that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top