Results 1 to 2 of 2
Thread: java standalone to applet
- 09-15-2009, 09:22 AM #1
Member
- Join Date
- Sep 2009
- Posts
- 4
- Rep Power
- 0
java standalone to applet
how do i convert this standalone application to an applet?
tyJava Code:class LogicalOpTable { public static void main(String args[]) { boolean p, q; System.out.println("P\tQ\tAND\tOR\tXOR\tNOT"); p = true; q = true; System.out.print((p?1:0) + "\t" + (q?1:0) +"\t"); System.out.print(((p&q)?1:0) + "\t" + ((p|q)?1:0) + "\t"); System.out.println(((p^q)?1:0) + "\t" + ((!p)?1:0)); p = true; q = false; System.out.print((p?1:0) + "\t" + (q?1:0) +"\t"); System.out.print(((p&q)?1:0) + "\t" + ((p|q)?1:0) + "\t"); System.out.println(((p^q)?1:0) + "\t" + ((!p)?1:0)); p = false; q = true; System.out.print((p?1:0) + "\t" + (q?1:0) +"\t"); System.out.print(((p&q)?1:0) + "\t" + ((p|q)?1:0) + "\t"); System.out.println(((p^q)?1:0) + "\t" + ((!p)?1:0)); p = false; q = false; System.out.print((p?1:0) + "\t" + (q?1:0) +"\t"); System.out.print(((p&q)?1:0) + "\t" + ((p|q)?1:0) + "\t"); System.out.println(((p^q)?1:0) + "\t" + ((!p)?1:0)); } }
- 09-15-2009, 09:36 AM #2
Gothru this tutorial
Getting Started with Applets (The Java™ Tutorials > Deployment > Applets)Ramya:cool:
Similar Threads
-
Standalone applications
By sachin2 in forum New To JavaReplies: 0Last Post: 07-21-2009, 08:08 PM -
[SOLVED] License management for a Standalone java application?
By kzvi.kzvi.1 in forum Advanced JavaReplies: 4Last Post: 04-23-2009, 09:54 PM -
color text in standalone???
By hung_tyh in forum New To JavaReplies: 6Last Post: 12-24-2008, 04:29 PM -
howto make a standalone application?
By Jerre in forum New To JavaReplies: 4Last Post: 06-08-2008, 09:58 AM -
Unknown publisher / Signing standalone tomcat.exe
By millross in forum New To JavaReplies: 1Last Post: 06-14-2007, 02:25 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks