Results 1 to 3 of 3
Thread: How to make an an applet?
- 09-29-2012, 05:02 AM #1
Member
- Join Date
- Sep 2012
- Posts
- 11
- Rep Power
- 0
How to make an an applet?
So I'll start out by saying I've only started learning java about 3 weeks ago so I don't know very much. I'm still trying to learn the syntax.
So I'll try my very best to explane what I want to do.
So There will be a set's and inside these set's there will be numbers. IE
SET A
######### ( 1st Line )
######### ( 2nd Line)
######### ( 3rd Line )
SET B
######### (1st Line)
######### (2nd Line)
######### (3rd Line)
And so on. I'm planning on having many Set's and many number's inside the set's
Now Here's what I need it to do.
User need's to be able to pick a set and once a set is picked by the user I need a pre diefined number to show up from the ### in the set's so the user is only picking the set's and not picking the number's inside the set's.
IE user picks set B
the programe auto gives them one of the number's with in the set.
As far as the numbers I could have them in the code it self, or have them in a file, or a mySQL DataBase.
Also I really want to use some sort of decent looking interface and have this all run as an applet to be able to run on a website.Last edited by Mr U; 09-29-2012 at 05:31 AM.
-
Re: How to make an an applet?
So I'll assume that you've gone through the Swing tutorials and using this information have attempted to solve the above yourself, and now have a specific question about your code. So in that light, please show us your code and ask your specific question please.
- 10-01-2012, 05:01 PM #3
Member
- Join Date
- Sep 2012
- Posts
- 11
- Rep Power
- 0
Re: How to make an an applet?
I'm unsure on how to start my coding. I'm new to java.
So far i only have a button.
I'm in no light trying to ask anyone to code this. I just Don't know were to go from there. And how I could even look up what i need to do.
I took your advice and tryed out some swing projects. But were can I go from here?
Java Code:import javax.swing.JButton; import javax.swing.JFrame; public class Swing { public static void main(String[] args) { JFrame frame = new JFrame("Java Swing Tesing"); frame.setSize(400, 400); frame.setVisible(true); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JFrame f = new JFrame("Demo"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JButton b = new JButton("Cool Button"); f.getContentPane().add(b); f.pack(); f.setVisible(true); } }Last edited by Mr U; 10-01-2012 at 05:05 PM.
Similar Threads
-
What do I need to make this?
By Sonicfr in forum New To JavaReplies: 8Last Post: 05-16-2012, 08:18 PM -
can i make a program to make keyboard and mouse idle or not responding for 10 second
By 3ammary in forum Advanced JavaReplies: 4Last Post: 07-23-2011, 08:08 PM -
how do i make a jar to an exe?
By jack13580 in forum New To JavaReplies: 23Last Post: 12-19-2010, 04:15 AM -
Trying to make a bot
By ighor10 in forum New To JavaReplies: 4Last Post: 04-10-2010, 03:29 AM -
Make it just A, Help me please
By yuuchan in forum New To JavaReplies: 3Last Post: 04-25-2009, 02:09 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks