import java.awt.*; class StickyPad { private Frame frm; private TextArea noteTA, responseTA; private Button leaveBtn, returnBtn, submitBtn; public StickyPad() { frm = new Frame("Sticky Pad"); Panel centerPnl = new Panel(); centerPnl.setLayout(new FlowLayout()); noteTA = new TextArea(6,40); //set the color of the text area to yellow: noteTA.setBackground(Color.yellow); //set the font of the text area to a large 20 point font noteTA.setFont(new Font("Dialog", Font.PLAIN, 20)); centerPnl.add(noteTA); responseTA = new TextArea(6,40); //set the color of the text area to green: responseTA.setBackground(Color.green); //set the font of the text area to a large 20 point font responseTA.setFont(new Font("Dialog", Font.PLAIN, 20)); centerPnl.add(responseTA); Panel southernPnl = new Panel(); southernPnl.setLayout(new FlowLayout()); submitBtn = new Button("Submit"); southernPnl.add(submitBtn); leaveBtn = new Button("Leave"); southernPnl.add(leaveBtn); returnBtn = new Button("Return"); southernPnl.add(returnBtn); frm.add(centerPnl, BorderLayout.CENTER); frm.add(southernPnl, BorderLayout.SOUTH); frm.setSize(500, 420); frm.show(); } public static void main(String args[]) { StickyPad sp = new StickyPad(); } }