Jump to content
  • Advertisement

Ryan123

Member
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

100 Neutral

About Ryan123

  • Rank
    Newbie
  1. Ryan123

    I need help with Java

    ohhh, is C++ hard? I heard that to make video games, you need C++... Can i do them in Java? I thought Java and C++ wasthe same thing? Imconfused...
  2. Ryan123

    I need help with Java

    ohhhhhh thank you man it worked! So the package name ALWAYS has to be lowercase? And by the way, how long did it take you to learnhow to program?
  3. Ryan123

    I need help with Java

    lol i cant cuz the package name is thename of the file. and the public class name has to be the same as thefilename.
  4. Ryan123

    I need help with Java

    wait now something else is wrong. Look.
  5. Ryan123

    I need help with Java

    Ohhhh wowwww i just noticed. THANK YOU so much i was so fustrated lol thanks i really appreciate it
  6. Hey everyone, im Ryan, im new here. im 15 years old and well im trying to learn how to program with Java. Right now, i am trying to make a box that says Welcome to Java! In my book, it says: Problem: Write a program that displays text in a message dialog box. Solution: The following code gives the solution to the problem: /* WelcomeInMessageDialogBox.java: * This application program displays Welcome to Java! * in a message dialog box.*/ import javax.swing.JOptionPane; public class WelcomeInMessageDialogBox { public static void main(String[] args) { //Display Welcome to Java! in a message dialog box JOptionPane.showMessageDialog(null, "Welcome to Java!") , "Example 1.2 Output", JOptionPane.INFORMATION_MESSAGE); //Exit the program System.exit(0); } } Im using netbeans for this, and on the lines JOptionPane.showMessageDialog(null, "Welcome to Java!") , and "Example 1.2 Output", JOptionPane.INFORMATION_MESSAGE); there is an exclamation point next to both of them. I tried to run the program and to see if the dialog box will appear, but it doesn't work. I don't know what I'm doing wrong. Here's a screenshot of what i am doing currently. im attacting thefile...
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!