7 Topics

Member Avatar for
Member Avatar for dsmush

[SIZE=4][FONT=Arial]Hi, I'm creating an application that makes use of the GridBagLayout as it is the most useful layout manager for what I need. I made a JPanel and added it to the frame. The result I'm currently getting during run-time is a JFrame with a JPanel placed in the center. …

Member Avatar for Toby_6
1
3K
Member Avatar for anestistsoukalis

this is the result i am trying to: http://beepleased.com/wordpress/wp-content/uploads/2013/11/2.jpg and this is my code: panelSignUp.add(new JLabel("Name:")); // this.getContentPane().add(nameTextField,) panelSignUp.add(nameTextField); panelSignUp.add(new JLabel("Email:")); // this.getContentPane().add(nameTextField,) panelSignUp.add(emailTextField); panelSignUp.add(new JLabel("Username:")); // this.getContentPane().add(nameTextField,) panelSignUp.add(userNameTextField); panelSignUp.add(new JLabel("Password:")); // this.getContentPane().add(nameTextField,) panelSignUp.add(passwordTextField); panelSignUp.add(signDone); this.setLayout(new GridLayout(5,2)); this.setContentPane(panelSignUp); this.setSize(400, 300); this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); this.setVisible(true); all go well, the only problem is that …

Member Avatar for mKorbel
0
186
Member Avatar for AODfan

Hi all, I am having an issue with getting my Jbuttons and JComboBox alignment properly in the JPanel. I have tried changing the coordinates of the GridLayout around to try to satisfy, but they are working properly. I am trying to get my radio buttons to the far right and …

Member Avatar for chdboy
0
605
Member Avatar for IcyFire

Is there a way for me to manipulate the cells of a grid layout? For example lets say i have a grid that has 5 rows and 5 columns. Is it possible for me to manipulate the cell at row 1 column 2 using the layout, sort of like the …

Member Avatar for IcyFire
0
210
Member Avatar for leiger

I'm trying to list a bunch of buttons vertically, but am having problems even getting that much done. I'm pretty sure I have the scroll pane working (it just isn't being used yet so I can't test it). This is part of an assignment so I'd prefer not to post …

Member Avatar for leiger
0
2K
Member Avatar for bertyhell

hello i want to replicate this form [url]http://i77.photobucket.com/albums/j74/bertyhell/layout.png[/url] the top is just the form the lower one is how i'm triing to do it 'red' is a boxlayout and the green parts are panels with normal flowlayouts i cant seem to get the alignment right this is what i got …

Member Avatar for bertyhell
0
226
Member Avatar for Whilliam

Hello. I'm trying to make a calculator with JFrame. I'm only gonna make the appearance of the calculator (not functioning). The numbers and operators are supposed to be arranged this way: 7 8 9 + 4 5 6 - 1 2 3 x # 0 * / however, I only …

Member Avatar for Whilliam
0
2K

The End.