Component visual = player.getVisualComponent (); Component control = player.getControlPanelComponent ();
Container c = getContentPane ();
if (visual != null) c.remove (visual);
if (control !=null) c.remove (control);
}
private class EventHandler implements ControllerListener { public void controllerUpdate (ControllerEvent e) { if (e instanceof RealizeCompleteEvent ) { Container c = getContentPane ();
if (controlsComponent != null) c.add (controlsComponent, BorderLayout.SOUTH);
c.doLayout (); } } } public static void main(String[] args) { PlayClip p = new PlayClip(); try { System.out.println((InetAddress.getByName("localhost")).getHo stAddress()); } catch(Exception e) { } } }
And I get the followinfg as a result
Unable to handle format: RLE8, 32x32, FrameRate=14.9, Length=2048 1024 extra bytes Failed to realize: com.sun.media.PlaybackEngine@4a0115 Error: Unable to realize com.sun.media.PlaybackEngine@4a0115
Any idea??? Please I need the solution for my thesis!! Thanks in advance!!!!!!!!