${person.dog.name}
${person[dog["name"]}
Originally posted by marc weber:
What? You mean there are people who still use Windows?
![]()
Frame f=new Frame(); // creating a new frame
Label l=new Label("Party at Tim's"); // creating a new label
Button b=new Button("You bet"); // creating a new button
Button c=new Button("Shoot me"); // creating a new button
Panel p=new Panel(); // creating a new panel
p.add(l); // adding the lable to the panel
import java.awt.*;
import java.awt.event.*;
// a class that gets all the methods and variables from the Frame class
public class Party3 extends Frame {
// a constructor to create an instance of the class Party3
public Party3() {
//Creates a frame with the title BasicApplication Title
super("BasicApplication Title"); // sets the title
// sets the size of the frame
setSize(200, 200); // sets the size
// creates a label with the word's Hello world placed in the center
Label l = new Label("hello world",Label.CENTER);
// adds the label to the frame in the center of the frame
add(l,BorderLayout.CENTER);
// tells the application to close when you press the x button
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
setVisible(false); dispose();
System.exit(0);
}
});
}
// the main method so that it runs
public static void main(String[] args) {
//creates an instance of the class you created above
Party3 app = new Party3();
app.setVisible(true);
}
}
http://jakarta.apache.org/builds/jakarta-taglibs/nightly/projects/request/
public String getAnswer() {
String answer = null;
If (something == somethingElse) {
answer = "Yo' Momma";
// what would go here to go straight to the return
}
// other stuff which would lead to a different answer
answer = "Yo' Sister"
return answer;
}