Happy Birthday To You Yogi Sundana ...
EditorTeks.java (Pemrograman Berorientasi Objek)
EditorTeks.java import java.awt.*; import java.awt.event.*; import java.io.*; public class EditorTeks extends Frame { int lebar = 400; int tinggi = 250; String namaFile = " " ; TextArea tArea; MenuItem itemBuka; MenuItem itemSimpan; MenuItem itemKeluar; ...
TesFlowLayout.java (Pemrograman Berorientasi Objek)
TesFlowLayout.java import java.awt.*; import java.awt.event.*; public class TesFlowLayout extends Frame { public static void main(String[]args) { TesFlowLayout apl = new TesFlowLayout(); } public TesFlowLayout() { super("Tes FlowLayout"); setSize(300,200); Panel p1 = new Panel (); p1.setLayout(new FlowLayout()); p1.add(new Button("Tombol A")); p1.add(new Button("Tombol B")); p1.add(new...
TesGridLayout.java (Pemrograman Berorientasi Objek)
TesGridLayout.java import java.awt.*; import java.awt.event.*; public class TesGridLayout extends Frame { public static void main (String[]args) { TesGridLayout apl = new TesGridLayout(); } public TesGridLayout() { super("Tes FlowLayout"); setSize(400,250); Panel p1 = new Panel(); p1.setLayout(new GridLayout(2,3)); p1.add(new Button("Tombol A")); p1.add(new Button("Tombol B")); p1.add(new...