removed old WindowBuilder test file
This commit is contained in:
		
							parent
							
								
									c9e2f054cf
								
							
						
					
					
						commit
						bf2d5d5f1c
					
				
					 2 changed files with 0 additions and 75 deletions
				
			
		|  | @ -1,56 +0,0 @@ | |||
| // * this code was generated by Window Builder extension * // | ||||
| 
 | ||||
| import javax.swing.*; | ||||
| import java.awt.*; | ||||
| 
 | ||||
| 
 | ||||
| public class GUI { | ||||
|   public static void main(String[] args) { | ||||
|     JFrame frame = new JFrame("Primary Window"); | ||||
|     frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | ||||
|     frame.setSize(400, 400); | ||||
|      | ||||
|     JPanel panel = new JPanel(new GridBagLayout()); | ||||
|     GridBagConstraints constraints = new GridBagConstraints(); | ||||
| 
 | ||||
|     // Fill the layout with placeholders | ||||
|     for (int row = 0; row < 12; row++) { | ||||
|         for (int col = 0; col < 12; col++) { | ||||
|             constraints.gridx = col; | ||||
|             constraints.gridy = row; | ||||
|             constraints.weightx = 1.0; | ||||
|             constraints.weighty = 1.0; | ||||
|             constraints.fill = GridBagConstraints.BOTH; | ||||
| 
 | ||||
|             Component filler = Box.createRigidArea(new Dimension(0, 0)); | ||||
|             panel.add(filler, constraints); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     constraints.weightx = 0; | ||||
|     constraints.weighty = 0; | ||||
|     constraints.fill = GridBagConstraints.NONE; | ||||
|     constraints.anchor = GridBagConstraints.NORTHWEST; | ||||
| 
 | ||||
|      | ||||
|     JLabel label_0 = new JLabel("If you see this window, then it is successful. "); | ||||
|     constraints.gridx = 1; | ||||
|     constraints.gridy = 2; | ||||
|     constraints.gridwidth = 1; | ||||
|     constraints.gridheight = 1; | ||||
|     panel.add(label_0, constraints); | ||||
|      | ||||
|     JButton button_0 = new JButton("Thank you"); | ||||
|     button_0.setPreferredSize(new Dimension(98, 47)); | ||||
|      | ||||
|     constraints.gridx = 8; | ||||
|     constraints.gridy = 9; | ||||
|     constraints.gridwidth = 2; | ||||
|     constraints.gridheight = 2; | ||||
|     panel.add(button_0, constraints); | ||||
|      | ||||
|     frame.add(panel); | ||||
|     frame.setVisible(true); | ||||
|   } | ||||
| } | ||||
|      | ||||
|  | @ -1,19 +0,0 @@ | |||
| /** | ||||
|  *  | ||||
|  */ | ||||
| package xs_ibdpcompsci_javaintro; | ||||
| 
 | ||||
| /** | ||||
|  *  | ||||
|  */ | ||||
| public class WindowBuilder_Test { | ||||
| 
 | ||||
| 	/** | ||||
| 	 * @param args | ||||
| 	 */ | ||||
| 	public static void main(String[] args) { | ||||
| 		// TODO Auto-generated method stub | ||||
| 
 | ||||
| 	} | ||||
| 
 | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue