This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes simulations in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "simulations in java" Watch "simulations in java" New topic
Author

simulations in java

nadeenaaaa Bismarckaaa
Greenhorn

Joined: Aug 18, 2004
Posts: 1
Hi! i'm new here as you can see, i joined this website because i need help in my end of year project. Ok am a begginner in java, and when i say begginner i mean i'm really very green in java. I have this project where i am simulating token ring and i have no idea where to start or what to do please help. I need to know how to link events to a set of instructions like one button can be pressed like 10 times and i want every time it is pressed it draws the same item at a different place. Or a circulating token which i have no idea how to even start on that one so please guys help.


To resist is to piss in the wind, if you try you'll end up smelling!!
pascal betz
Ranch Hand

Joined: Jun 19, 2001
Posts: 547
hi

you should try the beginners forum because this is about Object Relational Mapping stuff.

anyway:
hava a look at JPanel (especially the paint(Graphics g) method) , JButton, ActionListener, ActionEvent.


cheers

pascal
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

You are right Pascal.

nadeenaaaa Bismarckaaa this is a forum for ORM tools like Hibernate, and your question isn't at all about an ORM, so I am going to move this thread to the Java In General (Beginner) forum.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

"nadeenaaaa Bismarckaaa"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the

JavaRanch Naming Policy.

While I believe that it is probably really close to your actual name spelling, however I doubt that you have three "a" in both your first and last names.

You can change it

here.

Thanks! and welcome to the JavaRanch!

Mark
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Here is a list of free on-line Java tutorials and books that I have found useful:
  • Sun's Java Tutorial
  • Introduction to Computer Science using Java by Bradley Kjell
  • Introduction to Programming Using Java by David J. Eck
  • Dick Baldwin's Java Programming Tutorials
  • Interactive Programming In Java by Lynn Andrea Stein
  • Bruce Eckel's Thinking In Java
  • JavaRanch's own Campfire Stories
  • Allen B. Downey's How To Think Like A Computer Scientist


  • [How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: simulations in java
     
    Similar Threads
    Using SMS for data push -- how to send an SMS message from the server
    Catching specific keystroke
    SCJP
    StringTokenizer question
    Java GUI and MS access database