944,159 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 2970
  • Java RSS
Feb 24th, 2006
0

Copy and paste Components

Expand Post »
Well, i searched all through google and stuff...but in vain..i want to add a functionality in my program to copy and paste buttons which are present on the screen.....I got a wonderful article to copy and paste text.but what about some swing components???????how do we copy and paste them?????

[site]http://www.cafeaulait.org/course/week13/[/site]
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
jigvesh is offline Offline
44 posts
since Oct 2004
Feb 24th, 2006
0

Re: Copy and paste Components

Use the ClipBoard?
Reputation Points: 113
Solved Threads: 19
Postaholic
server_crash is offline Offline
2,108 posts
since Jun 2004
Feb 24th, 2006
0

Re: Copy and paste Components

are you talking about cutting and pasting complete swing components, like buttons and panels?
Reputation Points: 11
Solved Threads: 8
Posting Whiz in Training
hooknc is offline Offline
216 posts
since Aug 2005
Feb 26th, 2006
0

Re: Copy and paste Components

Quote originally posted by hooknc ...
are you talking about cutting and pasting complete swing components, like buttons and panels?
Oh Yeah........something which enables the users to copy and paste the buttons which are present on the interface itself........
Reputation Points: 10
Solved Threads: 0
Light Poster
jigvesh is offline Offline
44 posts
since Oct 2004
Feb 26th, 2006
0

Re: Copy and paste Components

This is a difficult problem. What is your main goal? Are you trying to build a gui editor?

Just shooting from the hip, but I would think that you would want to create your own buttons that extend the normal components and then extend the current java cut and paste utility. Maybe have an interface called Copyable or something like that and then have the new cut and paste utility look for components that are copyable and go from there...
Reputation Points: 11
Solved Threads: 8
Posting Whiz in Training
hooknc is offline Offline
216 posts
since Aug 2005
Feb 27th, 2006
0

Re: Copy and paste Components

Quote originally posted by hooknc ...
This is a difficult problem. What is your main goal? Are you trying to build a gui editor?
Oh yes its something like a GUI editor

Quote ...
Just shooting from the hip, but I would think that you would want to create your own buttons that extend the normal components and then extend the current java cut and paste utility. Maybe have an interface called Copyable or something like that and then have the new cut and paste utility look for components that are copyable and go from there...
From all that's written here, i have created my buttons and can drag and drop them too..........and frankly the explanation u gave seemed a bit of greek to me.....I'll be grateful to u if u culd explain it in a bit simpler way.......Thanks..........
Reputation Points: 10
Solved Threads: 0
Light Poster
jigvesh is offline Offline
44 posts
since Oct 2004
Feb 27th, 2006
0

Re: Copy and paste Components

Reputation Points: 11
Solved Threads: 8
Posting Whiz in Training
hooknc is offline Offline
216 posts
since Aug 2005
Feb 27th, 2006
0

Re: Copy and paste Components

Quote originally posted by hooknc ...
http://java.sun.com/docs/books/tutor.../misc/dnd.html
Thanks a tonne dude.....Now let me work it out.....
Reputation Points: 10
Solved Threads: 0
Light Poster
jigvesh is offline Offline
44 posts
since Oct 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Help with network programming
Next Thread in Java Forum Timeline: Real Newbie Q.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC