#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)

mellow heartBOT
#

@valid obsidian

k1zma Uploaded Some Code

Like i will show in the photos what i need help with
i want it to be on the left and not on the top

Uploaded these files to a Gist
valid obsidian
#

the help is in the first border

woven spire
#

What photos?

valid obsidian
#

it just didnt let me send

#

i will send here

mellow heartBOT
#

@valid obsidian

k1zma Uploaded Some Code

what i want and the code

Uploaded these files to a Gist
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

woven spire
#

What IDE are you using?

valid obsidian
#

Eclipse

valid obsidian
#

nvm

#

i make it

woven spire
# valid obsidian i make it

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?

valid obsidian
#

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

woven spire
#

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

valid obsidian
#

yes