5.3 Layout-Manager FlowLayout Programmfragment
{"Image DocumentName": "5.3 Layout-Manager FlowLayout Programmfragment", "Image ImageDescription": "JPanel panel = new JPanel(); FlowLayout fl = new FlowLayout(); fl.setAlignment(FlowLayout.LEFT); // Ausrichtung fl.setHgap(9); // horizontale L\u00fccke fl.setVgap(12); // vertikale L\u00fccke panel.setLayout(fl); // oder gleich: panel.setLayout(new FlowLayout (FlowLayout.LEFT, 9, 12)); // (Alignment, Hgap, Vgap) panel.add(jButton1); // usw.: Komponenten hinzuf\u00fcgen. Window.pack(); // bewirkt Berechnung des Layouts.", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}