Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How can I have this widget effect in Eclipse platform?
How can I have this widget effect in Eclipse platform? [message #458861] Sun, 24 July 2005 08:51 Go to next message
Yin Qiu is currently offline Yin QiuFriend
Messages: 7
Registered: July 2009
Junior Member
Well, my project now demands such a widget in user interface with the
requirements as follows:
This widget can display both text, icon, and even button. If the text on
it is too long to display completely, omission marks should replace the
redundant words. It is also selectable which is similar to a cell in the
JTable, but it should support displaying icons as I said, and should only
be scaled in size horizontally but never vertically.

Fortunately, I find that a component in the dialog shown during build or
update process meets my request. Does anybody who is familiar with SWT know
how this is managed? That is, which widget(s) should I use? Or can Swing
meet my demand? By the way, here is the capture image of eclipse dialog I
concerned: http://freehost21.websamba.com/utarget/Eclipse_snap.jpg


Many many thanks!
Re: How can I have this widget effect in Eclipse platform? [message #458873 is a reply to message #458861] Mon, 25 July 2005 13:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vducloux.cosmosbay-vectis.com

Hi, according to me, you have to use an IProgressMonitor. Have a look at
this article, section "progress, cancelation ...."

http://www.eclipse.org/articles/Article-Builders/builders.ht ml

CU

Victor

Allen Chue wrote:
> Well, my project now demands such a widget in user interface with the
> requirements as follows:
> This widget can display both text, icon, and even button. If the text on
> it is too long to display completely, omission marks should replace the
> redundant words. It is also selectable which is similar to a cell in the
> JTable, but it should support displaying icons as I said, and should
> only be scaled in size horizontally but never vertically.
>
> Fortunately, I find that a component in the dialog shown during build or
> update process meets my request. Does anybody who is familiar with SWT know
> how this is managed? That is, which widget(s) should I use? Or can Swing
> meet my demand? By the way, here is the capture image of eclipse dialog
> I concerned: http://freehost21.websamba.com/utarget/Eclipse_snap.jpg
>
>
> Many many thanks!
>
Re: How can I have this widget effect in Eclipse platform? [message #458911 is a reply to message #458873] Tue, 26 July 2005 10:29 Go to previous message
Yin Qiu is currently offline Yin QiuFriend
Messages: 7
Registered: July 2009
Junior Member
Thanks, but my concern is mainly about how to implement this label using
SWT. The progress bar doesn't matter indeed. I've already solved this using
Swing. My approach is to use a JPanel as a JList's ListCellRenderer.
However, there's a serious problem: if I add a JButton in this renderer, the
button doesn't work at all. The renderer just renders the cell in the JList
but is not a real component, so the button in it has no functionality. How
can I make the button fire action event when I click it?


"Ducloux Victor" <vducloux@cosmosbay-vectis.com>
wrote:dc2p3n$9i4$1@news.eclipse.org...
> Hi, according to me, you have to use an IProgressMonitor. Have a look at
> this article, section "progress, cancelation ...."
>
> http://www.eclipse.org/articles/Article-Builders/builders.ht ml
>
> CU
>
> Victor
>
> Allen Chue wrote:
> > Well, my project now demands such a widget in user interface with the
> > requirements as follows:
> > This widget can display both text, icon, and even button. If the text on
> > it is too long to display completely, omission marks should replace the
> > redundant words. It is also selectable which is similar to a cell in the
> > JTable, but it should support displaying icons as I said, and should
> > only be scaled in size horizontally but never vertically.
> >
> > Fortunately, I find that a component in the dialog shown during build or
> > update process meets my request. Does anybody who is familiar with SWT
know
> > how this is managed? That is, which widget(s) should I use? Or can Swing
> > meet my demand? By the way, here is the capture image of eclipse dialog
> > I concerned: http://freehost21.websamba.com/utarget/Eclipse_snap.jpg
> >
> >
> > Many many thanks!
> >
Previous Topic:jgraph & swing under swt
Next Topic:How to detect MouseEvent on Text Editor?
Goto Forum:
  


Current Time: Wed Oct 21 11:25:49 GMT 2020

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

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

Back to the top