@valid obsidian
#I need some help with java swing i just need to put text instead of the top in the left
27 messages · Page 1 of 1 (latest)
the help is in the first border
What photos?
@valid obsidian
i cant send images
it just doenst let me
but the code i can
yesss
its the Reserva
no the tipos de quarto
What IDE are you using?
Eclipse
Really? Cool! I found an answer online that did something like what you wanted, but I thought there would be a simpler solution so I didn't show it. How'd you do it?
i added a flowlayout inside the pnl
JLabel label1 = new JLabel(" Hotel: ");
JPanel panel1 = new JPanel();
panel1.setLayout(new FlowLayout(FlowLayout.LEFT));
panel1.add(label1);
panel1.add(cb);
pnl.add(panel1);
JLabel label2 = new JLabel(" Noites: ");
JPanel panel2 = new JPanel();
panel2.setLayout(new FlowLayout(FlowLayout.LEFT));
panel2.add(label2);
panel2.add(spinner1);
pnl.add(panel2);
like this
now its like this
what i wanted
Oh, that's not what I thought you wanted. it sounded like you wanted the text that says "Reserva" to be on the left, going up and down
By the way, does Eclipse have some sort of GUI/Application builder? I use NetBeans which has a visual editor that automatically provides code for me to place components where I put them
yes