🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #718

Re: jTabbedPane focus problem

#718
From: Arthur Ore
Date: Tue, 04 Jan 2005 08:20
24 lines
2013 bytes
John,

It works for me. (Just tried it) What surrounding container are you using 
that doesn't have a validate() method?  I assume you aren't using a JApplet? 
If you type this.validate() are you sure this isn't a valid method? 
validate() is a method of awt.Container, which many containers such as 
JFrame inherit from.

I didn't need to request focus to the panel, I just called it directly on 
the component that I wanted to end up with the focus, after calling 
validate().

Perhaps you need to post a very simple example that demonstrates your 
problem. You also haven't said which version of JBuilder and which JDK you 
are using. Perhaps this is affecting what you are doing.

Arth

"John T. Dow" <john@johntdow.com> wrote in message 
news:41DA069C.3060608@johntdow.com...
> Arthur, your technique doesn't work for me, because this.getContentPage() 
> and validate() aren't defined. I've been working with a state changed 
> event, but I created a mouseClicked event as you have and still no go.
>
Technical Details
Message-ID: <41da51e6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed.media.kyoto-u.ac.jp!news-peer1!btnet-feed3!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41D99FA3.7060700@johntdow.com> <41d9ade3@newsgroups.borland.com> <41DA069C.3060608@johntdow.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,a0ad10712e673590
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Arthur Ore" <nospamthx@nospamthx.co.uk>
Newsgroups: borland.public.jbuilder.java.swing
References: <41D99FA3.7060700@johntdow.com> <41d9ade3@newsgroups.borland.com> <41DA069C.3060608@johntdow.com>
Subject: Re: jTabbedPane focus problem
Date: Tue, 4 Jan 2005 08:20:39 -0000
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 82.69.65.131
Message-ID: <41da51e6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1104826854 82.69.65.131 (4 Jan 2005 00:20:54 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed.media.kyoto-u.ac.jp!news-peer1!btnet-feed3!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail