Results 1 to 4 of 4
  1. #1
    anandcta123 is offline Member
    Join Date
    Apr 2012
    Posts
    3
    Rep Power
    0

    Default Java Swing slider creation.

    Dear all,

    I am new entry to Java Programming using Swing. I don't know anything about Swing/AWT. Please direct me correct path for my following query.

    How to create a custom slider from an image and implementation of actions to work like JSlider component.

    Awaiting for your reply.....Thanks in advance.....

    Anand

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default Re: Java Swing slider creation.

    Since you say you don't know anything about Swing/AWT, you should start by going through the Tutorial Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials) . The next step would be to familiarize yourself with the Swing MVC pattern, by reading the source code of components, models and UI delegates.

    In a year or three you should be ready to create a custom component. Don't give up!

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    anandcta123 is offline Member
    Join Date
    Apr 2012
    Posts
    3
    Rep Power
    0

    Default Re: Java Swing slider creation.

    Thanks for your reply....

    Is there any way to customize existing JSlider component using our images.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default Re: Java Swing slider creation.

    That's far too vague to answer. Where do you want to place an image? as a background? custom slider thumb? custom tick marks? custom tick labels? something else entirely?

    Recommended reading: How to ask questions the smart way

    And you might like to look at this other forum thread: JSlider (Swing / AWT / SWT / JFace forum at JavaRanch)

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. how to focus dojo slider to a particular value and then disabling dojo slider so that
    By gurpreet.singh in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 05-05-2011, 04:21 PM
  2. Replies: 1
    Last Post: 05-05-2011, 02:47 PM
  3. Image Slider Help
    By matthew707 in forum New To Java
    Replies: 1
    Last Post: 01-04-2011, 05:37 PM
  4. progress bar with slider
    By paddala in forum AWT / Swing
    Replies: 1
    Last Post: 10-17-2010, 02:48 PM
  5. How to use Slider in SWT
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-02-2008, 09:05 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
  •