lab10
This commit is contained in:
34
lab/lab10/Question4/Start.java
Normal file
34
lab/lab10/Question4/Start.java
Normal file
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
* 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();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user