Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » VE displays JTabbedPane incorrectly
VE displays JTabbedPane incorrectly [message #132625] Mon, 30 October 2006 22:09 Go to next message
Greg Renegar is currently offline Greg RenegarFriend
Messages: 18
Registered: July 2009
Junior Member
Hi everyone,

I have a function that I call from several places to refresh data on the
selected tab of a JTabbedPane. However VE lists essayTabbedPane as
currentPanel in the bean list (essayTabbedPane does not appear). I have
a feeling it is because i am assigning a temporary variable like this:

JPanel currentPanel = ...

This only became a problem when I upgraded to latest VE. Can I get VE to
ignore this function somehow? If I comment out this functions contents,
VE renders perfectly.


void refreshCurrentTab() {

// Get current tab
int index = essayTabbedPane.getSelectedIndex();
JPanel currentPanel = (JPanel)essayTabbedPane.getComponentAt(index);

if (currentPanel == getPersonPanel()) {
getPersonLoadSummaryCommand().execute(null);
}

}

Cheers, Greg
Re: VE displays JTabbedPane incorrectly [message #132667 is a reply to message #132625] Tue, 31 October 2006 15:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

At the moment there's a crummy hack (I'm one of the developer's, so I
can say that! :-) ) to handle this:

void refreshCurrentTab() {

if (false)
;
else {
// Get current tab
int index = essayTabbedPane.getSelectedIndex();
JPanel currentPanel = (JPanel)essayTabbedPane.getComponentAt(index);

if (currentPanel == getPersonPanel()) {
getPersonLoadSummaryCommand().execute(null);
}
}
}

}

The VE doesn't process the "else" clause of an if statement.


Greg Renegar wrote:
> Hi everyone,
>
> I have a function that I call from several places to refresh data on the
> selected tab of a JTabbedPane. However VE lists essayTabbedPane as
> currentPanel in the bean list (essayTabbedPane does not appear). I have
> a feeling it is because i am assigning a temporary variable like this:
>
> JPanel currentPanel = ...
>
> This only became a problem when I upgraded to latest VE. Can I get VE to
> ignore this function somehow? If I comment out this functions contents,
> VE renders perfectly.
>
>
> void refreshCurrentTab() {
>
> // Get current tab
> int index = essayTabbedPane.getSelectedIndex();
> JPanel currentPanel = (JPanel)essayTabbedPane.getComponentAt(index);
>
> if (currentPanel == getPersonPanel()) {
> getPersonLoadSummaryCommand().execute(null);
> }
>
> }
>
> Cheers, Greg

--
Thanks,
Rich Kulp
Re: VE displays JTabbedPane incorrectly [message #132719 is a reply to message #132667] Wed, 01 November 2006 16:31 Go to previous message
Greg Renegar is currently offline Greg RenegarFriend
Messages: 18
Registered: July 2009
Junior Member
Thanks so much - works perfectly... though not the prettiest thing I've
seen ;-)

Cheers,
Greg Renegar

Rich Kulp wrote:
> At the moment there's a crummy hack (I'm one of the developer's, so I
> can say that! :-) ) to handle this:
>
> void refreshCurrentTab() {
>
> if (false)
> ;
> else {
> // Get current tab
> int index = essayTabbedPane.getSelectedIndex();
> JPanel currentPanel = (JPanel)essayTabbedPane.getComponentAt(index);
>
> if (currentPanel == getPersonPanel()) {
> getPersonLoadSummaryCommand().execute(null);
> }
> }
> }
>
> }
>
> The VE doesn't process the "else" clause of an if statement.
>
>
> Greg Renegar wrote:
>> Hi everyone,
>>
>> I have a function that I call from several places to refresh data on the
>> selected tab of a JTabbedPane. However VE lists essayTabbedPane as
>> currentPanel in the bean list (essayTabbedPane does not appear). I have
>> a feeling it is because i am assigning a temporary variable like this:
>>
>> JPanel currentPanel = ...
>>
>> This only became a problem when I upgraded to latest VE. Can I get VE to
>> ignore this function somehow? If I comment out this functions contents,
>> VE renders perfectly.
>>
>>
>> void refreshCurrentTab() {
>>
>> // Get current tab
>> int index = essayTabbedPane.getSelectedIndex();
>> JPanel currentPanel = (JPanel)essayTabbedPane.getComponentAt(index);
>>
>> if (currentPanel == getPersonPanel()) {
>> getPersonLoadSummaryCommand().execute(null);
>> }
>>
>> }
>>
>> Cheers, Greg
>
Re: VE displays JTabbedPane incorrectly [message #614744 is a reply to message #132625] Tue, 31 October 2006 15:35 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

At the moment there's a crummy hack (I'm one of the developer's, so I
can say that! :-) ) to handle this:

void refreshCurrentTab() {

if (false)
;
else {
// Get current tab
int index = essayTabbedPane.getSelectedIndex();
JPanel currentPanel = (JPanel)essayTabbedPane.getComponentAt(index);

if (currentPanel == getPersonPanel()) {
getPersonLoadSummaryCommand().execute(null);
}
}
}

}

The VE doesn't process the "else" clause of an if statement.


Greg Renegar wrote:
> Hi everyone,
>
> I have a function that I call from several places to refresh data on the
> selected tab of a JTabbedPane. However VE lists essayTabbedPane as
> currentPanel in the bean list (essayTabbedPane does not appear). I have
> a feeling it is because i am assigning a temporary variable like this:
>
> JPanel currentPanel = ...
>
> This only became a problem when I upgraded to latest VE. Can I get VE to
> ignore this function somehow? If I comment out this functions contents,
> VE renders perfectly.
>
>
> void refreshCurrentTab() {
>
> // Get current tab
> int index = essayTabbedPane.getSelectedIndex();
> JPanel currentPanel = (JPanel)essayTabbedPane.getComponentAt(index);
>
> if (currentPanel == getPersonPanel()) {
> getPersonLoadSummaryCommand().execute(null);
> }
>
> }
>
> Cheers, Greg

--
Thanks,
Rich Kulp
Re: VE displays JTabbedPane incorrectly [message #614748 is a reply to message #132667] Wed, 01 November 2006 16:31 Go to previous message
Greg Renegar is currently offline Greg RenegarFriend
Messages: 18
Registered: July 2009
Junior Member
Thanks so much - works perfectly... though not the prettiest thing I've
seen ;-)

Cheers,
Greg Renegar

Rich Kulp wrote:
> At the moment there's a crummy hack (I'm one of the developer's, so I
> can say that! :-) ) to handle this:
>
> void refreshCurrentTab() {
>
> if (false)
> ;
> else {
> // Get current tab
> int index = essayTabbedPane.getSelectedIndex();
> JPanel currentPanel = (JPanel)essayTabbedPane.getComponentAt(index);
>
> if (currentPanel == getPersonPanel()) {
> getPersonLoadSummaryCommand().execute(null);
> }
> }
> }
>
> }
>
> The VE doesn't process the "else" clause of an if statement.
>
>
> Greg Renegar wrote:
>> Hi everyone,
>>
>> I have a function that I call from several places to refresh data on the
>> selected tab of a JTabbedPane. However VE lists essayTabbedPane as
>> currentPanel in the bean list (essayTabbedPane does not appear). I have
>> a feeling it is because i am assigning a temporary variable like this:
>>
>> JPanel currentPanel = ...
>>
>> This only became a problem when I upgraded to latest VE. Can I get VE to
>> ignore this function somehow? If I comment out this functions contents,
>> VE renders perfectly.
>>
>>
>> void refreshCurrentTab() {
>>
>> // Get current tab
>> int index = essayTabbedPane.getSelectedIndex();
>> JPanel currentPanel = (JPanel)essayTabbedPane.getComponentAt(index);
>>
>> if (currentPanel == getPersonPanel()) {
>> getPersonLoadSummaryCommand().execute(null);
>> }
>>
>> }
>>
>> Cheers, Greg
>
Previous Topic:Broken link in downloads page
Next Topic:VE Path Must Include... Error
Goto Forum:
  


Current Time: Thu Apr 25 22:37:03 GMT 2024

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

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

Back to the top