File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

simulations in java

 
nadeenaaaa Bismarckaaa
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
pascal betz
Ranch Hand
Posts: 547
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
Posts: 7023
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic