954,510 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Graphics and others

Hi. Im making a flash cards program and need help with making graphics, making a menu, making it so that they can go back in and access the decks, and making it so i can give it o other people, and a few other things.

Here's my code:

import java.util.Scanner;

public class Main {
	public static void main(String args[]){
		

		
		// Title Display
		System.out.println("FLC v0.5");
		System.out.println();
		
		
		
		// Deck Enter Area
		System.out.println("Enter Deck Name");
		Scanner deckscanner = new Scanner(System.in);
		String deckname = deckscanner.nextLine();
		System.out.println();
		
		
		
		// Card Number Entry
		System.out.println("Enter How Many Cards You Would Like");
		Scanner cardnumscanner = new Scanner(System.in);
		String cardnumstring = cardnumscanner.nextLine();
		System.out.println();
		System.out.println();
		System.out.println();
		
		
		
		// Converts cardnumstring to int (called cardnumint)
		int cardnumint = Integer.parseInt(cardnumstring);
		cardnumint = cardnumint + 1;
		
		int counter = 1;
		
		while (counter < cardnumint){
			// Front of the card
			System.out.println("Card #" + counter);
			System.out.println("Front of Card");
			Scanner frontcardscanner = new Scanner(System.in);
			String frontcardstring = frontcardscanner.nextLine();
			
			
			
			// Back of the card
			System.out.println("Back of Card");
			Scanner backcardscanner = new Scanner(System.in);
			String backcardstring = backcardscanner.nextLine();
			System.out.println();
			System.out.println();
			
			
			counter++;
		}
	}
	

	
	
}


(I left some personal notes in there)

Help is greatly appreciated.

Thanks!

penguino138
Junior Poster in Training
68 posts since Mar 2011
Reputation Points: 7
Solved Threads: 0
 

Could someone please help???

penguino138
Junior Poster in Training
68 posts since Mar 2011
Reputation Points: 7
Solved Threads: 0
 
mKorbel
Veteran Poster
1,141 posts since Feb 2011
Reputation Points: 480
Solved Threads: 224
 

That link isn't what i want. Someone pleasehelp with the questions i asked!

penguino138
Junior Poster in Training
68 posts since Mar 2011
Reputation Points: 7
Solved Threads: 0
 

hmmm I can still see only this question

Could someone please help???


any my tired magic ball drew paint in Swing (if is finally "making graphics"), can you be little bit concrete

mKorbel
Veteran Poster
1,141 posts since Feb 2011
Reputation Points: 480
Solved Threads: 224
 

My questions were about gui, a menu, and being able to reaccess the decks, and also saving the decks

penguino138
Junior Poster in Training
68 posts since Mar 2011
Reputation Points: 7
Solved Threads: 0
 

Thanks for the link. Now my question is how to store files and read them later. In this case it will be for reaccessing the decks.

penguino138
Junior Poster in Training
68 posts since Mar 2011
Reputation Points: 7
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: