| | |
calling a function very basic >>> <<<<
![]() |
•
•
Join Date: Apr 2008
Posts: 102
Reputation:
Solved Threads: 2
I want to know how to call the above function ???
can some one plzz help me with the code .....
import java.awt.*;
import java.applet.Applet;
import java.awt.event.*;
public class GridDrawingApplet extends Applet {
public void paint (Graphics g)
{
// Draw the vertical lines:
g.drawLine (0,0, 0,240);
}
}
public static void main(String []args)
{
// now i want to call the above function here how do i do it ....
// the void paint (Graphics g) function
}can some one plzz help me with the code .....
Local P ...
•
•
Join Date: Aug 2008
Posts: 1,160
Reputation:
Solved Threads: 137
Java Syntax (Toggle Plain Text)
new GridDrawingApplet();
you don't need to explicitly call paint
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
•
•
Join Date: Apr 2008
Posts: 102
Reputation:
Solved Threads: 2
•
•
•
•
Java Syntax (Toggle Plain Text)
new GridDrawingApplet();
you don't need to explicitly call paint
so how can i display the content of paint.. wat i am expecting here is to display the content of paint, from the main program.. how can i do that ??
Local P ...
•
•
Join Date: Aug 2008
Posts: 1,160
Reputation:
Solved Threads: 137
sorry i assumed you knew where to place it
Java Syntax (Toggle Plain Text)
public static void main(String []args) { new GridDrawingApplet(); }
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
![]() |
Similar Threads
- Send data on a serial port (C++)
- Calling c++ dll in vb (Visual Basic 4 / 5 / 6)
- BASIC Languages File I/O Help (Legacy and Other Languages)
- what is pointer to function ??? (C)
- Creating an OS in visual basic 6.0 (Visual Basic 4 / 5 / 6)
- new implementation (C++)
- Structure Help Please (C++)
- Using x86 Assembly Language with Microsoft Visual C++ (C++)
Other Threads in the Java Forum
- Previous Thread: Play a wav. file
- Next Thread: Java Excel connectivity code
| Thread Tools | Search this Thread |
account android api applet application array arrays automation bidirectional binary birt bluetooth class classes client code columns component constructor database designadrawingapplicationusingjavajslider draw eclipse error errors exception expand fractal game givemetehcodez graphics gui guidancer homework html ide image inetaddress inheritance integer intellij j2me java javamicroeditionuseofmotionsensor javaprojects jlabel jme jni jpanel jtextfield jtree julia linux list loop map method methods midlethttpconnection mobile mobiledevelopmentcreatejar monitoring myaggfun netbeans newbie nullpointerexception open-source oracle plazmic print problem program project property recursion ria scanner search server set sharepoint smart sms smsspam sort sourcelabs splash sql sqlite static string subclass support swing testautomation threads tree unlimited webservices windows






