Spaceman85
Mitglied
Das löst aber immer noch nicht mein Problem warum sich alles verschiebt wenn ich dem westPane das iconLabel hinzufüge!
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.
import java.awt.GridLayout;
import javax.swing.JFrame;
import javax.swing.JLabel;
public class Test
extends JFrame
{
public Test()
{
setLayout(new GridLayout());
setDefaultCloseOperation(EXIT_ON_CLOSE);
add(new JLabel("test1"), 0);
add(new JLabel("test2"), 0);
add(new JLabel("test3"), 0);
add(new JLabel("test1"));
add(new JLabel("test2"));
add(new JLabel("test3"));
pack();
}
public static void main(String[] args)
{
new Test().setVisible(true);
}
}