Download Horizon :: Staff Members :: TheTechGame.com :: XboxMB YouTube


Old 02-02-2012   #1 (permalink)
Banned
 
Join Date: Sep 2010
Location: What you say too me?!
Posts: 3,771
Thanks: 1,784
Default Word input + making a gui

Need some help on both these (separate projects)

1. How do i ask for a word input then store it?


2. How would i make a basic calculator gui, I can never get the jpanel buttons to work.
maxmememax is offline
Reply With Quote


Old 02-02-2012   #2 (permalink)
Experiment5X's Avatar
Tree Octopus
Join Date: Sep 2010
Location: New York
Posts: 1,102
Thanks: 738
Default Re: Word input + making a gui

1.

Code:
java.util.Scanner scanner = new java.util.Scanner(System.in);

System.out.println("Enter some text.");
String userInput = scanner.next();
2.

This is just putting a button on the form, I'm not going to make a calculator, but from that you should be able to figure it out. Also you can play around with the size values.
Experiment5X is offline Send a message via AIM to Experiment5X
Reply With Quote
The following user thanked this post: maxmememax

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:25 AM.


 

Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
COPYRIGHT (c) 2010 - 2012 - XboxMB - DESIGN BY:
EDENWEBS.COM