Results 1 to 12 of 12
  1. #1
    sandeepsai17 is offline Member
    Join Date
    Jun 2009
    Posts
    30
    Rep Power
    0

    Default creating New Components in swings

    hi to all
    I know how to use swing components ,now I am trying to create new component in swings,i don't know how to start can any one help me how to start this.Please guide me how to learn this one if it is possible.
    Thanks in advance

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    What specifically are you trying to create here? The details will help a great deal.

  3. #3
    sandeepsai17 is offline Member
    Join Date
    Jun 2009
    Posts
    30
    Rep Power
    0

    Default

    thanks for reply.Creating in the sense i want to add custom features to the existing components and it should work as a new component .I know how to add my custom working functionality to existing components by using appropriate classes ,but i don't know how to create a component with my functionality ,my listeners ,my own display properties and it can added to JFrame or any other top level container directly.

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Based on your current posts, I have no idea how to help you, and again, specifics will help a great deal. Please give a very concrete example something you'd like to create.

  5. #5
    sandeepsai17 is offline Member
    Join Date
    Jun 2009
    Posts
    30
    Rep Power
    0

    Default

    ok,for example i am using a combo box in which i want to display some small images using my custom renderer ,now i want to define this combobox with specified renderer as a separate component and i can use this component directly to the JFrame .This is just an example what i am need ,not my required problem.I hope u can understand this time.
    Any way thanks for your reply again.

  6. #6
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    but what I don't understand is that it seems that you already can use this combo box as you've written it. What additional functionality are you requiring? Also, this statement doesn't make much sense to me: "i can use this component directly to the JFrame". Do you mean so that you can add it to a NetBeans Swing app by drag and drop? If so, then say so.

    Again, you need to clarify things greatly. I'm sorry if I'm frustrating you with this, but it's kind of frustrating me. You may wish to read this link: How to ask questions the smart way

    I know that the link has helped me greatly in formulating forum questions

  7. #7
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    If you are trying to create a reusable custom Swing component to place on the NetBeans palette, have a look at this interesting link here: Create Reusable NetBeans Component

    If you want to do something different, again, please add more detail about your question. Best of luck, and HTH.

  8. #8
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    450
    Rep Power
    6

    Default

    if you are using NetBeans as IDE ,You can easily create swing components like your own textfild and so on...
    Try out it.
    Mak
    (Living @ Virtual World)

  9. #9
    sandeepsai17 is offline Member
    Join Date
    Jun 2009
    Posts
    30
    Rep Power
    0

    Default

    first of all sorry for my frustrating question ,specially to Fubarable ,but as i am new to java and you should be patient and you should guide me what is wrong and what is correct ,any way i always respect you because of your knowledge in java and i got your point on my question ,thank you .I try my best i will never frustrate you .

  10. #10
    sandeepsai17 is offline Member
    Join Date
    Jun 2009
    Posts
    30
    Rep Power
    0

    Default

    thank you makpandian.I got it.

  11. #11
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    My frustration is mainly my problem, passes quickly and while it sometimes be a nuisance to you (sorry!), it should never harm you. What can harm you though is your not receiving an adequate answer because of an incomplete question.

    So on that note, please never worry about frustrating me, but if you want a timely answer, worrying about how to spend a good bit of time to formulate an answerable question will do nothing but help you.

    Best of luck.

  12. #12
    sandeepsai17 is offline Member
    Join Date
    Jun 2009
    Posts
    30
    Rep Power
    0

    Default

    sure i will try my level best to follow your suggestions.Thanks for your advices and Hope i will meet you on my next doubt .

Similar Threads

  1. jdbc with swings
    By raghu9198 in forum New To Java
    Replies: 3
    Last Post: 06-24-2009, 10:42 PM
  2. interface in swings
    By r.srimathi in forum AWT / Swing
    Replies: 4
    Last Post: 01-29-2009, 08:44 AM
  3. awt and swings
    By masa in forum AWT / Swing
    Replies: 2
    Last Post: 11-24-2008, 07:09 AM
  4. New to Java, Creating screens with swings on Mac OS X
    By mo_mughrabi in forum New To Java
    Replies: 0
    Last Post: 05-26-2008, 01:17 PM
  5. java swings
    By emperoraj in forum AWT / Swing
    Replies: 0
    Last Post: 03-26-2008, 11:50 AM

Posting Permissions

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