• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

adding buttons

 
jake bellhorn
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


all i wanna noe is how do i add buttons to this code, like 6 or seven. Help!!!
[ June 19, 2006: Message edited by: jake bellhorn ]
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jake, you'll notice that inside of Code Tags, text does not automatically wrap, so you might want to add some returns to your original post. You can edit your own posts by clicking on the paper/pencil icon.
 
jake bellhorn
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can someone please help me, i dont wanna learn this java stuff, i only took this course because i needed a six subject in which i can get into university, thats the reason i took programming. what i mean is that im never going to do/use this java stuff when im older and dont really care for it. all i need help is how to make a simple program in which there are about 6 or seven buttons that appear and each one that you click creates a diffrent outcome like for instance the fifa world cup. clicking on the button groupA will lead to a text joptionpane box and will show the teams and theyre schedules in that group. im not good at java and only have 2 day left, ive been trying to do it but i just dont get it. please someone help
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> i only took this course because i needed a six subject in which i can get into university,

you chose......... poorly
 
jake bellhorn
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
its the only one i could have taken and plus ive taken this course for every year in high school, we used to use liberty basic and now we just got intoduced into j creator and i dont get it
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
as you have no interest in java, pay someone to do it for you

try rent-a-coder
 
jake bellhorn
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ive got 1 day i dont have time to do something like that
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems you're looking for a quick answer. But -- as other posters have implied -- the quick answer is that there is no quick answer. (Yes, you could "add" a button fairly easily, but then the next question is how to make that button do something.)

If you haven't already bookmarked this, here is a link to the Java Tutorial...

http://java.sun.com/docs/books/tutorial/index.html

Take some time with this (especially the Swing section), and see where that gets you. We're here to help, but we can't "learn" Java for you.
 
Ken Blair
Ranch Hand
Posts: 1078
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by jake bellhorn:
ive got 1 day i dont have time to do something like that


If you have time to post your requirements here and get a suitable application in return then you have time to do the same thing with someone you're paying. It's extremely unlikely anyone here or anywhere else is going to give you a complete solution because you chose to take a class you didn't want to and are unwilling to do the work.
 
jake bellhorn
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ive been asking for help for two months now from this forum and all i get is Tutorial help. all i want to is put buttons in that code and where to put them, ive been asking that for a while and i dont understand java i dont understand why someone wont just give me the code and help out
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
at some point you will have to take your feet off the table,
and do something for yourself.

you could at least try searching - that requires very little effort.
search the swing forum, or google, and use
"new JButton"

you should find numerous hits, many with sample code where you will see
how the buttons are added and used.

yeh, yeh, a bit more effort to read, but you're the one wanting to pass
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by jake bellhorn:
...i dont understand why someone wont just give me the code and help out

If that's the best way to help out, then I'm sure your professor would be glad to just give you the code (especially if you explain how urgent it is).
 
jake bellhorn
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i cant ask him for help, or else we get marks deducted
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic