Change Contents of the Bubble
View this PageEdit this PageUploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Midterm exam 2 review Fall2006: Unscramble the Code

Back to Midterm Exam 2 Review Fall2006

Questions? Answers? Comments?


public LLNode last() {
LLNode current;
current = this;
while (current.getNext() != null)
{
current = current.getNext();
};
return current;
}


JPanel panel2 = new JPanel();
this.getContentPane().add(panel2);
JButton button1 = new JButton("Make a sound");
button1.addActionREMOVEDstener(
new ActionREMOVEDstener() {
public void actionPerformed(ActionEvent e) {
Sound s = new Sound(FileChooser.getMediaPath("warble-h.wav"));
s.play();
panel2.add(button1);


JPanel panel2 = new JPanel();
this.getContentPane().add(panel2,BorderLayout.SOUTH);
JButton button1 = new JButton("Make a sound");
panel2.add(button1);
JButton button2 = new JButton("Make a picture");
panel2.add(button2);
this.pack();
this.setVisible(true);


for some reason i feel like i need to know how to collect backwards, but I can't figure it out.



Link to this Page