Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-11-2009, 08:56 AM
Member
 
Join Date: Jun 2009
Posts: 27
Rep Power: 0
sandeepsai17 is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 07-11-2009, 01:57 PM
Fubarable's Avatar
Moderator
 
Join Date: Jun 2008
Posts: 5,968
Rep Power: 7
Fubarable is on a distinguished road
Default
What specifically are you trying to create here? The details will help a great deal.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-11-2009, 02:15 PM
Member
 
Join Date: Jun 2009
Posts: 27
Rep Power: 0
sandeepsai17 is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 07-11-2009, 02:25 PM
Fubarable's Avatar
Moderator
 
Join Date: Jun 2008
Posts: 5,968
Rep Power: 7
Fubarable is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 07-11-2009, 02:58 PM
Member
 
Join Date: Jun 2009
Posts: 27
Rep Power: 0
sandeepsai17 is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 07-11-2009, 03:33 PM
Fubarable's Avatar
Moderator
 
Join Date: Jun 2008
Posts: 5,968
Rep Power: 7
Fubarable is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 07-11-2009, 04:18 PM
Fubarable's Avatar
Moderator
 
Join Date: Jun 2008
Posts: 5,968
Rep Power: 7
Fubarable is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #8 (permalink)  
Old 07-11-2009, 10:15 PM
makpandian's Avatar
Senior Member
 
Join Date: Dec 2008
Location: Chennai
Posts: 253
Rep Power: 2
makpandian is on a distinguished road
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)
Bookmark Post in Technorati
Reply With Quote
  #9 (permalink)  
Old 07-13-2009, 07:21 AM
Member
 
Join Date: Jun 2009
Posts: 27
Rep Power: 0
sandeepsai17 is on a distinguished road
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 .
Bookmark Post in Technorati
Reply With Quote
  #10 (permalink)  
Old 07-13-2009, 07:25 AM
Member
 
Join Date: Jun 2009
Posts: 27
Rep Power: 0
sandeepsai17 is on a distinguished road
Default
thank you makpandian.I got it.
Bookmark Post in Technorati
Reply With Quote
  #11 (permalink)  
Old 07-13-2009, 07:25 AM
Fubarable's Avatar
Moderator
 
Join Date: Jun 2008
Posts: 5,968
Rep Power: 7
Fubarable is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #12 (permalink)  
Old 07-13-2009, 07:49 AM
Member
 
Join Date: Jun 2009
Posts: 27
Rep Power: 0
sandeepsai17 is on a distinguished road
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 .
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT +2. The time now is 05:02 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org