DrawString( ) not happening in Frame Window
Posted on 2000-04-17
I am a beginner with Java programming. Got a few stoppers here. Here is my program
public class BaseFrame2 extends Frame
String message = "This is a Window";
dlg = new TextDialog(this,"Enter Text",true);
MenuBar mb = new MenuBar();
Menu m = new Menu("Colors");
Menu mf= new Menu("Font");
m.add(new MenuItem("Set Text"));
public void paint(Graphics g)
From my main applet class on a Button Click Action I am popping up the above defined Frame. But I am not able see the message "This is a window" drawn into the Frame. What could be wrong? I tried even explicitly calling repaint()
in the constructor. But still I am not able to see the message drawn into my Frame Window. Why is this happening? Hope one of you there can help me..
Is there any settings I have to give to see texts drawn into my Frame.
Thank you very much..