Results 1 to 3 of 3
  1. #1
    Mr U is offline Member
    Join Date
    Sep 2012
    Posts
    11
    Rep Power
    0

    Default 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 06:31 AM.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default 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.

  3. #3
    Mr U is offline Member
    Join Date
    Sep 2012
    Posts
    11
    Rep Power
    0

    Default Re: How to make an an applet?

    Quote Originally Posted by Fubarable View Post
    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.
    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 06:05 PM.

Similar Threads

  1. What do I need to make this?
    By Sonicfr in forum New To Java
    Replies: 8
    Last Post: 05-16-2012, 09:18 PM
  2. Replies: 4
    Last Post: 07-23-2011, 09:08 PM
  3. how do i make a jar to an exe?
    By jack13580 in forum New To Java
    Replies: 23
    Last Post: 12-19-2010, 05:15 AM
  4. Trying to make a bot
    By ighor10 in forum New To Java
    Replies: 4
    Last Post: 04-10-2010, 04:29 AM
  5. Make it just A, Help me please
    By yuuchan in forum New To Java
    Replies: 3
    Last Post: 04-25-2009, 03:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •