Difference between revisions of "Absolute positioning simple example"
From MyWiki
(Created page with "<source lang="java"> import java.awt.Frame; import java.awt.Button; public class PixelFormat extends Frame { public PixelFormat() { setLayout(null);...") |
(No difference)
|
Revision as of 17:42, 23 May 2016
import java.awt.Frame; import java.awt.Button; public class PixelFormat extends Frame { public PixelFormat() { setLayout(null); Button btn = new Button("OK"); btn.setBounds(75, 100, 110, 50); add(btn); setSize(250, 200); setVisible(true); } public static void main(String args[]) { new PixelFormat(); } }