The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

AWT in a Swing GUI(Java)

.kbf?.kbf? Registered User regular
edited April 2010 in Help / Advice Forum
Does anyone know how to do this?

Essentially what I'm trying to do is integrate this RTP example with a swing GUI I had been previously making (using the Netbeans GUI designer).

I'm able to get the code to run but it pops up another window to display the video feed.

.kbf? on

Posts

  • RhinoRhino TheRhinLOL Registered User regular
    edited April 2010
    I don't do AWT or Swing; but in general; most GUI frameworks have a "frame" or main shell. It sounds like you are running a Swing app and then loading up an AWT window.

    Rhino on
    93mb4.jpg
  • TavataarTavataar Registered User regular
    edited April 2010
    Could you supply a little more information about how you are displaying your video? Like the above person says it sounds like you are opening a new Frame or something instead of embedding it in your parent Frame.

    I think that all Swing stuff inherits from AWT things, so you should be able to put the video into a JPanel or some such, and then just stick that in your parent Frame.

    Tavataar on
    -Tavataar
  • .kbf?.kbf? Registered User regular
    edited April 2010
    Yep thats exactly what I was doing.

    I just had to change "extend Frame" to "extend JFrame" and add it to the Parent frame. Thanks for the help.

    .kbf? on
Sign In or Register to comment.