zhb11112
May 11th, 2001, 03:44 PM
Hi,
I am a kind of new to java programming.
I have a question.
when I use:
TextField userInputEdit = new TextField("Please input data here.");
userInputEdit.setBounds(80,60,350,30);
gt.add(userInputEdit);
It can display the edit box and text in my window.
But when I use:
Label userInputLabel = new Label("Input");
userInputLabel.setBounds(10,60,50,30);
gt.add(userInputLabel);
the label "Input" does not show.
What's wrong with my code?
Thanks a lot,
I am a kind of new to java programming.
I have a question.
when I use:
TextField userInputEdit = new TextField("Please input data here.");
userInputEdit.setBounds(80,60,350,30);
gt.add(userInputEdit);
It can display the edit box and text in my window.
But when I use:
Label userInputLabel = new Label("Input");
userInputLabel.setBounds(10,60,50,30);
gt.add(userInputLabel);
the label "Input" does not show.
What's wrong with my code?
Thanks a lot,