This
preview
has intentionally blurred sections.
Sign up to view the full version.
Unformatted text preview: lineTF.setLocation(20, 100); whiteBoardTA.setLocation(320, 50); appendB.setLocation(230, 100); exitB.setLocation(230, 250); headingL.setSize(200, 30); lineTF.setSize(200, 30); whiteBoardTA.setSize(200, 200); appendB.setSize(80, 30); exitB.setSize(80, 30); pane.add(headingL); pane.add(lineTF); pane.add(whiteBoardTA); pane.add(appendB); pane.add(exitB); setVisible(true); setDefaultCloseOperation(EXIT_ON_CLOSE); } //end of the constructor public static void main(String args) { WhiteBoard board = new WhiteBoard(); } public void actionPerformed(ActionEvent e) { if(e.getActionCommand().equals("Append")) whiteBoardTA.append(lineTF.getText()); else if(e.getActionCommand().equals("Exit")) System.exit(0); } }...
View
Full Document
- Spring '10
- STAFF
- Harshad number, Whiteboard, Interactive whiteboard, private static int
-
Click to edit the document details