S
Sameer
Related to java GUI
------------------------
I have designed a frame which contains a TextArea ,TextField and a
JButton.
It is going to act as a Personal Messages Window in a chatting program.
The size of the frame is set to 300 X 300.
When I start the JFrame instance it shows the Window but does not show
any component, i have to strech it little bit to show all the
components.
To avoid this, I execute a pack() routine on the frame, but then
all the components of the frame gets collected in one part of the
frame.
This is because there is not content in the TextArea and TextField.
I want to display the frame in full form i.e. having size 300 X 300 all
the time. I know that this is happening due to the routine pack().
How to avoid this so as to display a full window?
Can I design a frame with Close button only i.e. without Minimize and
Maximize button? Is it possible to control display of Control buttons
in Swing?
Related to Thread Issues
-------------------------------
I open a new JFrame in a new Thread from a java program (which is also
a JFrame).
The class definition for this new JFrame application to be opened is
public class Chat extends JFrame implements Runnable {
..........
}
When i dispose the Frame, will this new thread be get killed?
Or it continue to use system resources?
How to kill a particular thread from a JVM when there are so many
threads running simeltaneously?
-Sameer
------------------------
I have designed a frame which contains a TextArea ,TextField and a
JButton.
It is going to act as a Personal Messages Window in a chatting program.
The size of the frame is set to 300 X 300.
When I start the JFrame instance it shows the Window but does not show
any component, i have to strech it little bit to show all the
components.
To avoid this, I execute a pack() routine on the frame, but then
all the components of the frame gets collected in one part of the
frame.
This is because there is not content in the TextArea and TextField.
I want to display the frame in full form i.e. having size 300 X 300 all
the time. I know that this is happening due to the routine pack().
How to avoid this so as to display a full window?
Can I design a frame with Close button only i.e. without Minimize and
Maximize button? Is it possible to control display of Control buttons
in Swing?
Related to Thread Issues
-------------------------------
I open a new JFrame in a new Thread from a java program (which is also
a JFrame).
The class definition for this new JFrame application to be opened is
public class Chat extends JFrame implements Runnable {
..........
}
When i dispose the Frame, will this new thread be get killed?
Or it continue to use system resources?
How to kill a particular thread from a JVM when there are so many
threads running simeltaneously?
-Sameer