Hello, i'm using a Jpanel, I am using an image as background . On top of that i want to put buttons on it. The problem is I cannot repostion the buttons? can anyone help me here!!??
zyaday
0
Junior Poster in Training
Recommended Answers
Jump to Posthi Zyaday,
using setBounds() method
first set the layout of panel as none.
syntax:button_name.setBounds(int x,int y,int width,int height);
example:
JB_ClickMe.setBounds(20,25,150,20);
You could resort to absolute positioning, but in the event that the Panel is resized you may want to use a layout.
I'd suggest looking …
All 4 Replies
Alex Edwards
321
Posting Shark
freshface001
0
Newbie Poster
Alex Edwards
321
Posting Shark
Jishnu
commented:
Good help done :)
+3
zyaday
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.