W1R2 - Add Layout and 'Name' Edit Panel. I added one row of the requested panel, in my next commit i should have hopefully updated it to accommodate for the idea of modularity by introducing a grid layout system in which there are rows. and each row is altered after creation.
This commit is contained in:
1 parent
06acb73531
commit
28b94caf67
1 file changed
+18
@@ -4,6 +4,8 @@
|
||||
*/
|
||||
package userprofilebuilder.view;
|
||||
|
||||
import java.awt.*;
|
||||
import javax.swing.*;
|
||||
import javax.swing.JFrame;
|
||||
|
||||
/**
|
||||
@@ -20,6 +22,22 @@ public class MainViewer {
|
||||
viewer.setTitle("User Profile Builder");
|
||||
viewer.setSize(500,400);
|
||||
viewer.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
|
||||
|
||||
viewer.setLayout(new FlowLayout());
|
||||
|
||||
String name = "Name";
|
||||
|
||||
JRadioButton JR = new JRadioButton(name);
|
||||
JButton JB1 = new JButton("Edit");
|
||||
JButton JB2 = new JButton("Delete");
|
||||
|
||||
|
||||
viewer.add(JR);
|
||||
viewer.add(JB1);
|
||||
viewer.add(JB2);
|
||||
|
||||
|
||||
viewer.setVisible(true);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user