Search Results

Showing results 1 to 10 of 10
Search took 0.01 seconds.
Search: Posts Made By: majestic0110 ; Forum: Java and child forums
Forum: Java Oct 18th, 2009
Replies: 7
Solved: Java Scanners
Views: 350
Posted By majestic0110
Take a look at Line 23 where you declare the int variable vacation. This variable is declared within the body of a conditional statement, which means its lifespan is confined to that conditional...
Forum: Java Oct 7th, 2009
Replies: 4
Views: 325
Posted By majestic0110
nomemory means compile the classes then run TestCircle. You cannot run Circle directly as it has no main method. main is the entry point for you program. As nomemory said, don't skip the basics....
Forum: Java Oct 3rd, 2009
Replies: 1
Views: 241
Posted By majestic0110
You can create an ImageIcon and display it as the content of a JLabel. Then put the JLabel in the content pane of your JFrame. Look here:

Tutorial...
Forum: Java Oct 1st, 2009
Replies: 4
Views: 1,384
Posted By majestic0110
I just wanted to demonstrate a quick point regarding Constructors & inheritance.
Look at these two classes and think about what you might expect to see after the main method has run.
Notice that...
Forum: Java Sep 28th, 2009
Replies: 3
Views: 648
Posted By majestic0110
theo19, for a start you have confused the names on lines 22 to 24, you have written:


JPanel row2pane1 = new JPanel();
JPanel row3pane1 = new JPanel();
JPanel row4pane1 = new JPanel();
...
Forum: Java Sep 22nd, 2009
Replies: 6
Views: 378
Posted By majestic0110
Ok the problem there is that you have not initialized the variable MenuBar before you call the method buildMenus() on it, therefore you get a null pointer exception. You need to initialize MenuBar...
Forum: Java Sep 22nd, 2009
Replies: 6
Views: 378
Posted By majestic0110
Peter_budo you beat me to it! :) Kahaj, what you could do is :

declare and initialize MenuBar as a class field, instead of a local variable in method buildMenus() :

JMenuBar MenuBar;

you can...
Forum: Java Sep 8th, 2009
Replies: 3
Views: 744
Posted By majestic0110
Hi B89Smith, you can add the -deprecation option to the java command, as per the message, and recompile:



You are using a part of the API that is now obsolete. The messages from the compile...
Forum: Java Sep 7th, 2009
Replies: 2
Views: 279
Posted By majestic0110
Hi runee1000, welcome to the forums. Please could you use code tags for code, it just makes it much easier to read.


import java.util.*;
/**
* AWT Sample application
*
* @author
* @version...
Forum: Java Jan 22nd, 2008
Replies: 5
Views: 1,283
Posted By majestic0110
also ensure your firewall is set to allow connections on port 8080
Showing results 1 to 10 of 10

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC