Reply to thread
GBAtemp.net - The Independent Video Game Community
Search
Search titles only
By:
Search titles only
By:
Reply to thread
GBAtemp.net - The Independent Video Game Community
Home
Log in
Terms & Rules
Donate
Forums
New posts
Search forums
Groups
Public Events
New
New posts
New resources
New blog entries
New profile posts
New blog entry comments
New threadmarks
Latest activity
Cheats
Cheat Codes Add and Request group
The Legend of Zelda: Tears of the Kingdom cheat codes
Pokémon Legends: Arceus cheat codes
Xenoblade Chronicles 3 cheat codes
Fire Emblem Engage cheat codes
Request a cheat...
Tutorials
Nintendo Switch tutorials
Nintendo 3DS tutorials
Nintendo Wii U tutorials
Reviews
Overview
Official reviews
User reviews
Downloads
Latest reviews
Search resources
Blogs
New entries
New comments
Blog list
Search blogs
Chat
Top chatters
Search
Search titles only
By:
Search titles only
By:
Log in
Register
New posts
Search forums
Log in
Register
Home
Forums
PC, Console & Handheld Discussions
Computer Technology and Gaming
Quick Java Coding Question
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Jamstruth" data-source="post: 4160680" data-attributes="member: 175061"><p>I'm a first year Computer Science student and I've been given a very simple project to improve a Fox and Rabbit simulation. Its basically a grid of Fox and Rabbit object, foxes eat rabbits, breed and die, rabbits just breed and die. The basic running of the program has been provided to me. Basically it originally just consists of a window with no controls with the view of the field showing all the Fox and Rabbit objects.</p><p></p><p>Anyway I've coded a simple GUI to control the program and have hit upon a very strange snag. The window is, for some reason, not showing each step as it happens. When I click the button I have coded to run the simulation for 500 steps the program skips straight to the end of the series of steps instead of showing the populations changing over time. I've checked the code for the simulator viewer and there is a repaint method used to redraw the window after each step of the simulation and when i called the system from a main method the window showed the program running through each step. I don't understand how that's any different to me pressing a GUI button to call the same method. Any ideas as to what's going on?</p></blockquote><p></p>
[QUOTE="Jamstruth, post: 4160680, member: 175061"] I'm a first year Computer Science student and I've been given a very simple project to improve a Fox and Rabbit simulation. Its basically a grid of Fox and Rabbit object, foxes eat rabbits, breed and die, rabbits just breed and die. The basic running of the program has been provided to me. Basically it originally just consists of a window with no controls with the view of the field showing all the Fox and Rabbit objects. Anyway I've coded a simple GUI to control the program and have hit upon a very strange snag. The window is, for some reason, not showing each step as it happens. When I click the button I have coded to run the simulation for 500 steps the program skips straight to the end of the series of steps instead of showing the populations changing over time. I've checked the code for the simulator viewer and there is a repaint method used to redraw the window after each step of the simulation and when i called the system from a main method the window showed the program running through each step. I don't understand how that's any different to me pressing a GUI button to call the same method. Any ideas as to what's going on? [/QUOTE]
Insert quotes…
Verification
Post reply
Home
Forums
PC, Console & Handheld Discussions
Computer Technology and Gaming
Quick Java Coding Question
General chit-chat
Help
Users
Settings
Notifications
Miscellaneous
Inverse message direction
Display editor on top
Enable maximized mode
Display images as links
Hide bot messages
Hide statuses
Hide chatter list
Show messages from ignored users
Temporarily disable chat
Receive mention alerts
Sound notifications
Normal messages
Private messages
Whisper messages
Mention messages
Bot messages
Desktop notifications
Normal messages
Private messages
Whisper messages
Mention messages
Bot messages
Options
Options
View top chatters
No one is chatting at the moment.
@
Xdqwerty
:
@SylverReZ
, although maybe tommorrow bc it's already 10 pm here
+1
Today at 3:06 AM
@
SylverReZ
:
@Xdqwerty
, Good night Xdqwerty.
+1
Today at 3:07 AM
@
Xdqwerty
:
@SylverReZ
, same
+1
Today at 3:07 AM
@
K3Nv2
:
F u c Y to the k
Today at 3:14 AM
@
Xdqwerty
:
@K3Nv2
, F u c k to the Y
Today at 3:16 AM
@
K3Nv2
:
Y
Today at 3:16 AM
@
Xdqwerty
:
@K3Nv2
, Z
Today at 3:17 AM
@
K3Nv2
:
Zero
Today at 3:18 AM
@
Xdqwerty
:
@K3Nv2
, Dr Willy
Today at 3:18 AM
@
K3Nv2
:
https://abcnews.go.com/US/3-swimmers-attacked-sharks-off-florida-panhandle/story?id=110942862
Today at 3:26 AM
@
BakerMan
:
yo guys the sonic x shadow generations trailer dropped today, and shadow just straight up decided, and i hate (love) to bring this dead meme up, but, it's morbin time
Today at 3:40 AM
@
BakerMan
:
also the game drops oct 25, so does call of duty black ops 6, i guess barbenheimer is happening again
Today at 3:41 AM
@
SylverReZ
:
@K3Nv2
, Dang it, Psi.
Today at 3:51 AM
@
K3Nv2
:
Shark tales
+1
Today at 3:52 AM
@
BakerMan
:
where else but florida?
Today at 3:52 AM
@
BakerMan
:
florida men just a different breed
+1
Today at 3:52 AM
@
SylverReZ
:
https://www.foxnews.com/us/man-sexual-assault-olaf-target
Today at 3:53 AM
@
BakerMan
:
are we talking the snowman from frozen? that olaf?
+1
Today at 3:54 AM
@
SylverReZ
:
Yes lol
Today at 3:54 AM
@
BakerMan
:
oh no bro
Today at 3:54 AM
@
SylverReZ
:
>Florida man violates an Olaf plush.
He couldn't let it go with that one.
Today at 3:54 AM
@
K3Nv2
:
Floridawoman is the only thing that can ruin Floridaman
+2
Today at 3:56 AM
@
BakerMan
:
Today at 5:03 AM
@
K3Nv2
:
https://youtube.com/shorts/rI5IRxpcwDk?si=g8PPkbkjsSuwpjZW
+1
Today at 6:06 AM
@
SylverReZ
:
@K3Nv2
, Very accurate.
46 minutes ago
Submit
@
SylverReZ
:
@K3Nv2, Very accurate.
46 minutes ago
Chat
0