Results 1 to 6 of 6
- 02-26-2012, 05:41 PM #1
Member
- Join Date
- Feb 2012
- Posts
- 9
- Rep Power
- 0
-
Re: How to add Multiple Objects in Frame
Your question is somewhat anemic on details, so let me ask some questions that might help us help you:
- You say you're adding "shapes" to a Frame, is this an AWT program and is this Frame a java.awt.Frame object?
- What exactly are your "shapes"? Are they objects that derive from the java.awt.Shape interface? Or do they inherit from another type?
- How are you currently adding shapes to your Frame? Can you show your code -- using [code] [/code] tags please.
- How are you trying to add all three shapes to the Frame? Again can you show your code? Do you need to change the Frame's layout manager to something more suitable, perhaps FlowLayout if this is AWT or Swing?
Also, you seem to have gotten good help in your last post here, but never returned to the post to reply? Did you solve your problem? Consider thanking pbrockway for putting in the time and effort to share his expertise with you. We're all volunteers and that's how we get "paid".
- 02-26-2012, 06:14 PM #3
Member
- Join Date
- Feb 2012
- Posts
- 9
- Rep Power
- 0
Re: How to add Multiple Objects in Frame
Thanks
-
Re: How to add Multiple Objects in Frame
You're welcome.
- 02-26-2012, 06:25 PM #5
Member
- Join Date
- Feb 2012
- Posts
- 9
- Rep Power
- 0
Re: How to add Multiple Objects in Frame
I have frame From JFrame in Viewer Class. I have rectangle class, ellipse class and line class separately. I had three buttons in VIewer class. When i click Rectangle button i can draw rectanlge in frame, but i cannot draw others. But if i make Rectanlge class inactive i can draw ellipse but cannot draw line. So the problem is i cannot draw three of them together in Frame. My concern is that how can i display all in one frame. In my view problem lies in Frame but how....Please
-
Re: How to add Multiple Objects in Frame
Hopefully someone else can help you, but you're still providing not enough information for me, sorry. I have little idea on what you're doing. Try asking your question as if the folks reading it have no idea whatsoever about the program structure and the code.
Similar Threads
-
Unable to Display Two Objects in Frame
By AryanArs in forum AWT / SwingReplies: 4Last Post: 02-26-2012, 06:56 PM -
Unable to Display Two Objects in Frame
By AryanArs in forum New To JavaReplies: 2Last Post: 02-26-2012, 06:43 AM -
Draw multiple class objects in one frame
By jj007 in forum AWT / SwingReplies: 2Last Post: 01-14-2012, 06:32 PM -
How to post multiple image in frame?
By Miwrath in forum AWT / SwingReplies: 2Last Post: 10-14-2010, 07:43 AM -
Adding multiple images to frame
By 435.mahesh in forum AWT / SwingReplies: 1Last Post: 04-24-2009, 08:31 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks