Dificulty with using ButtonBorder [message #138000] |
Mon, 14 June 2004 15:50 |
Eclipse User |
|
|
|
Originally posted by: imnio.yahoo.com
Hi
Can anyone please guide me as to how to use a ButtonBorder? I have been
trying to do it, but am getting an Exception when applying to a Figure.
Can you please point me to an example on the same?
Thanks
nio
|
|
|
|
Re: Dificulty with using ButtonBorder [message #138120 is a reply to message #138070] |
Tue, 15 June 2004 05:49 |
Eclipse User |
|
|
|
Originally posted by: imnio.yahoo.com
Hi
Thanks. Following is a snippet of what I am trying :-
LightweightSystem lws = new LightweightSystem(shell);
IFigure panel = new Figure();
lws.setContents(panel);
Button b = new Button();
b.setBorder(new ButtonBorder());
panel.add(b);
I am getting a clickable button - but no ButtonBorder.Where am I going
wrong?
Nio
Randy Hudson wrote:
> It requires a Button figure.
> "Nio" <imnio@yahoo.com> wrote in message news:cakhgc$j8c$1@eclipse.org...
> > Hi
> > Can anyone please guide me as to how to use a ButtonBorder? I have been
> > trying to do it, but am getting an Exception when applying to a Figure.
> > Can you please point me to an example on the same?
> > Thanks
> > nio
> >
|
|
|
|
Re: Dificulty with using ButtonBorder [message #138362 is a reply to message #138168] |
Wed, 16 June 2004 05:50 |
Eclipse User |
|
|
|
Originally posted by: imnio.yahoo.com
Hi Pratik.
Thanks for the help ! Issue resolved. It arose due to a misunderstanding
on my part.
Pratik Shah wrote:
> The button has a raised appearance, right? That is the border. Invoke
> b.setBorder(null) and you will see it without the border.
> "Nio" <imnio@yahoo.com> wrote in message news:cam2l9$7pj$1@eclipse.org...
> > Hi
> > Thanks. Following is a snippet of what I am trying :-
> > LightweightSystem lws = new LightweightSystem(shell);
> > IFigure panel = new Figure();
> > lws.setContents(panel);
> > Button b = new Button();
> > b.setBorder(new ButtonBorder());
> > panel.add(b);
> > I am getting a clickable button - but no ButtonBorder.Where am I going
> > wrong?
> > Nio
> >
> > Randy Hudson wrote:
> >
> > > It requires a Button figure.
> > > "Nio" <imnio@yahoo.com> wrote in message
> news:cakhgc$j8c$1@eclipse.org...
> > > > Hi
> > > > Can anyone please guide me as to how to use a ButtonBorder? I have
> been
> > > > trying to do it, but am getting an Exception when applying to a
> Figure.
> > > > Can you please point me to an example on the same?
> > > > Thanks
> > > > nio
> > > >
> >
> >
|
|
|
Powered by
FUDForum. Page generated in 0.03425 seconds