Dale Herring

Greenhorn
+ Follow
since Mar 06, 2016
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
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dale Herring

MMM okay. Well I've figured out that it only breaks around the fifth box check but not sure why it's affecting the radio buttons and why it works until that point. Also refer to earlier post, I had checked the first block and just like now it did work, it just does not work all teh way through.
7 years ago
I finished this program and when I tested the first code group at the bottom validating the combobox entries it worked fine. Now this program freezes when I touch the radio buttons or comboboxes. The last block of code is supposed to immediatley revert back to the first selection in the array when the same position is picked in another combobox. I have looked it over and have no idea why it just freezes. The problem has to be in the lat bit performing the validation because it was fine before.

7 years ago
Yea thanks, I didn't realize I was instantiating the JFrame again and that's what was screwing me. I've got a few other issues to clean up with my actionlisteners and layouts but you really helped me out.
7 years ago
I am having trouble with this GUI. I am trying to use a gridbaglayout for all the components in the center panel, although, I am not sure my understanding of gridbaglayout is the best. I can get this code to show a panel but nothing shows up on the panel. If anything is out of place or commented out it's all a part of me trying to debug and play with the code.





7 years ago
Wondering if someone can help me with this program. The biggest issue is that when it "gets arrested" I.E. hits a point where it can not find a dot to move to because a letter or the end of grid is there, it gets an out of bounds exception which I have tried to bounds check. Occasionally it will do something like skip over a letter while still printing both or moving diagonally, but those are rare. The only other tiny issue is it not printing Z when it "makes it home". I am sure there's an easy way to do this just not sure without it breaking my code.



8 years ago
Right. I may have missed putting a line in there because of me trying to debug and switch things around. idx is the index of what I want to remove from the array. Should be something like dat3[idx]. I am trying to copy the array except for the value at idx, which is just a value I've chosen. The out of bounds should be taken care of once the new array is returned. I am just not sure how to go about removing it. I want to do something akin to the opposite of this...

8 years ago
Hello all,

I am trying to create a method that removes an index from an array and copies the rest into a new array.
Here is the code pertinent to what I am trying to do.


I have tried different approaches but am not sure if I am heading in the right direction. I am also getting an out of bounds error when I try to copy the array alone which I am assuming is an off-by-one that I am not seeing

8 years ago
Hey guys,
I am trying to return an array from a simple method but can't figure out why it's throwing a "missing return statement error". Have I gone blind?

8 years ago