5 Replies - 2660 Views - Last Post: 15 April 2011 - 09:05 PM Rate Topic: -----

#1 kochu_suja  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 06-April 11

WANT TO DISPLAY ONE FRAME INSIDE ANOTHER

Posted 15 April 2011 - 08:02 PM

Hai..

I created a program using frames. First I created text fields and labels to enter the name
and number of actors,also a button is created.By clicking on the button a new window appears
and i entered name and number of actions of first actor.What i want to display is,based on the number of
actions a window must appear for entering the actions.But in my program, first displayed all the name and
number of actions of actors,after that a window to enter their actions.i,e i want to enter name and number
of actions of first actor then his actions, after that second actors name and number of actions and so on...
Waiting for a reply
thanks..

Is This A Good Question/Topic? 0
  • +

Replies To: WANT TO DISPLAY ONE FRAME INSIDE ANOTHER

#2 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8334
  • View blog
  • Posts: 31,857
  • Joined: 06-March 08

Re: WANT TO DISPLAY ONE FRAME INSIDE ANOTHER

Posted 15 April 2011 - 08:17 PM

You just can't
By definition a JFrame is a Window that you can drag over other Windows
unless you want a JDesktopPane with JInternal frames in it like when you open Excel/Word and have an external frame with a different frame for all your different spreadsheet/document into it
Was This Post Helpful? 1
  • +
  • -

#3 Dogstopper  Icon User is online

  • The Ninjaducky
  • member icon



Reputation: 2872
  • View blog
  • Posts: 11,031
  • Joined: 15-July 08

Re: WANT TO DISPLAY ONE FRAME INSIDE ANOTHER

Posted 15 April 2011 - 08:19 PM

Like pbl said, you really can't. It's a top-level component for a reason. Read my tutorial on high-level components:
http://www.dreaminco...vel-components/

You need to use a JDesktopPane and JInternalFrame.
Was This Post Helpful? 1
  • +
  • -

#4 Dworza  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 6
  • View blog
  • Posts: 172
  • Joined: 13-February 11

Re: WANT TO DISPLAY ONE FRAME INSIDE ANOTHER

Posted 15 April 2011 - 08:58 PM

And what about using JInternalFrame ? This could make that, what he needs..
Was This Post Helpful? 0
  • +
  • -

#5 Dogstopper  Icon User is online

  • The Ninjaducky
  • member icon



Reputation: 2872
  • View blog
  • Posts: 11,031
  • Joined: 15-July 08

Re: WANT TO DISPLAY ONE FRAME INSIDE ANOTHER

Posted 15 April 2011 - 09:01 PM

View PostDogstopper, on 15 April 2011 - 11:19 PM, said:

You need to use a JDesktopPane and JInternalFrame.


Already been said. :)
Was This Post Helpful? 0
  • +
  • -

#6 Dworza  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 6
  • View blog
  • Posts: 172
  • Joined: 13-February 11

Re: WANT TO DISPLAY ONE FRAME INSIDE ANOTHER

Posted 15 April 2011 - 09:05 PM

View PostDogstopper, on 15 April 2011 - 09:01 PM, said:

Already been said. :)


Sorry, I didn't noticed :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1