[hotjoe.com] HotJoe Java Help Forums
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Visit java.com
Please send email if you are having login problems - see the posts below for more info.
Hotmail and Yahoo! users - please see the Hotmail post or the Yahoo! post for information on lost emails.
Messages posted by: trainerjeff
Forum Index » Profile for trainerjeff » Messages posted by trainerjeff
Author Message
not yet
in my chapter 1 of big java they tell me to write a program that says for a dialog box to pop up and ask me for my name, then i type a name, and then it responds back with that name.

import javax.swing.JOptionPane;
public class pane {



public static void main(String[] args) {

String name = JOptionPane.showInputDialog ("what is your name");
System.out.println("name");

JOptionPane.showMessageDialog(null, "I'm sorry, (your name) cannot allow that");


where iadded your name is what i believe my problem is. i don't know how to call forth a name inside of a dialogue. any help would be thankfull.
 
Forum Index » Profile for trainerjeff » Messages posted by trainerjeff
Go to:   
Powered by JForum 2.1.9 © JForum Team
This site run by Scott Dunbar of Xigole Systems. © 2005-2011 - Scott Dunbar
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners
hotjoe.com, xigole.com, and Scott Dunbar have no affiliation with Oracle