| | |
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,158
Reputation:
Solved Threads: 136
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,158
Reputation:
Solved Threads: 136
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 |
6 @param actuate affinetransform android api applet application arc array automation balls binary bluetooth bold business c++ class client code codesnippet collections color compare component coordinates database defaultmethod detection doctype dragging ebook eclipse eclipsedevelopment educational error file fractal froglogic game givemetehcodez graphics gui guitesting helpwithhomework html ide ideas image ingres intersect invokingapacheantprogrammatically j2me java java.xls javaexcel javaprojects jni jpanel jtextarea julia keytool keyword linux list map method methods mobile mysql netbeans nextline object parameter php pong problem producer program project projectideas recursive replaysolutions rim scanner sell server set size sms sql sun swing swt terminal threads tree web websites windows






