RE: Running swing_client.jar from Network

2001-05-02 Thread Wathen, Dave
Yes, the project I work on executes the code (and the JRE) from network (NT Server) drives without issues. The only time you need to worry is when making a new release of software to the network drive. We ensure no one is using the application during this event. Regards Dave Wathen Goldman

HTML on JLabel

2001-05-02 Thread KC_Eilander
Hi, I was just trying to add multiple images to a jlabel... My thought was to just set the label as html text, and add an img tag for the extra image. The only problem is that each variation below: label=new JLabel (htmlimg src=\cup.gif\Hello, image); label=new JLabel (htmlimg

how to get *.gif files from jar file

2001-05-02 Thread Ravi Prakash
Hi, I am using applet and the classes are put in a jar file. In the jar file there are gif files. I have to display in the applet. i am using follwing syntax ImageIcon imageIcon = getImageIcon(cluster.gif); if (imageIcon != null) clusterImageJLabel.setIcon(imageIcon); I am not getting the

Re: how to get *.gif files from jar file

2001-05-02 Thread Ajit Bhingarkar
You need to use getResource() to get gifs .. Ravi Prakash wrote: Hi, I am using applet and the classes are put in a jar file. In the jar file there are gif files. I have to display in the applet. i am using follwing syntax ImageIcon imageIcon = getImageIcon(cluster.gif); if

RE: how to get *.gif files from jar file

2001-05-02 Thread Farwell, Paul
Try this: public static ImageIcon getImage(String imageKey) { ImageIcon img = null; URL imgURL = resource.getClass().getResource(imageKey); if (null == imgURL) throw new NullPointerException(Missing image for + imageKey); img = new

Anyone up for this Swing repaint challenge? (Please, I need your help)

2001-05-02 Thread Vella, John
I have a repaint problem that involves needing to manage the repaint of one component entirely from the repaint code of another component. For architectural reasons of my app, I have the following layout configuration(both components are just extended JPanels): __

RE: how to get *.gif files from jar file

2001-05-02 Thread Jose L. Rando Calvo
You can do this: ImageIcon imageIcon = new ImageIcon(new URL(getCodeBase(),"cluster.gif")); if the image is in a package ... ImageIcon imageIcon = new ImageIcon(new URL(getCodeBase(),"package/cluster.gif")); I hope this can help. :-)

JEditorPane

2001-05-02 Thread Romel Calero Ramos
Hi all. I did post a quetion before but, no body answered it yet. I need to get the components into a JEditorPane wich are created by the HTMLEditorKid while it parses an HTML file with some input tags. I mean it is like a browser that loads an html page with a form inside, so when those