Home > Back-end >  Consult a jpanel
Consult a jpanel

Time:09-20

Hello, everyone, I am a novice,
I want to ask how many panel in one window Settings, and how to set up different layout of the panel and its coordinates, and the correlation between the coordinates of a window how to judge?

CodePudding user response:

refer to the original poster left hand when the sunset fall to the ground response:
hello, I am a novice,
I want to ask how many panel in one window Settings, and how to set up different layout of the panel and its coordinates, and the correlation between the coordinates of a window how to judge?


This want to according to the actual demand, first determine the layout of the jframe, can only be used if the layout is set not absolute layout, there is no pattern design, design or not, this is not the same as ordinary programming, first draw a map window grass,

CodePudding user response:

reference 1st floor qq_39936465 response:
Quote: refer to the original poster in his left hand when the sunset fall to the ground response:

Hello, everyone, I am a novice,
I want to ask how many panel in one window Settings, and how to set up different layout of the panel and its coordinates, and the correlation between the coordinates of a window how to judge?


This want to according to the actual demand, first determine the layout of the jframe, can only be used if the layout is set not absolute layout, there is no pattern design, design or not, this is not the same as ordinary programming, first draw good PIC window grass,
I don't know how to set the position of the panel in the window, in which the specific position, how do you write this coordinates?

CodePudding user response:

reference left the sunset on the second floor landing response:
this according to actual demand to determine the layout of the jframe, can only be used if the layout is set not absolute layout, there is no pattern design, design or not, this is not the same as ordinary programming, first draw a map window grass,
I don't know how to set the position of the panel in the window, in which the specific position, how do you write this coordinates?


Setbounds method
Public void setBounds (int x,
Int y,
Int width,
Int height)

CodePudding user response:

reference qq_39936465 reply: 3/f
Quote: refer to the second floor left when the sunset fall to the ground response:

This want to according to the actual demand, first determine the layout of the jframe, can only be used if the layout is set not absolute layout, there is no pattern design, design or not, this is not the same as ordinary programming, first draw good PIC window grass,
I don't know how to set the position of the panel in the window, in which the specific position, how do you write this coordinates?


Setbounds method
Public void setBounds (int x,
Int y,
Int width,
Int height)
: I just can't fill the int value inside the

CodePudding user response:

reference 4 floor of the left hand when the sunset fall to the ground response:

setbounds methodPublic void setBounds (int x,
Int y,
Int width,
Int height)
: I just can't fill the int value inside the



X, y is jpanel starting point coordinate, that is, the upper left corner coordinates, width and height reading English to know, on behalf of the jpanel width and height

CodePudding user response:

reference 5 floor qq_39936465 reply:
Quote: refer to 4th floor left when the sunset fall to the ground response:


Setbounds method
Public void setBounds (int x,
Int y,
Int width,
Int height)
: I just can't fill the int value inside the



X, y is jpanel starting point coordinate, that is, the upper left corner coordinates, width and height reading English to know, on behalf of the jpanel width and height
don't know what's the matter, tomorrow I post code, you help me take a look at
  • Related