πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

managing focus in a JPanel specialitation

#10543
From: JableSoft
Date: Mon, 06 Sep 1999 00:00
14 lines
1103 bytes
I needed a very particular grid of elements and I used a Jpanel to did it,
painting the elements ' in a manual way'
The problem is the focus. I need to manage the focus but the JPanel doesn't
do it.

To solve the problem, I overrided in my specialized class the method
'isFocusTraversable' and return true. So, I can get the focus but I donοΏ½t
know how I can paint the focus in a correct way. Maybe with a ComponentUI?

 The thing is: anybody knows the correct way to make that a JPanel
specialization manage the focus? (or where I can get this information).


            Thanks in advance.
Technical Details
Message-ID: <7r072m$jfu$1@talia.mad.ttd.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,3d278af8430534df,start
X-Google-Attributes: gid111d45,public
From: "JableSoft" <JableSoft@cistia.es>
Subject: managing focus in a JPanel specialitation
Date: 1999/09/06
Message-ID: <7r072m$jfu$1@talia.mad.ttd.net>
X-Deja-AN: 521704563
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Organization: Telefonica Transmision de Datos
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing