Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Dificulty with using ButtonBorder
Dificulty with using ButtonBorder [message #138000] Mon, 14 June 2004 15:50 Go to next message
Eclipse UserFriend
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 #138070 is a reply to message #138000] Mon, 14 June 2004 20:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

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 #138120 is a reply to message #138070] Tue, 15 June 2004 05:49 Go to previous messageGo to next message
Eclipse UserFriend
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 #138168 is a reply to message #138120] Tue, 15 June 2004 15:45 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
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
> > >
>
>
Re: Dificulty with using ButtonBorder [message #138362 is a reply to message #138168] Wed, 16 June 2004 05:50 Go to previous message
Eclipse UserFriend
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
> > > >
> >
> >
Previous Topic:scrollablethumbnail with zoom
Next Topic:internal frames
Goto Forum:
  


Current Time: Fri Apr 26 14:24:31 GMT 2024

Powered by FUDForum. Page generated in 0.03425 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top