Win a copy of Spark in Action this week in the Open Source Projects forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Embedding a video into a java app

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi people, I'm quite new to java and I'm currently studying it in uni but I have a problem.

I have a task where I have to find out how to embed a video into a java app using JMF, netbeans and swing,
Basically I'm just looking for someone to point me in the right direction of where to start or how to go about it, any help is much appreciated, thanks.
 
Rancher
Posts: 43016
76
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An archive of the JMF sample code is available here. It includes the MDIApp class, which is a simple desktop media player.
 
Gav Mundo
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the help guys, I'm going to take a look at them links now.

And I've had a look at the MDIApp class but I don't really know what to do with it, sorry I'm really new to this.
 
Ulf Dittmer
Rancher
Posts: 43016
76
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

And I've had a look at the MDIApp class but I don't really know what to do with it


It's an application - you can compile and run it.
 
Gav Mundo
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:

And I've had a look at the MDIApp class but I don't really know what to do with it


It's an application - you can compile and run it.



I know but I don't know how to compile and run it, do I have to create my own class and compile it with that? I'm so lost.
 
Ulf Dittmer
Rancher
Posts: 43016
76
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MDIApp *is* a class. With all due respect, if you're confused about what is a class, and how you might go about compiling and running a one-class Java application, I suggest that you leave JMF well alone, and concentrate on learning the basics. Start here: http://download.oracle.com/javase/tutorial/, in particular the "Getting Started " section.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic