- groupLayout
- .setHorizontalGroup(groupLayout
- .createParallelGroup(Alignment.LEADING)
- .addGroup(
- groupLayout
- .createSequentialGroup()
- .addContainerGap()
- .addGroup(
- groupLayout
- .createParallelGroup(
- Alignment.LEADING)
- .addGroup(
- Alignment.TRAILING,
- groupLayout
- .createSequentialGroup()
- .addComponent(
- lblNewLabel,
- GroupLayout.PREFERRED_SIZE,
- 426,
- GroupLayout.PREFERRED_SIZE)
- .addContainerGap(
- GroupLayout.DEFAULT_SIZE,
- Short.MAX_VALUE))
- .addGroup(
- Alignment.TRAILING,
- groupLayout
- .createSequentialGroup()
- .addGroup(
- groupLayout
- .createParallelGroup(
- Alignment.TRAILING)
- .addComponent(
- btnNewButton_4,
- Alignment.LEADING,
- GroupLayout.DEFAULT_SIZE,
- 331,
- Short.MAX_VALUE)
- .addComponent(
- btnNewButton_3,
- Alignment.LEADING,
- GroupLayout.DEFAULT_SIZE,
- 331,
- Short.MAX_VALUE)
- .addComponent(
- btnNewButton_2,
- Alignment.LEADING,
- GroupLayout.DEFAULT_SIZE,
- 331,
- Short.MAX_VALUE)
- .addComponent(
- button,
- Alignment.LEADING,
- GroupLayout.DEFAULT_SIZE,
- 331,
- Short.MAX_VALUE)
- .addComponent(
- btnNewButton_1,
- Alignment.LEADING,
- GroupLayout.DEFAULT_SIZE,
- GroupLayout.DEFAULT_SIZE,
- Short.MAX_VALUE)
- .addComponent(
- btnNewButton,
- GroupLayout.DEFAULT_SIZE,
- 331,
- Short.MAX_VALUE))
- .addGap(107)))));
- groupLayout.setVerticalGroup(groupLayout.createParallelGroup(
- Alignment.LEADING).addGroup(
- groupLayout
- .createSequentialGroup()
- .addGap(7)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE,
- 58, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(btnNewButton)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(btnNewButton_1)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(button)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(btnNewButton_2)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(btnNewButton_3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(btnNewButton_4)
- .addContainerGap(137, Short.MAX_VALUE)));
- setLayout(groupLayout);
-
+ GroupLayout.SequentialGroup sequentialGroup = groupLayout.createSequentialGroup();
+ sequentialGroup.addComponent(new JLabel("Choose an example to launch:"));
+ sequentialGroup.addComponent(new JButton(new ShowOctree()));
+ sequentialGroup.addComponent(new JButton(new ShowMathGraphs()));
+ sequentialGroup.addComponent(new JButton(new ShowPointCloud()));
+ sequentialGroup.addComponent(new JButton(new ShowRain()));
+ sequentialGroup.addComponent(new JButton(new ShowSinusMap()));
+ sequentialGroup.addComponent(new JButton(new ShowTextEditors()));
+ sequentialGroup.addComponent(new JButton(new ShowGameOfLife()));
+ sequentialGroup.addComponent(new JButton(new ShowRandomPolygons()));