Virtual Position Forum
Please register to watch content in detail
Thanks
Admin virtual position


Join the forum, it's quick and easy

Virtual Position Forum
Please register to watch content in detail
Thanks
Admin virtual position
Virtual Position Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Change the Size of Buttons in Java 2011.

View previous topic View next topic Go down

GMT + 3 Hours Change the Size of Buttons in Java 2011.

Post by sharmila farooqi Sun May 29, 2011 5:17 pm

sir please guide me how can i change the size of buttons in when using grid layout and border layout and how can i make National ID primary key give me hint please.
avatar
sharmila farooqi
Monstars
Monstars

Posts : 35
Join date : 2011-05-29

Back to top Go down

GMT + 3 Hours Re: Change the Size of Buttons in Java 2011.

Post by Vuhelper Sun May 29, 2011 5:18 pm

You can change size by setting the preferred size.



JButton jbutton1 = new JButton("Button 1");

jbutton.setPreferredSize(new Dimension(150, 50));



no need to worry about primary key in this assignment , just get the data from the GUI and write into the text file, you can keep the cnic to string type.
avatar
Vuhelper
Deep Bench
Deep Bench

Posts : 97
Join date : 2011-05-29

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum