Telephone - import javax.swing.*; public class Telephone {...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//****************************************************** // Telephone.java // // Uses the TelephonePanel class to create a (functionless) GUI // like a telephone keypad with a title. // Illustrates use of BorderLayout and GridLayout. //******************************************************
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: import javax.swing.*; public class Telephone { public static void main(String args) { JFrame frame = new JFrame("Telephone"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().add(new TelephonePanel()); frame.pack(); frame.setVisible(true); } }...
View Full Document

Ask a homework question - tutors are online