As was foretold, we've added advertisements to the forums! If you have questions, or if you encounter any bugs, please visit this thread: https://forums.penny-arcade.com/discussion/240191/forum-advertisement-faq-and-reports-thread/
Options

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

  • Options
    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
  • Options
    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
  • Options
    .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.