Home » Archived » Visual Editor (VE) » Subtle problem with expression 'BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
Subtle problem with expression 'BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), [message #124091] |
Fri, 28 April 2006 07:22  |
Eclipse User |
|
|
|
I have a strange/subtle problem with the visual editor.
When it generates code for a titled border:
myTable.setBorder(javax.swing.BorderFactory.createTitledBord er(javax.swing.BorderFactory.createEtchedBorder(),
"Title"));
myTable.setSelectionMode(javax.swing.ListSelectionModel.SING LE_INTERVAL_SELECTION);
Upon closing the visual editor and opening it again, all subsequent code is
ignored (set values don't appear when I reopen my customizer),
but the actual values set by this line are set, and appear in my customizer.
If I then comment out this line, the values for all subsequent lines (e.g.
the selection mode) are recognized and appear in the customizer.
It seems that the expression is being parsed correctly, and yet somehow it
causes the rest to be ignored.
There is nothing in the logs, and I have run with the
org.eclipse.jem.proxy/remote/debug/vmtraceout=true
trace flag.
Any ideas?
Darren Hurt
|
|
| | | |
Re: Subtle problem with expression 'BorderFactory.createTitledBorder(BorderFactory.createEtchedBorde [message #124822 is a reply to message #124381] |
Mon, 15 May 2006 05:24   |
Eclipse User |
|
|
|
Hello again Rich.
I am using version 1.1.0.
I changed my getJavaInitializationString to produce
javax.swing.BorderFactory.createTitledBorder(null, "Title",
javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null);
instead (as the VE border property editor does), and this works OK.
Oh, and I don't really have two statements on one line.
But I do still get the same problems with
javax.swing.BorderFactory.createTitledBorder(javax.swing.Bor derFactory.createEtchedBorder(),
"Title");
I'll probably just change my customizers to not try and do border setting
stuff, especially as VE provides
a decent property editor for borders anyway.
However, I guess the behaviour I refer to does still indicate some kind of
bug, so I hope that it is useful.
Thanks,
Darren
"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
news:e3fs4i$u70$2@utils.eclipse.org...
> What version of VE are you using?
>
> --
> Thanks,
> Rich Kulp
|
|
| |
Re: Subtle problem with expression 'BorderFactory.createTitledBorder(BorderFactory.createEtchedBorde [message #612788 is a reply to message #124091] |
Fri, 28 April 2006 07:36  |
Eclipse User |
|
|
|
Make that any BorderFactory related expression for creating a border.
"Darren Hurt" <darren.hurt@coexis.com> wrote in message
news:e2stu2$v0$1@utils.eclipse.org...
>
>
>
>
> I have a strange/subtle problem with the visual editor.
>
> When it generates code for a titled border:
>
> myTable.setBorder(javax.swing.BorderFactory.createTitledBord er(javax.swing.BorderFactory.createEtchedBorder(),
> "Title"));
> myTable.setSelectionMode(javax.swing.ListSelectionModel.SING LE_INTERVAL_SELECTION);
>
>
> Upon closing the visual editor and opening it again, all subsequent code
> is ignored (set values don't appear when I reopen my customizer),
> but the actual values set by this line are set, and appear in my
> customizer.
>
> If I then comment out this line, the values for all subsequent lines (e.g.
> the selection mode) are recognized and appear in the customizer.
>
> It seems that the expression is being parsed correctly, and yet somehow it
> causes the rest to be ignored.
>
> There is nothing in the logs, and I have run with the
>
> org.eclipse.jem.proxy/remote/debug/vmtraceout=true
>
> trace flag.
>
> Any ideas?
>
> Darren Hurt
>
>
>
>
>
|
|
| | |
Re: Subtle problem with expression 'BorderFactory.createTitledBorder(BorderFactory.createEtchedBorde [message #612902 is a reply to message #124381] |
Mon, 15 May 2006 05:24  |
Eclipse User |
|
|
|
Hello again Rich.
I am using version 1.1.0.
I changed my getJavaInitializationString to produce
javax.swing.BorderFactory.createTitledBorder(null, "Title",
javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null);
instead (as the VE border property editor does), and this works OK.
Oh, and I don't really have two statements on one line.
But I do still get the same problems with
javax.swing.BorderFactory.createTitledBorder(javax.swing.Bor derFactory.createEtchedBorder(),
"Title");
I'll probably just change my customizers to not try and do border setting
stuff, especially as VE provides
a decent property editor for borders anyway.
However, I guess the behaviour I refer to does still indicate some kind of
bug, so I hope that it is useful.
Thanks,
Darren
"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
news:e3fs4i$u70$2@utils.eclipse.org...
> What version of VE are you using?
>
> --
> Thanks,
> Rich Kulp
|
|
| |
Goto Forum:
Current Time: Tue Jun 24 10:23:13 EDT 2025
Powered by FUDForum. Page generated in 0.22970 seconds
|