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 ) ??
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 ) ??