import java.awt.*; import java.awt.event.*; public class gui extends Frame{ private Button red=null; private Button green=null; public gui(){ } public static void main(String[] args){ gui f=new gui(); //f.setLocation(150,150); f.setVisible(true); //f.setSize(300,300); f.setBounds(10,10,500,500);//location and size f.add(red); } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter