Forums Register Login

Setting look and feel of a component

+Pie Number of slices to send: Send
Hi,

Please have a look at the following code. It is a simple media player



In that code, from line number 103 to 105, I am adding the default media controller interface provided by java to handle media. That is a type of Component. Unfortunatly, this component is in JAVA LOOK AND FEEL. This is a test application and my whole application will be based on SYSTEM LOOK AND FEEL(Windows). Please let me know how to change the component's java look and feel to system look and feel. Thanks>
+Pie Number of slices to send: Send
JMF doesn't create Swing components but native AWT components. That means that the look&feel does not apply to them. There is absolutely nothing you can do about this, except maybe find a different media library.
+Pie Number of slices to send: Send
Try the Java Tutorials.
+Pie Number of slices to send: Send
Oh, I didn’t realise we are not using Swing.
+Pie Number of slices to send: Send
Thanks for both of your replies. I appreciate it a lot
+Pie Number of slices to send: Send
 

Rob Spoor wrote:JMF doesn't create Swing components but native AWT components. That means that the look&feel does not apply to them. There is absolutely nothing you can do about this, except maybe find a different media library.



Thanks for the reply. I appreciate it a lot.

Different library? Like FMJ, JVLC, VLCJ ? VERY HARD to find tutorials isn't it?
+Pie Number of slices to send: Send
To be honest, I've never tried anything other than JMF so I couldn't recommend another one.
+Pie Number of slices to send: Send
 

Rob Spoor wrote:To be honest, I've never tried anything other than JMF so I couldn't recommend another one.



OK. Thanks for the reply. I will do some research on other libraries and will let you all know if I got good results

Marking this thread as solved
and POOF! You're gone! But look, this tiny ad is still here:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1108 times.
Similar Threads
unable to remove spaces between buttons(making a calculator)
Error on seting images to labels: NullPointException
JTabbedpane with JRadiobutton?
RMI: FileNotFound exception and NullPointException
Unable to save a file using JFileChooser
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 09:14:44.