Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » JSpinner not there?
JSpinner not there? [message #119122] Tue, 28 February 2006 01:31 Go to next message
Eclipse UserFriend
Originally posted by: jtm297.optonline.net

I currently have the newest Visual Editor 1.2 plugin. What is odd is that
on the palette I cannot find JSpinner. So I tried a different plugin
named: Jigloo. Seems good, and it has a JSpinner, but I am used to Visual
Editor, and I notice if I add a JSpinner from Jigloo and view it in the
Visual Editor, the Visual Editor is parsing the JSpinner and completely
supports it. Why isn't it available on the palette, is it just hidden
because its not complete? I was hoping to use it without having to keep
switching to Jigloo and having it add tons of comments at the top of my
java. Ok I hope someone could lead me in the right direction on what I
could edit to get this widget to appear on the palette. I am using Swing.
Re: JSpinner not there? [message #119139 is a reply to message #119122] Tue, 28 February 2006 05:59 Go to previous messageGo to next message
Francesc Rosés is currently offline Francesc RosésFriend
Messages: 213
Registered: July 2009
Senior Member
Hi,

JSpinner is a JDK 1.4 component and the palette
only contains components from JDK 1.2. So,
JSpinner is missing but JFormattedTextField too
and some component properties introduced after
1.2 are missing in the properties view (i.e.
java.awt.Component.focusable).

However, you can add a JSpinner or a
JFormattedTextField or any other component
missing in the palette using the "Choose Bean"
button. To assign the "focusable" property value,
for example, you must edit directly the source
code.

It seems Swing is the big forsaken in VE.

Francesc Rosés
Re: JSpinner not there? [message #119165 is a reply to message #119139] Tue, 28 February 2006 06:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jtm297.optonline.net

The choose bean button doesn't seem to do anything, I do notice when I
create a JSpinner object it appears, but using the choose bean from the
palette it just shows I can't click on the JSpinner. I'm not really sure
what you mean... but I'd love to add this to the palette if its possible.
Re: JSpinner not there? [message #119205 is a reply to message #119165] Tue, 28 February 2006 07:56 Go to previous messageGo to next message
Francesc Rosés is currently offline Francesc RosésFriend
Messages: 213
Registered: July 2009
Senior Member
John wrote:

> The choose bean button doesn't seem to do anything, I do notice when I
> create a JSpinner object it appears, but using the choose bean from the
> palette it just shows I can't click on the JSpinner. I'm not really sure
> what you mean... but I'd love to add this to the palette if its possible.

John,

May be I don't understand your problem.
1. I click the Choose Bean button
2. The Choose Bean dialog appears and I write JSpinner
3. I click OK
4. I click over, for example, a JPanel and I have a JSpinner
into the JPanel.

I agree may be interesting to see finally the JSpinner in the palette.
Eclipse 3.2 supports JDK 6 but the VE palette is at 1.2 level...

Francesc Rosés
Re: JSpinner not there? [message #119230 is a reply to message #119165] Tue, 28 February 2006 15:12 Go to previous message
Eclipse UserFriend
Originally posted by: markus.wawra.shark-soft.com

It's quite easy to add something to the palette.

http://dev.eclipse.org/viewcvs/indextools.cgi/%7Echeckout%7E /org.eclipse.ve.examples/org.eclipse.ve.example.customwidget /WebContent/index.html

shows how to create an extension for VE 1.1.
I didn't try it in VE 1.2, but I guess it should work the same way. Maybe
you should look at the /palette/javavisualbeanscats.xmi of
org.eclipse.ve.jfc and/or /palette/swtpalette.xmi of org.eclipse.ve.swt to
see the differences.



Regards,

Markus
Re: JSpinner not there? [message #612198 is a reply to message #119122] Tue, 28 February 2006 05:59 Go to previous message
Francesc Rosés is currently offline Francesc RosésFriend
Messages: 213
Registered: July 2009
Senior Member
Hi,

JSpinner is a JDK 1.4 component and the palette
only contains components from JDK 1.2. So,
JSpinner is missing but JFormattedTextField too
and some component properties introduced after
1.2 are missing in the properties view (i.e.
java.awt.Component.focusable).

However, you can add a JSpinner or a
JFormattedTextField or any other component
missing in the palette using the "Choose Bean"
button. To assign the "focusable" property value,
for example, you must edit directly the source
code.

It seems Swing is the big forsaken in VE.

Francesc Rosés
Re: JSpinner not there? [message #612200 is a reply to message #119139] Tue, 28 February 2006 06:41 Go to previous message
John is currently offline JohnFriend
Messages: 52
Registered: July 2009
Member
The choose bean button doesn't seem to do anything, I do notice when I
create a JSpinner object it appears, but using the choose bean from the
palette it just shows I can't click on the JSpinner. I'm not really sure
what you mean... but I'd love to add this to the palette if its possible.
Re: JSpinner not there? [message #612203 is a reply to message #119165] Tue, 28 February 2006 07:56 Go to previous message
Francesc Rosés is currently offline Francesc RosésFriend
Messages: 213
Registered: July 2009
Senior Member
John wrote:

> The choose bean button doesn't seem to do anything, I do notice when I
> create a JSpinner object it appears, but using the choose bean from the
> palette it just shows I can't click on the JSpinner. I'm not really sure
> what you mean... but I'd love to add this to the palette if its possible.

John,

May be I don't understand your problem.
1. I click the Choose Bean button
2. The Choose Bean dialog appears and I write JSpinner
3. I click OK
4. I click over, for example, a JPanel and I have a JSpinner
into the JPanel.

I agree may be interesting to see finally the JSpinner in the palette.
Eclipse 3.2 supports JDK 6 but the VE palette is at 1.2 level...

Francesc Rosés
Re: JSpinner not there? [message #612205 is a reply to message #119165] Tue, 28 February 2006 15:12 Go to previous message
Markus is currently offline MarkusFriend
Messages: 52
Registered: July 2009
Member
It's quite easy to add something to the palette.

http://dev.eclipse.org/viewcvs/indextools.cgi/%7Echeckout%7E /org.eclipse.ve.examples/org.eclipse.ve.example.customwidget /WebContent/index.html

shows how to create an extension for VE 1.1.
I didn't try it in VE 1.2, but I guess it should work the same way. Maybe
you should look at the /palette/javavisualbeanscats.xmi of
org.eclipse.ve.jfc and/or /palette/swtpalette.xmi of org.eclipse.ve.swt to
see the differences.



Regards,

Markus
Previous Topic:Clearing of unwanted components in the visual editor
Next Topic:Collapsing horizontal bar in VE
Goto Forum:
  


Current Time: Fri Apr 26 22:45:51 GMT 2024

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

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

Back to the top