15,898,374 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by gettysburggal63 (Top 14 by date)
gettysburggal63
2-Dec-15 19:44pm
View
Thank you very much! I forgot that && was AND and not ||, and I figured out how to reset the array every time when making a histogram!
gettysburggal63
16-Nov-15 23:55pm
View
I've resolved my issue. Thanks everyone!
gettysburggal63
16-Nov-15 15:33pm
View
Thank you very much! I did it slightly differently but I got it to work with your ideas :)
gettysburggal63
15-Nov-15 15:59pm
View
For example, if they were trying to spell jib and they had quijio and a blank tile, the blank tile could be used as a 'b' and they could still spell the word
gettysburggal63
15-Nov-15 15:58pm
View
Oh, I see. Basically what I need to do is I need to add another possibility for a blank tile, ' ', and if a person draws this tile in myTiles, it can act as any one tile they are missing in the tiles needed for a word they are trying to spell!
gettysburggal63
15-Nov-15 14:22pm
View
That must've been the issue! When I ran the program, nothing showed up in the console, but now it works. Can you help me to implement exercise 12.15?
gettysburggal63
15-Nov-15 14:22pm
View
Deleted
Hi, I needed help to implement exercise 12.15 above, on including a blank wild card tile!
gettysburggal63
14-Nov-15 15:18pm
View
Ohh I see, thanks for catching that! It has no problem printing now, and I separated the variables holding the counter for the place in the array with the lowest calorie and highest protein values. It picks out the highest protein and lowest calorie foods for everything correctly, except for the meats.
gettysburggal63
14-Nov-15 11:27am
View
It's showing as:
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 3
at MenuApp.MenuApp$Menu$healthySuggestionPressed.actionPerformed(MenuApp.java:329)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
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:6535)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6300)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4891)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4713)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2750)
at java.awt.Component.dispatchEvent(Component.java:4713)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
gettysburggal63
13-Nov-15 16:43pm
View
Thank you so much! :D I wrote out some code under public class healthySuggestionPressed and it is giving me errors, but I can't figure out why, could you help out with this?
gettysburggal63
12-Nov-15 20:59pm
View
Hi, after looking up how to import an array into a JTable, it seems that using vectors worked for a lot of people. I tried it out and after modifying my code it works out perfect! :) Thanks so much for your help. The only thing I'm now stuck on is finding the best option, do you have suggestions for this?
gettysburggal63
12-Nov-15 20:38pm
View
Deleted
Hi, after looking up how to import an array into a JTable, it seems that using vectors worked for a lot of people. I tried it out and after modifying my code it works out perfect! :) Thanks so much for your help. The only thing I'm now stuck on is finding the best option, do you have suggestions for this?
gettysburggal63
12-Nov-15 19:50pm
View
Deleted
Hi, would you mind explaining what you mean a little more? I'm not sure whether you mean I need two for loops? Can you give me some advice as to how to set this up?
gettysburggal63
11-Nov-15 19:47pm
View
Thank you for your suggestion! I tried out making a JTable that would run through the values with the code under NutritionInformationPressed in my original post, but it doesn't print all the values like I wanted. Can you take a look?
Show More