Am I missing a basic  point in Swing Gui

Hi,
Why does the text('Hello') not display. ??? The JFrame is empty with no component(JTextField). Here's my code:-
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class DspTxt extends JPanel {
     String txt="Hello" ;
     JTextField jtxt;     
// Constr
     DspTxt(){
     jtxt= new JTextField(txt);
     JPanel panel= new JPanel(new BorderLayout());
     panel.add(jtxt);
     public static void main(String[] args) {
     JFrame mainframe = new JFrame();
          mainframe.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {System.exit(0);}
          DspTxt f= new DspTxt();
          mainframe.getContentPane().add(f);
          mainframe.pack();
          mainframe.setVisible(true);
Thanks in advance
Gurmej

You created a jpanel in your constructor and added the jtextfield to it but you didn't add the jpanel to dsptxt. Dsptxt is a jpanel so you don't need to create a new one.
Run it like this :
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class DspTxt extends JPanel {
     String txt="Hello" ;
     JTextField jtxt;
     // Constr
     DspTxt(){
          jtxt= new JTextField(txt);
          add(jtxt);
     public static void main(String[] args) {
          JFrame mainframe = new JFrame();
          mainframe.addWindowListener(new WindowAdapter() {
               public void windowClosing(WindowEvent e) {System.exit(0);}
          DspTxt f= new DspTxt();
          mainframe.getContentPane().add(f);
          mainframe.pack();
          mainframe.setVisible(true);
}

Similar Messages

  • Missing some basic functionality

    I seem to be missing some basic functionality, like switching to tty1-n using Ctrl+Alt+F1-n.  I can't begin to guess what this is related to, as after several installs I've never experienced that to be missing.  Can anyone point me in the right directions?  Thanks.

    evr wrote:I was recently having problems with commands like because i was using "thinkpad" as the input.xkb.layout value in /etc/hal/fdi/policy/10-keymap.fdi.  Changing to "us" helped me, perhaps that's the issue?
    Hm.  I don't actually have that file in the policy directory.

  • **** soundbooth missing the BASICS ?

    Hi ,
    according to me SOUNDBOOTH misses the BASIC FEATURE
    that is "volume envelope" ,
    I mean bezier or linear curves ( with " add points " tool to set the volume along the timeline ! )
    I know there is the GAIN stuff with clicking etc...
    but it's easy to use of course, ....but for beginners !
    When doing some hard job , professionnal settings ,
    NOTHING replaces the curves ( who said PROTOOLS ? ) ,
    and the editing points , that you can change , oups sorry , ADJUST ,
    and adjust , and adjust , and this with ease in - ease out transition !
    Gestural and graphical editing is the future .
    NB: GAIN in soundbooth is like working on a flatten image in PHOTOSHOP,
    instead of having layers !
    Sad to say , but that's THE reason why we didn't choose SOUNDBOOTH ...
    it as having a super car with ... no wheels !
    Do some upgrades and we'll change or mind for sure !
    Hope this helps...
    kiwiii ( sound mixer - france )

    I've got to jump in and defend Soundbooth. In the interest of full disclusure I do use BOTH Audition and Soundbooth. The library I am working for produces audiobooks that are eventually distributed in a special format. The tools that came with the program used for capture and conversion to the special format are the pits when it comes to editing. We use a corps of volunteers to do the intermediate editing. many of these people had no prior experience and, for some, this was their first time using a computer.
    With a little on the job training, our volunteers are doing an outstanding job editing the recorded material using Soundbooth. Yes, Audition affords more control and will do some jobs that Soundbooth cannot, but 90% of our editing work is done with Soundbooth. Audition is usually reserved for final assembly, Open for Append is so much easier than Cut 'n' Paste, and generating index tones.
    As I said, we do use Audition as well, so I am not trying to say Soundbooth is the be all and end all of audio editing software, but it is very easy to learn and, with some patience, will do some very complex tasks.

  • I'm missing a basic concept on iCal.

    I'm missing a basic concept on iCal Server i think.
    I just want to publish a single calendar to the public from the server, not from the local client; with NO passwords.
    Calendars exist on the iCal Server on 10.8.5 using login credentials from Open Directory where users
    can create calendars, share calendars, etc.
    When you go to the Web site, it first asks for your login and password.
    How do i link a calendar to a public location, or make a calendar publicly accessible?
    Thanks in advance
    Tim Far
    OSX Server, OS X Mountain Lion (10.8.5)

    So with no responses to the above question, I've had to rtfm...
    It appears from my reading of the somewhat limited documentation on iCal Server on 10.8.5, since I have chosen
    to apply security to the Wiki's and Calendars to use OD on the server; I cannot open a public viewable Calendar along side the secured ones.  ( I may certainly be wrong, but I haven't been able to find out how.)
    So I took an easier approach, as I wanted 1 public calendar viewable and subscribable by the public.
    The local iCal server will be used privately for local secure business, while the Public calendar will be
    maintained on the local Admin's desktop, then shared publicly to Google calendars, where I set up a simple secure acount.  This gives me 4 benefits.
    1. A public viewable webpage of the calendar - for those with iCal or iPhone (droid population, or browsers)
    2. An dot.ics subscribable link  for those with iPhones, iCal compatibe calendars
    3. An embedded link for our education web site, to show the Public calendar inline on our own website.
    4. The ability to publish to said Google calendar , from the locally managed desktop.
    This may have been obvious, or not; and potentially othe ways of accomplishing the same,
    Any thoughts or goctcha's ?
    Thanks in advance.

  • Missing classes from the javax.swing package?

    Can anyone throw any light on what appears to be a missing class from the javax.swing package?
    When CelsiusConverter.java from The Swing Tutorial (code fragment shown below) is compiled the JFrame class can't be found.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class CelsiusConverter implements ActionListener {
        JFrame converterFrame;Despite the package javax.swing being imported, the compiler does not seem to be be able to find the JFrame class.
    CelsiusConverter.java:14: Class JFrame not found in type declaration.
        JFrame converterFrame;To attempt to solve this issue all the files in jdk1.5.0_02\lib were added to CLASSPATH.
    CLASSPATH was set to C:\Program Files\Java\jdk1.5.0_02\lib\dt.jar;C:\Program Files\Java\jdk1.5.0_02\lib\htmlconverter.jar;C:\Program Files\Java\jdk1.5.0_02\lib\jconsole.jar;C:\Program Files\Java\jdk1.5.0_02\lib\tools.jar;C:\Program Files\Java\jdk1.5.0_02\lib;C:\Program Files\Java\jdk1.5.0_02\lib\ir.idl;C:\Program Files\Java\jdk1.5.0_02\lib\jawt.lib;C:\Program Files\Java\jdk1.5.0_02\lib\jvm.lib;C:\Program Files\Java\jdk1.5.0_02\lib\orb.idl;C:\Program Files\Java\jdk1.5.0_02\demo\jfc\SwingApplet\SwingApplet.jar;.;c:\CoreJavaBook

    This is extremely strange... If you're sure it's not a problem in your code or with your classpath, the only other thing I can think to suggest is re-downloading / installing java

  • I thought I understood automator but I must be missing some basic understa

    Thought I understood automator but I must be missing some basic understanding. I want select several audio (mp3 stereo) files and get automator to convert them to mono aiff files. I know how to do this in soundtrack pro, and I looked under actions, library, music; but could not find a way to get them to be mono in automator. Suggestions?
    thanks
    J Jordan
    The KiteSites.com Series

    I'm sorry, I downloaded and installed 'drop a few my way' and read the instructions, but where is the 'drop a few my way' icon? Mysterious new files appeard in the Library/iTunes/Scripts/ folder, but where is the icon supposed to be?

  • 'Soft' pointer in swing

    Hi,
    I wish to create a 'soft' pointer in swing, i.e. a second 'mouse' pointer that is controlled by a different device. I have all the control software working and a simple swing application that draws lines in response to gestures, but I can't find anything about creating new pointer as all the searches I run seem to result in tips on changing the mouse pointer size or image. Just to be clear: this is in addition to the mouse pointer, I don't want to control the mouse pointer itself with my device.
    TIA,
    Paul

    I don't believe so... or if it is, they have a special relationship tieing them together.
    why?

  • I am missing some basic video transitions that used to be there.

    I am missing some basic video transitions that used to be there.  Using Adobe Premier Pro CC 8.1, Caravan.  Update any time Creative Cloud prompts me to.
    Some third party transitions also are acting like I've never registered them, but it concerns me that video transitions that are native to Adobe Premier are missing.

    If you are on a mac look here Adobe Premiere Pro Help | New features summary
    to see transitions that are no longer there. Look for "deprecated video transitions" about two-thirds of the way down

  • Firefox 5 updated - now it does not function - just a blank window. Pull down menus appear but do not function. Am I missing an obvious point to allow this browser to function?

    I do not understand how to correct this malfunction.
    Operating on MacBook Pro using Mac OSX 10.6.8. Firefox 5 updated - now it does not function - just a blank window. Pull down menus appear but do not function. Am I missing an obvious point to allow this browser to function?

    I suspect it has something to do with the java but not sure
    Just so you'll know, there is no Java on that page.  There is, however JavaScript.  You should know that those two things are different as night and day.
    To fix your problem, change this -
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
      </script>
    </head>
    to this -
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    -->
      </script>
    </head>

  • Loading large files in Java Swing GUI

    Hello Everyone!
    I am trying to load large files(more then 70 MB of xml text) in a Java Swing GUI. I tried several approaches,
    1)Byte based loading whith a loop similar to
    pane.setText("");
                 InputStream file_reader = new BufferedInputStream(new FileInputStream
                           (file));
                 int BUFFER_SIZE = 4096;
                 byte[] buffer = new byte[BUFFER_SIZE];
                 int bytesRead;
                 String line;
                 while ((bytesRead = file_reader.read(buffer, 0, BUFFER_SIZE)) != -1)
                      line = new String(buffer, 0, bytesRead);
                      pane.append(line);
                 }But this is gives me unacceptable response times for large files and runs out of Java Heap memory.
    2) I read in several places that I could load only small chunks of the file at a time and when the user scrolls upwards or downwards the next/previous chunk is loaded , to achieve this I am guessing extensive manipulation for the ScrollBar in the JScrollPane will be needed or adding an external JScrollBar perhaps? Can anyone provide sample code for that approach? (Putting in mind that I am writting code for an editor so I will be needing to interact via clicks and mouse wheel roatation and keyboard buttons and so on...)
    If anyone can help me, post sample code or point me to useful links that deal with this issue or with writting code for editors in general I would be very grateful.
    Thank you in advance.

    Hi,
    I'm replying to your question from another thread.
    To handle large files I used the new IO libary. I'm trying to remember off the top of my head but the classes involved were the RandomAccessFile, FileChannel and MappedByteBuffer. The MappedByteBuffer was the best way for me to read and write to the file.
    When opening the file I had to scan through the contents of the file using a swing worker thread and progress monitor. Whilst doing this I indexed the file into managable chunks. I also created a cache to further optimise file access.
    In all it worked really well and I was suprised by the performance of the new IO libraries. I remember loading 1GB files and whilst having to wait a few seconds to perform the indexing you wouldn't know that the data for the JList was being retrieved from a file whilst the application was running.
    Good Luck,
    Martin.

  • Regarding basic idea of SAP GUI

    Hi friends,
                   I am a fresher in sap family joined before 6 months. I would like to know about basic knowledge of SAP GUI especially its definition. When i searched in Google i didnt get apt information regarding it. So please help me to know what is SAP GUI and its basic.

    Hi,
    GUI is Graphical User Interface for SAP.
    A simple information may give you about SAP GUI.
    http://en.wikipedia.org/wiki/SAPgui
    ****Reward points if Helpful*****
    Regards,
    Ganesh

  • Learning swing gui by hand or gui builder?

    Hello,
    Which is a better way of start learning writing swing gui based apps? by hand or using gui builder?
    Do you know any useful web links? or do you consider buying books?
    Thanks.

    >>
    Hmm, the differences:
    1) The GUI builder app resizes correctly.-->>falseJust stating it is false doesn't make it so. I never have any issues with my GUI builder apps resizing correctly. I do have issues making my coded by hand apps resize correctly. Ignorance on my part? Possibly
    I used to use a GUI builder just for complicated layouts and use GridBagLayout for simple dialogs inside an app, but I find myself just using a GUI builder now. Just much quicker and much less hassle.
    As far as maintaining the code if you use the GUI builder for maintanence where is the issue?
    i have never seen a GUI builer that uses
    layoutmangers please point me to the one that you are
    using i would love to take a look
    secondly have you seen tried the little exersise you
    will be suprised at how complex the code is compared
    to the one done by hand!!!!IntelliJ's GUI builder appears to use a custom GridLayout manager, the code it generates appears pretty straightforward to me, doesn't seem overly complicated:
    private void $$$setupUI$$$() {
            mainPanel = new JPanel();
            mainPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));
            final JSplitPane splitPane1 = new JSplitPane();
            splitPane1.setContinuousLayout(true);
            splitPane1.setDividerLocation(142);
            mainPanel.add(splitPane1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(200, 200), null));
            fileListing = new JTree();
            splitPane1.setLeftComponent(fileListing);
            tabPane = new JTabbedPane();
            splitPane1.setRightComponent(tabPane);
            renameTab = new JPanel();
            renameTab.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 7, new Insets(0, 0, 0, 0), -1, -1));
            tabPane.addTab("Untitled", renameTab);
            final JLabel label1 = new JLabel();
            label1.setHorizontalAlignment(4);
            label1.setText("Current Filename");
            renameTab.add(label1, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null));
            imageScrollPane = new JScrollPane();
            imageScrollPane.setHorizontalScrollBarPolicy(30);
            imageScrollPane.setVerticalScrollBarPolicy(20);
            renameTab.add(imageScrollPane, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 7, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null));
            currentFilenameField = new JTextField();
            renameTab.add(currentFilenameField, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null));
            final JLabel label2 = new JLabel();
            label2.setText("New Filename");
            renameTab.add(label2, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null));
            newFilenameField = new JTextField();
            renameTab.add(newFilenameField, new com.intellij.uiDesigner.core.GridConstraints(1, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null));
            renameButton = new JButton();
            renameButton.setText("Rename");
            renameTab.add(renameButton, new com.intellij.uiDesigner.core.GridConstraints(1, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null));
            previousButton = new JButton();
            previousButton.setText("");
            renameTab.add(previousButton, new com.intellij.uiDesigner.core.GridConstraints(1, 5, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null));
            nextImageButton = new JButton();
            nextImageButton.setText("");
            renameTab.add(nextImageButton, new com.intellij.uiDesigner.core.GridConstraints(1, 6, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null));
            htmlGeneratorTab = new JPanel();
            tabPane.addTab("Untitled", htmlGeneratorTab);
        }

  • Swing GUI for Javadoc

    Hi everyone,
    I'm trying to learn some basic IO and Swing. My project is to make a Swing GUI for javadoc. It's supposed to run at least under W2K and XP.
    The Swing part is going fine, but I can't seem to get IO-part working.
    I tried working with the Runtime- and the Process-class, but I don't can't seem to execute javadoc or read any command-line output. Here's a sample of code that compiles ok, but doesn't do anything.
    try {
    Process p = Runtime.getRuntime().exec("javadoc");
    InputStream in = p.getInputStream();
    String s = in.toString();
    System.out.println(s);
    System.out.println();
    System.out.println(process.waitFor());
    System.out.println();
    System.out.println(process.exitValue());
    System.out.println();
    System.out.println(""+process);
    } catch (Exception e) {
    System.out.println("error");
    if anyone has any tips, suggestions or simple code samples, I would be very happy to hear from you.

    Alright, I figured out how to read the inputstream, but
    I still get an error:
    Windows 2000
    start
    <ERROR>
    javadoc: No packages or classes specified.
    and the program doesn't terminate for some reason.
    here's the new sourcecode:
    import java.io.*;
    public class JavaDocCommander {
         public static void main(String[] args) {
              System.out.println(System.getProperty("os.name"));
              System.out.println("start");
              new Test();
              System.out.println("slut");
    class Test{
         public Test(){
              try {           
    Runtime rt = Runtime.getRuntime();
    Process proc = rt.exec("javadoc");
    InputStream stderr = proc.getErrorStream();
    InputStreamReader isr = new InputStreamReader(stderr);
    BufferedReader br = new BufferedReader(isr);
    String line = null;
    System.out.println("<ERROR>");
    while ( (line = br.readLine()) != null)
    System.out.println(line);
    System.out.println("</ERROR>");
    int exitVal = proc.waitFor();
    System.out.println("Process exitValue: " + exitVal);
    } catch (Throwable t)
    t.printStackTrace();
              

  • Running a Java application from a Swing GUI

    Hi,
    I was wondering if there is a simple way to run a Java application from a GUI built with Swing. I would presume there would be, because the Swing GUI is a Java application itself, technically.
    So, I want a user to click a button on my GUI, and then have another Java application, which is in the same package with the same classpaths and stuff, run.
    Is there a simple way to do this? Do any tutorials exist on this? If someone could give me any advice, or even a simple "yes this is possible, and it is simple" or "this is possible, but difficult" or "no this is not possible" answer, I would appreciate it. If anyone needs more information, I'll be happy to provide it.
    Thanks,
    Dan

    I don't know if it is possible to run the main method from another Java app by simply calling it...
    But you could just copy and paste the stuff from your main method into a new static method called something like runDBQuery and have all the execution run from there.
    How does that sound? Is it possible?
    What I'm suggeting is:
    Original
    public class DBQuery{
    public static void methodA(){
    public static void doQuery(){
    methodA();
    public static void main(String[] args){
    // Your method calls
    //Your initializing
    doQuery();
    }Revised:
    public class DBQuery{
    public static void methodA(){
    public static void doQuery(){
    methodA();
    public static void doMyQuery(){
    // Your method calls
    //Your initializing
    doQuery();
    // No main needed!!
    //public static void main(String[] args){
    // Your method calls
    //doQuery();
    //}

  • (Youtube-) Video in a Swing GUI

    Hey everyone,
    I'm currently trying to play a video in my Swing GUI with JMF but I really can't get it to work.
    With the help of google I got this far:
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.media.CannotRealizeException;
    import javax.media.Manager;
    import javax.media.NoPlayerException;
    import javax.media.Player;
    import javax.swing.JFrame;
    public class MediaPanel extends JFrame {
        public MediaPanel() {
            setLayout(new BorderLayout()); // use a BorderLayout
            // Use lightweight components for Swing compatibility
            Manager.setHint(Manager.LIGHTWEIGHT_RENDERER, true);
            URL mediaURL = null;
            try {
                mediaURL = new URL("http://www.youtube.com/watch?v=Q7_Z_mQUBa8");
            } catch (MalformedURLException ex) {
                System.err.println(ex);
            try {
                // create a player to play the media specified in the URL
                Player mediaPlayer = Manager.createRealizedPlayer(mediaURL);
                // get the components for the video and the playback controls
                Component video = mediaPlayer.getVisualComponent();
                Component controls = mediaPlayer.getControlPanelComponent();
                if (video != null) {
                    add(video, BorderLayout.CENTER); // add video component
                if (controls != null) {
                    add(controls, BorderLayout.SOUTH); // add controls
                mediaPlayer.start(); // start playing the media clip
            } // end try
            catch (NoPlayerException noPlayerException) {
                System.err.println("No media player found");
            } // end catch
            catch (CannotRealizeException cannotRealizeException) {
                System.err.println("Could not realize media player");
            } // end catch
            catch (IOException iOException) {
                System.err.println("Error reading from the source");
            } // end catch
        } // end MediaPanel constructor
    }But all I get is errors:
    Warning: The URL may not exist. Please check URL
    No media player found
    Can you please please help me get this working? I would really appreciate a little walkthrough
    Best regards,
    Patrick
    Edited by: 954807 on Aug 24, 2012 6:52 AM

    Just use \ tags. People don't like to go to external sites.
    I really advise you to consider using JavaFX 2 here. Swing is old and not really supported anymore, JMF is also old and absolutely not supported anymore.                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • Connection failed on report builder 2.0

    Hi, i use report builder 2.0 connect to the server by using http://servername/reportserver, it came out an error Unable connect to the server that is specified in the URL, make sure http://servername/reportserver, make sure server is running, URL is

  • Can anyone make sense of this Kernel panic log I got?

    My computer has been acting up a lot as of late so I took it to the Apple Store (A local one, not a retail store) and the guy said the turnaround time was about 5 days, not including weekends. I decided to keep it over the weekend and reinstall OSX,

  • Disk Utility wont drag drives on Mac book Pro

    I am tring to back up may system drive, and i cant drag it to the source on disk utility, acctually i cant drag anything into it, while i have no problems on my dual g5, so i guess the problem is on the intel disk utility. any ideas?

  • How to transfer photo from i phone4s to computer?

    How to copy phot from iphone to computer ?

  • Apps wont download after upgrading ios 8

    No apps (other than the standard ones) will download to my iphone after the "upgrade" to ios 8.0.2 If I go to the app store to download previously purchased apps, it shows the cloud with the down arrow.  I tap that, it changes for a moment, and goes