Hi Ajay,
A ULCWindow, like a JWindow, is only focusable if it has a showing
owner on the screen.
Try the Swing snippet below. Yoiu will see that if you comment the
frame.setVisible(true)
instruction, the text field will not be focusable, because frame is
specified as owner of the ULCWindow.
Another solution to your problem would to use an undecorated ULCFrame
instead of a ULCWindow.
However, because the ULCFrame.setUndecorated() method is not
available on ULC (until the next release), you will need to create an
extension.
Best regards
Sandro
PS: Use the developer mailing list to request support because single
developers may not always be available, and consider to purchase the
support (and use the support mailing list) if you need guaranteed
response time.
public class JWindowTry {
public static void main(String[] args){
JFrame frame = new JFrame();
JWindow win = new JWindow(frame);
win.setLayout(new FlowLayout());
win.getContentPane().add(new JLabel("Hello: "));
JTextField textField = new JTextField(20);
frame.setVisible(true);
win.getContentPane().add(textField);
win.getContentPane().add(new JButton("ABC"));
win.pack();
textField.setEnabled(true);
win.setSize(300, 100);
win.setVisible(true);
}
Ajay Kumar wrote:
Hi Sandro,
I am Ajay, developer to Gavin McNicholl .
I am writing you this mail, as I am getting problem while creating
a new project ULCWindow.
I have created a Splash Screen for Logining the User.
I have used the ULCWindow as a Parent Container, which is by
default without "Titlebar" , I have add the ULCGridBagLayOutPane,
in which I have added the
two ULCTextFields, with two ULCButtons. The problem I am facing is
that ULCTextField are not editable, means ULCTextField here are
readonly, when we used Container as a ULCWindow and I want that the
Container must be without titlebar, like ULCWindow.
I am also sending you the screen shot for GUI of the form
(ULCWindow)and code as well.
Please help me out.
Thanks & Regards,
Ajay Kumar
<problem with ULCWIndow2.doc>
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer