James Nobles

Greenhorn
+ Follow
since Feb 23, 2014
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
7
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by James Nobles

Hello . I want to create a simple java applet or swing application which uses a image of the continental united states. I will have it where the user can click on a specific state (place on the map) and it will tell them below what the population is and the capitol etc. This is a final project of mine. I do not need any help with the coding but if someone could point me in the right direction to where I can start . Like offer me some pseudo code suggestions. i want to use a JPEG or something to that effect because I do not want to create the united states from scratch. My text book does not go into any detail about how mouse clicks can transmit from a pre rendered image. I hope this makes sense. Thanks for looking
10 years ago
So I have one set of If Else If statements. My program calculates just the first comboBox. It is retrieving all the values from the other comboBoxes but I do not understand where to place the other If statement structure so I can calculate the other values I have set for the other objects. I would not like to use a different class for each and I know I have my calculations done right below my current if statement. Could it be left there and where shall I place the other if statements so they get read by my arithmetic sequence? Thanks for looking. Please do not refer me to the tutorials I have been reading those all week and my eyes wacko.

10 years ago
Thanks a ton sir. That was a easy fix.
10 years ago
My deckPanel's etc. are not showing up when I run my program. What am I missing in my orderCalc class or maybe from my deckPanel class?



10 years ago
Let me get this straight. You are telling me to remove it from my class and then add it back to the same class? I am a novice
10 years ago
I cannot get my panels to appear in my GUI when I run my program. There is probably a really simple fix for this but it is taking me hours. This program is a working progress and I have just included two classes out of five. That should be adequate to diag my problem. Thanks for looking





10 years ago
Not entirely sure what you mean. Here is my passFailExam.java class :

10 years ago
The output of my code is displaying the location of the index in the console. For instance :

The highest score is: chap10coursegrades.PassFailExam@1dd7056

How do I get it to display the highest grade in the array?
Thanks

10 years ago
I will try that. Thanks for the tip
10 years ago
I must be missing a bracket or an import somewhere in this small bit of code. Can someone tell me what is wrong and why all my swing KeyWords are all getting errors. Thanks
10 years ago
Got it! I saved the die.png files into a wrong part of the package. Thanks everyone.
10 years ago
Yes I hate video learning too but it just so happens that my class uses this as a learning tool.


this is the culprit:

https://www.youtube.com/watch?v=igsQOmodzbU

And I have tried moving and deleting the asterisk and I still get errors that are unreadable if you ask me.
10 years ago
That removes the error but when the program is run now it throws a whole bunch of expressions. The asterisk was on the code that I viewed in a video and it seemed to compile and run fine with it in there. Thanks anyways.

my exceptions:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(ImageIcon.java:205)
at jframetest.Dice.jButton2ActionPerformed(Dice.java:103)
at jframetest.Dice.access$000(Dice.java:6)
at jframetest.Dice$1.actionPerformed(Dice.java:38)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.awt.EventQueue$3.run(EventQueue.java:686)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:702)
at java.awt.EventQueue$4.run(EventQueue.java:700)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:699)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)


Good Lord!
10 years ago
Lines 7 , 10 ,13 .... All have a Illegal Start of Expression error. What am I missing? Thanks



10 years ago