Hello

I have made a test for this and it worked fine, you could use this if you want 
in UILookupTextField:

        private Point calculateLocationOfLookupList() {
                Dimension screenDimension = 
Toolkit.getDefaultToolkit().getScreenSize();

                JTextComponent basicTextField = getBasicTextComponent();
                int textFieldX = (int) 
(basicTextField.getLocationOnScreen().getX());
                int textFieldY = (int) 
(basicTextField.getLocationOnScreen().getY() + basicTextField.getHeight());

                //check for above or under
                if (screenDimension.getHeight() < textFieldY + 
getLookupWindow().getHeight()) {
                        //not possible
                        return new Point(textFieldX, textFieldY - 
basicTextField.getHeight() - getLookupWindow().getHeight());
                }

                return new Point(textFieldX, textFieldY);
        } 

Regards


Torsten Hofmann
Dipl. - Informatiker (FH)
IT Consultant Business Integration
 
Würth Phoenix GmbH
Drillberg 6
D-97980 Bad Mergentheim

Phone: +49 7931 91 6284
Fax: +49 7931 91 7284
E-Mail: [EMAIL PROTECTED]
Website: www.wuerth-phoenix.de


-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Hofmann, Torsten
Gesendet: Mittwoch, 13. Dezember 2006 17:08
An: [email protected]
Betreff: [ULC-developer] ULCLookupTextfield

Hello

I am using the ULCLookupTextfield an a view in the buttom area(directly over 
the taskbar of windows). When i open the component by clicking on the arrow the 
window is opend under the component and is not completly schon, because the 
window is hidden through the taskbar.

Is there a fix for this behaviour.

Regards

Torsten Hofmann
Dipl. - Informatiker (FH)
IT Consultant Business Integration
 
Würth Phoenix GmbH
Drillberg 6
D-97980 Bad Mergentheim

Phone: +49 7931 91 6284
Fax: +49 7931 91 7284
E-Mail: [EMAIL PROTECTED]
Website: www.wuerth-phoenix.de

_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to