File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 2
2
* Provides the UI elements
3
3
*/
4
4
import javax .swing .*;
5
- import java .awt .GridLayout ;
5
+ import java .awt .* ;
6
6
import java .awt .event .ActionEvent ;
7
7
import java .awt .event .ActionListener ;
8
8
import java .io .File ;
@@ -15,7 +15,7 @@ public UserSearchUI() {
15
15
final JFrame frame = new JFrame ();
16
16
frame .setSize (300 , 100 );
17
17
frame .setDefaultCloseOperation (WindowConstants .EXIT_ON_CLOSE );
18
- frame .setLayout (new GridLayout ());
18
+ frame .setLayout (new FlowLayout ());
19
19
20
20
final JTextField field = new JTextField ("Enter a username" );
21
21
@@ -50,10 +50,10 @@ public String showProfile(String username) {
50
50
}
51
51
52
52
// for trying out the code:
53
- // public static void main(String[] args) {
54
- // new UserSearchUI();
55
- //
56
- // }
53
+ public static void main (String [] args ) {
54
+ new UserSearchUI ();
55
+
56
+ }
57
57
58
58
}
59
59
You can’t perform that action at this time.
0 commit comments