Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: Making a neon looking Jbutton...

  1. #1
    Junior Member
    Join Date
    Oct 2012
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Making a neon looking Jbutton...

    I was wondering if its possible, I double checked alot of results on google and the ones that came out was CSS and something about a new plug-in for the netbeans IDE... Anyhow... Is it possible? if yes how? If my question lacks detail, I'd like to draw attention to the clock gadget for windows 7 that has a neon themeUntitled.png I need to create a button that has the same outlook but not a clock or any kind of timer... Thanks in advance


  2. #2
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Making a neon looking Jbutton...

    Have you read about the JButton to see what the class can do?

  3. #3
    Junior Member
    Join Date
    Oct 2012
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Making a neon looking Jbutton...

    Yes I did... I'm not a java newbie but am just not that much of a GUI builder so I was looking for a code that creates a neon themed button
    The other alternative is to create the button using Photoshop or Gimp and import it using java so that it would be a picture over a JButton... I'm just asking if there is something to be done other than that...

  4. #4
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Making a neon looking Jbutton...

    Depending on how simple of an image you want to use. Images can be drawn in code or imported. A listener can be active on any displayable object and coded to work like a button. Roll-over changes included. The "best" way to do it depends on what you really want.

    As far as having code for a neon button, not I.

    If your requirements suggest you need a button who does only things buttons do, use the button class, it was designed to handle the common button idea.
    On the other hand if you need some functionality not provided by a button object, consider extending the button class with custom extensions or building an object on your own.

  5. The Following User Says Thank You to jps For This Useful Post:

    MedoAlmasry (October 21st, 2012)

  6. #5
    Junior Member
    Join Date
    Oct 2012
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Making a neon looking Jbutton...

    Ok then... Thanks Alot I appreciate it

  7. #6
    Junior Member
    Join Date
    Nov 2012
    Location
    Chennai
    Posts
    1
    My Mood
    Cheerful
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: Making a neon looking Jbutton...

    I am not clear well with your question. Did you mean creating a Button with image over it?
    If this is what you asking, this is the Procedure..
    Just Right-click the Button on which you want to embed an image, choose "Icon" option Browse the Image which you intended. and click ok.

    Thank you

  8. The Following User Says Thank You to Vigneshwaran R.R For This Useful Post:

    MedoAlmasry (November 7th, 2012)

Similar Threads

  1. JButton
    By usherlad in forum AWT / Java Swing
    Replies: 1
    Last Post: August 10th, 2012, 12:02 PM
  2. JButton
    By usherlad in forum Java Theory & Questions
    Replies: 1
    Last Post: August 10th, 2012, 09:31 AM
  3. JButton help
    By tabutcher in forum Java Applets
    Replies: 4
    Last Post: March 9th, 2010, 06:04 PM
  4. JButton Help
    By ravjot28 in forum AWT / Java Swing
    Replies: 3
    Last Post: January 17th, 2010, 10:38 AM
  5. JButton...
    By chronoz13 in forum AWT / Java Swing
    Replies: 1
    Last Post: November 27th, 2009, 10:39 AM