Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
JFrame j = new JFrame();
JPanel panel1 = new JPanel();
JPanel panel2 = new JPanel();
panel1.add(new JLabel("Test1 Test1 "));
panel2.add(new JLabel("Test2 Test2"));
panel2.add(new JLabel("Test3 Test3 "));
j.getContentPane().setLayout(new GridLayout(2,1));
j.getContentPane().add(panel1);
j.getContentPane().add(panel2);
j.setSize(300,300);
j.setVisible(true);
Toolkit tk = Toolkit.getDefaultToolkit();
PrintJob pj = tk.getPrintJob(j, "", null );
if ( pj != null ) {
Graphics g = pj.getGraphics();
panel1.printAll( g );
g.dispose();
pj.end();
}