Re: JButton is incomplete
- From: hiwa <cardinal_ring@xxxxxxxxxxx>
- Date: Wed, 28 Nov 2007 01:19:25 -0800 (PST)
On Nov 26, 10:21 pm, felix <ckpra...@xxxxxxxxx> wrote:
Hi All,
I am new to java. Though I have written codes in C, Java is still
difficult to understand. Please help me ...
I have placed a button in a gridBagLayout(1, 3). When I reduce the
size of the screen, the button is split. I do not want it to happen
this way.
I have placed the code snippet below
/* Code starts here */
JPanel p = new JPanel();
p.setLayout(new GridLayout(1,3));
p.add(new JLabel(""));
p.add(m_titleLabel);
p.add(m_refreshPan);
m_refreshPan.setLayout(new FlowLayout(FlowLayout.LEFT));
m_refreshPan.add(m_label);
m_refreshPan.add(m_button);
/* Code ends here */
--
Felix
Post a small demo code that is generally compilable, runnable and
could reproduce your problem. See: http://homepage1.nifty.com/algafield/sscce.html
and http://www.yoda.arachsys.com/java/newsgroups.html
.
- References:
- JButton is incomplete
- From: felix
- JButton is incomplete
- Prev by Date: Re: JButton is split
- Next by Date: Re: JButton is incomplete
- Previous by thread: JButton is incomplete
- Next by thread: Re: JButton is incomplete
- Index(es):