Hi,
 
I try to set the focus to a specified component when showing a dialog. The dialog consists of a toolbar and a content pane with several other panes containing the components.
 
I have a show() method in the dialog which looks like this:
 
    public void show() {
        this.setVisible(true);
    }
 
I added a line to request the focus on a text field:
 
    public void show() {
        this.setVisible(true);
        getDocumentPane().getSupplierPane().grabFocus();
    }
The supplier pane has the method grabFocus() which looks like this:
 
    public void grabFocus() {
        getSupplierIdTextField().requestFocus();
    }
 
This is to avoid making the text fields public and to make the supplier pane control the grabbing of the focus (the pane is reused in several dialogs).
 
Unfortunately, this does not work :-) The dialog is shown but the focus is on the first button of my toolbar instead of the textfield.
 
Am I missing something?
 
Thanks and regards,
 
Michael
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Im Auftrag von Etienne Studer
Gesendet: Samstag, 6. Mai 2006 17:12
An: kishore babu; [email protected]
Betreff: RE: [ULC-developer] regarding ULCHtmlPane

Take a look at
 
ULCHtmlPane#addHyperlinkListener(IHyperlinkListener)
 
Etienne
 


From: [EMAIL PROTECTED] on behalf of kishore babu
Sent: Sat 06.05.2006 02:27
To: [email protected]
Subject: [ULC-developer] regarding ULCHtmlPane

hi,
 
 
i am using ULC from past 3 months i am getting when i am using html pane i am displaying a one html in the ULCHtmlPane, it is displaying correctly but when i am clicking on any of the hyper-link on that html giving a network error. i am unable to find any listeners also and how can i get that link when i pressed  it.
 
 
thanks in advance,
N.kishore


Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.

Reply via email to