Files
oop/lab/lab10/Question5/Start.java
2022-05-01 23:24:00 +08:00

35 lines
913 B
Java

/**
* Answer to question.
*
* - Q: What happens when you run the program?
*
* - A: The layout change to 2 columns. Direction is LTR. The program change the
* layout to my desired, the layout use the number of columns that I specified.
*
* - Q: Use the mouse to resize the frame. Does the layout change?
*
* - A: No, the layout doesn't change.
*
* - Q: Set the number of rows to zero in the grid layout manager and try again.
* What happens?
*
* - A: BOOM SHAKARAKA!
*
* - Q: What happens when you add more than one component to one of the five
* areas of the frame? What happens when one of the five areas does not contain
* any component?
*
* - A: The component will overlapping.
*/
public class Start {
public static void main(String[] args) {
// Dispather
javax.swing.SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
new MyFrame();
}
});
}
}