Results 1 to 6 of 6
  1. #1
    defactor is offline Member
    Join Date
    Jan 2010
    Posts
    2
    Rep Power
    0

    Default creating buttons

    Would you help me to create a gui that has two buttons which contains integers only in it?
    After that another two buttons to contain single word each using proper exceptions?

  2. #2
    ojn
    ojn is offline Senior Member
    Join Date
    Aug 2008
    Location
    Stockholm, Sweden
    Posts
    119
    Rep Power
    0

    Default

    You mean help you cheat on your homework? Don't think so!
    Write some code and ask a specific question about it.

  3. #3
    defactor is offline Member
    Join Date
    Jan 2010
    Posts
    2
    Rep Power
    0

    Default

    No, of course. I mean how can I create a button which contains only integer, how can I show this?
    Don't write me a whole code, I want only specific part of code.

  4. #4
    ojn
    ojn is offline Senior Member
    Join Date
    Aug 2008
    Location
    Stockholm, Sweden
    Posts
    119
    Rep Power
    0

    Default

    Edit: Why bother...
    Last edited by ojn; 01-02-2010 at 11:24 AM.

  5. #5
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,313
    Blog Entries
    1
    Rep Power
    31

    Default

    Quote Originally Posted by defactor View Post
    No, of course. I mean how can I create a button which contains only integer, how can I show this?
    Don't write me a whole code, I want only specific part of code.
    The Sun Swing tutorials can show you how to create JButtons and display them. I strongly suggest that you read them, check out the sample code, and then give it a try yourself. If your code bombs, then come on back with it and we'll look it over.

    Link: How to create buttons

    Much luck!

  6. #6
    [RaIdEn] is offline Senior Member
    Join Date
    Oct 2009
    Location
    California,US
    Posts
    201
    Rep Power
    11

    Default

    Quote Originally Posted by Fubarable View Post
    The Sun Swing tutorials can show you how to create JButtons and display them. I strongly suggest that you read them, check out the sample code, and then give it a try yourself. If your code bombs, then come on back with it and we'll look it over.

    Link: How to create buttons

    Much luck!
    +1..

    yup sun tutorials FTW...come to this forum if you need any help..we'll try our best

Similar Threads

  1. generating 26 buttons
    By yasmin k in forum AWT / Swing
    Replies: 4
    Last Post: 11-08-2009, 02:11 PM
  2. Creating files stopped creating...
    By Dieter in forum Advanced Java
    Replies: 3
    Last Post: 09-25-2009, 11:45 PM
  3. Where To Get Pop Up Buttons
    By hitmen in forum AWT / Swing
    Replies: 7
    Last Post: 03-26-2009, 04:05 AM
  4. How to use Radio Buttons
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-25-2008, 02:26 PM
  5. How to use SWT Buttons
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-11-2008, 04:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •