Displaying JPG's in standalone-applications

Hy all!
Does somebody know where I need to save a JPG so that a standalone-application can load it?
I always get a NullPointerException when executing the following code:
public SpaceBallFrame() {
Graphics g = getGraphics();
Image gameOverPic = Toolkit.getDefaultToolkit ().getImage("gameover.jpg");
boolean b = g.drawImage(gameOverPic,50,100,this);
I tried all folders which made sense but it didn't work.
Thanks for help
Boni

Does somebody know where I need to save a JPG so that a standalone-application can load it?By using the following:
Image gameOverPic = Toolkit.getDefaultToolkit ().getImage("gameover.jpg");
The program assumes that the JPG file is in the same directory as your class file.
The reason your program doesn't work is probably because drawing an image is usually done in a paint method. Try something like this (where the gameOverPic is defined as a globally accessible object):
Image gameOverPic;
public SpaceBallFrame() {
gameOverPic = Toolkit.getDefaultToolkit ().getImage("gameover.jpg");
public void paint(Graphics g) {
g.drawImage(gameOverPic,50,100,this);
V.V.

Similar Messages

  • Display jpg file using ADF Application!!!!!!!!!!!

    Hi All,
    I am opeing a .tif image file kept at a remote location using HttpServletResponse object:
    response.setContentType("application/x");
    response.setHeader("Content-Disposition", "inline; filename=\""+fileName+"\"");
    once this has been done, InputStream(the input stream of the file obtained using new FileInputStream(fileobj)) is piped into an OutputStream using some function.
    using this function the .tif file gets opened in MS picture viewer, but only one file(not like when files are viewed on local machine where all differnent jpg's are viewed using the next button).
    Now what client wants is when there are multiple files kept at the location, all of them should be accessible using next button of the MS picture viewer.
    It is possible to do so?
    Any help???

    ok, i agree with that and was trying for the same. i.e was taking array of InputStream[] , OutputStream[] and ByteArrayOutputStream[]. Write input streams into ByteArrayOutputStreamOBJ, write this ByteArrayOutputStreamObj to OutputStreamobj(ByteArrayOutputStreamObj .writeTo(OutputStreamobj[i]);).
    This method when run in loop runs for the third time throws an exception that connection was closed by remote host.
    Any Suggestions ????

  • JMS Standalone Application

    I am Developing JMS Standalone Application And Using Sun App Server 8.1 The Following I Have Created
    1. META-INF/application-client.xml
    2. source/jms/SimpleQueueSender.java
    3.source/jms/SimpleQueueReceiver.java
    The Following Is The Code In application-client.xml
    <application-client>
            <display-name>Simple JMS Standalone Application </display-name>
            <resource-ref>
                    <description>Simple Queue SenderReceiver</description>
                    <res-ref-name>jms/MyQCF</res-ref-name>
                    <res-type>javax.jms.QueueConnectionFactory</res-type>
                    <res-auth>Container</res-auth>
            </resource-ref>
            <resource-env-ref>
                    <description>SQR</description>
                    <resource-env-ref-name>jms/MyQueue</resource-env-ref-name>
                    <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
            </resource-env-ref>
    </application-client>The Following Is The Code Used In SimpleQueueXXX(Either Sender Or Receiver )
    queueConnectionFactory = (QueueConnectionFactory)
                    jndiContext.lookup("java:comp/env/jms/MyQCF");
                queue = (Queue) jndiContext.lookup("java:comp/env/jms/MyQueue");when i run the the packaged jar file using appclient
    the following error is generated
    WARNING: ACC003: Application threw an exception.
    javax.naming.InvalidNameException: Real JNDI name cannot be empty for jms/MyQCF
    at com.sun.enterprise.naming.NamingManagerImpl.bindObjects(NamingManagerImpl.java:475)
    at com.sun.enterprise.appclient.AppContainer.preInvoke(AppContainer.java:134)
    at com.sun.enterprise.appclient.Main.<init>(Main.java:383)
    at com.sun.enterprise.appclient.Main.main(Main.java:99)
    Mar 9, 2006 7:16:40 PM com.sun.enterprise.appclient.Main <init>
    WARNING: ACC010: Make sure the server port is not disabled and that you are looking up a valid name
    Thanks In Advance , Please Help Me At The Earliest

    Yaa , I Have Resolved It By Writing sun-application-client.xml but now i am getting some another error , can look into this why does this come
    Mar 10, 2006 12:53:26 PM com.sun.enterprise.appclient.Main <init>
    WARNING: ACC003: Application threw an exception.
    java.lang.ClassNotFoundException:
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at com.sun.enterprise.appclient.Main.<init>(Main.java:388)
    at com.sun.enterprise.appclient.Main.main(Main.java:99)
    Thanks In Advance , Please Reply At The Earliest

  • Displaying Picture in a Java APPLICATION please help!!

    I have been trying to write a method that Displays a .jpg file when called. However I have not gotten far, every book I have tell you how to display pictures in an applet but not an application. I did find some code that is supposed to be for an application, but It does not compile right. Any help would be apprecidated!
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class PictureIt{
    public void makeImage() {
    //***Image Output Stream
    String imgFile
    = "d:\\temp\\TestImage.jpeg";
    out = new FileOutputStream(imgFile);
    BufferedImage image = null;
    image = (BufferedImage)createImage
    (panelJpeg.size.width, panelJpeg.size.height);
    Graphics g = image.getGraphics();
    panelJpeg.paintAll(g);
    }

    Displaying Picture in a Java APPLICATION please help!!
    Hope this helps.There is going to be two classes compile seperatly first class is what does the drawing
    here it is
    import javax.swing.*;
    import java.awt.*;
    public class draww extends JPanel {
    Image ball;
    int width1 = 100;
    int height1 = 100;
    public draww() {
    super();
    Toolkit kit = Toolkit.getDefaultToolkit();
    ball = kit.getImage("pic1.gif");
    public void paintComponent(Graphics comp) {
    Graphics2D comp2D = (Graphics2D) comp;
    comp2D.drawImage(ball, 20, 20, width1, height1, this);
    sound class is the container JFrame here it is
    import javax.swing.*;
    import java.awt.*;
    public class drawing extends JFrame {
    public drawing() {
    super("draw");
    setSize(400,400);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Container pane = getContentPane();
    draww d = new draww();
    pane.add(d);
    setContentPane(pane);
    setVisible(true);
    public static void main(String[] args) {
    drawing drawing1 = new drawing();
    PS Hope this helps and see you around

  • DAQmx drivers needed to calculate statistics in a standalone application ?

    Hi!
    My standalone application analyzes measured data and saves statistics into Access database. It uses Statistics express VI, among the others. It does not use any data acquisition library. I've made an installer to install it on my customer's computer. After installation I tried to run the application but an error occured (see below).
      Well, it works now (after few hours). But my opinion is that my solution is a little bit strange: I simply installed DAQmx drivers.
    1. Is this a bug ?
    2. How to explain my customer why does he need 1GB of hardware drivers ?
    Fortunately, It was not necessary to use any special procedure tu run Database Connectivity Toolset: see this link, for example
    Best regards ,
    Ljubo.
    P.S.: Developer Suite 8.6, Win XP Pro, DAQmx 8.8, MS Office 2003.

    Hi Dennis,
    let me repeat the whole story once again:
    About
    two years ago the same problem occured (with LabView 7.0 or 8.0, I
    don't know exactly). Our local NI representative happened to be present
    and we discussed the problem but we didn't find the solution. Instead
    of using Statistics Express VI I made my own subVIs and the problem was
    solved (and forgotten).
    I've already checked my
    customer's computer this morning and everything seems to be OK. DLL
    library lvanlys.dll is installed in "data" folder. 
    To eliminate unnecessary details I've created a new project (see the attachment, please).
    I
    installed the program on my colleague's PC (my colleague never used
    LabView in his life). The result is the same. You can see the error
    report in the second attachement.
    Then I've copied lvanlys.dll
    file to all folders where programs usually search libraries: Windows,
    Windows\system, Windows\system32 and Program Files\Mean4V. But program
    can't find the library NI_AALBase.lvlib.
    Obviously,
    installation of DAQmx drivers adds something which is missing in my
    build specification. I hope someone could explain what I'm doing wrong.
    With best regards, 
    Ljubo.
    Attachments:
    Mean4values.zip ‏50 KB
    Error_missing_subvi.jpg ‏62 KB

  • Change colours of BSP standalone application

    Hi all,
    I want to run e-recruiting (bsp or webdynpro) as standalone application and need to change the colours of the GUI elements. The header picture should also be changed.
    Where can I do the changes? Do I do it in the portal theme editor even if I don't use portal to display the web application??
    Thanks in advance
    Karsten

    Hi Karsten,
    you do not need portal to create or change themes and to use it for your application.
    There is a good documentation which explains it:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ccb6bcf4-0401-0010-e3bc-ec0ef03e13d1
    Regards,
    Frank

  • Standalone application questions

    Hi,
    Question 1:
    I have a data acquisition application using Labview. Four analog channels are recorded on HDD and displayed on waveform chart continuously.
    Development application runs fine but standalone application on DELL laptop has problems: waveform does not show proper Grids; sometimes vertical and horizontal grid lines are broken. There is no problem recording data but only problem is displaying waveform.
    The same standalone application used to run without any problem but after some minor modification, it behaves strange.
    Any suggestions to fix the waveform display problems will be greatly appreciated.
    Question 2:
    �VI Property > Customize Windows Appearance > Show abort button� unchecked will disappear ABORT
    button from VI. .After standalone application compilation and installation, the ABORT button was visible. How hide the ABORT button on the standalone application.
    Question 3:
    Can I replace Labview default RUN button with custom button, I want to hide Labview default RUN button and want to make a separate RUN button. Can I access property node or local variable of that RUN button?
    Thanks in advance,
    Kishor

    About question 1.
    I had some strange behaviour with charts and transparent backgrounds.
    Perhaps it's something like this...
    About question 2.
    Perhaps you have made a build script that has the properties set. After
    changing the VI, loading the build script might overwrite the VI settings.
    About question 3.
    You should modify the VI to wait for a button to be pressed (a while, 10 MS
    wait, and a button). Let the VI start automatically (run when opened). This
    has the same effect.
    Regards,
    Wiebe.
    "Jeremy Braden" wrote in message
    news:[email protected]..
    > 1. The VI may have been corrupted after your minor changes. Do you
    > have an old copy of the good code. You can also copy the block
    > diagram of th
    e bad VI to a new VI and build an executable from the new
    > VI. Also do you see the same behavior with the classic waveform
    > chart? What happens if you build a new LV executable with dummy
    > information going to the chart?
    > 2. The tests I ran showed that you can make the abort button
    > invisible with the steps you mentioned. Do you think that you may
    > have not saved your changes?
    > 3. You cannot replace the run arrow. Atleast not from a nice
    > integrated published solution sort of way. There are no properties
    > for the run arrow.

  • Modify logon page for Standalone Application

    Hi,
    I need to modify logon page for a standalone web dynpro application ( not in enterprise Portal).
    I only find documentations for change it in EP, but nothing about standalone application.
    Some ideas?
    Thanks
    Andrea

    Hi Andrea,
             you can modify the design of the WD appln using the properties that is listed for each UI elements.
             You can also change the layout of the root container Element properties to Matrix layout to satisfy ur kind of design.
            For displaying different lanuages in a dropdown box.
    1) select DropdownbyKey UI Element.
    2) set this to context attribute.
    3) Go to Dictionary -- Local dictionary -- simple type --create new simple type.
    4) In the datatype select the Enumeration tab and give the different text and values.(In ur case give ur different type of languages.)
    5) Go to WD appln. select the attribute that u hav created and change its type to the corresponding simple type.
    6) select dictionary simple type>Local dictionary>package that u hav declared-->inside that select ur simple type and execute it.
    Hope this one satisfies ur query.
    Regards,
    Nagarajan.

  • Flash player 11.6 crashes when displaying jpgs

    I run a web application that uses Flash to display a plan of a magazine. In one mode, the user can choose to display jpgs thumbnails of each magazine page in their page holder. When this feature is turned on Flash crashes as it tries to display the jpgs.
    Flash has been stable for 6 years with this application. The problem has occured with 11.6. I have uninstalled 11.6, reinstalled 11.5 and the problem goes away. It happens in all browsers. In Explorer and Firefox the screen goes white. In Chrome the browser freezes.
    Any ideas?

    I run a web application that uses Flash to display a plan of a magazine. In one mode, the user can choose to display jpgs thumbnails of each magazine page in their page holder. When this feature is turned on Flash crashes as it tries to display the jpgs.
    Flash has been stable for 6 years with this application. The problem has occured with 11.6. I have uninstalled 11.6, reinstalled 11.5 and the problem goes away. It happens in all browsers. In Explorer and Firefox the screen goes white. In Chrome the browser freezes.
    Any ideas?

  • Front Row 2 - Why a standalone application?

    Perhaps this thread can consolidate some of the various other complaints against Front Row 2 that seem to stem from the same issue that I, at least, perceive as being a big part of the problem: that FR2 is a standalone application in Leopard rather than a front-end interface for media-handling applications in the background, as it was in Tiger.
    So I'm just curious and would like to hear from those who may be more "in the know" why Apple made this move? Why is Front Row "better" as a standalone application? When in Front Row in Tiger, if you watched a movie, QuickTime would be handling it in the background. If you listened to music, it was iTunes that was handling it. If you watched a slideshow, iPhoto was responsible. If you were watching a DVD, DVD Player was doing the work. In Leopard, however, Front Row handles all these media files/types by itself, and I've only seen that as a negative so far.
    For example: in Tiger, a custom slideshow I had created in iPhoto would be displayed exactly as I had specified (including custom timings, photo framing, etc.) when viewing that slideshow in Front Row. In Leopard, not all those settings are carried over and the slideshow doesn't display as I've set it up (although it continues to display perfectly in iPhoto). In Tiger, all my album artwork in iTunes was displayed correctly in Front Row. In Leopard, the artwork of several albums will not display even though the album art is visible in iTunes (and via CoverFlow and QuickLook in Finder). And, of course, there's the issue that many report that music playing in FR2 will stop if FR2 is exited, or even when you just exit the music section of FR2. Why the disconnect? By having Front Row be a standalone application, it just opens the door for issues where the files/media isn't being correctly handed over from its proper application to what we see in Front Row.
    While I do mostly love the new interface of Front Row (although I miss the desktop fading into the background effect upon launch of FR2), I've seen it take a pretty significant performance hit. Some HD movie trailers that played flawlessly in Front Row on Tiger are sluggish and choppy on FR2 on the same hardware. These same trailers play just fine by themselves in QuickTime, however. Tiger's Front Row properly showed previews for all my slideshows and movies almost instantly, while FR2 takes quite awhile to create previews for everything - and isn't able to create previews at all for some files (Apple's own HD movie trailers, for example).
    Since FR2 is trying to handle all the media and filetypes by itself, rather than handing off the tasks to the proper applications in the background that can handle them more efficiently, it seems to become a bloated system hog. After spending about 15 minutes in FR2 going through various media, I noticed it seemed to slow down more and more. I exited to check Activity Monitor, and even though Front Row wasn't even running anymore, it was using almost 1GB of RAM. Evidently, all those previews it has to create (starting over each time you get into FR2, I might add) really start to take a toll over time with heavy use. For someone with a HTPC-Mac who wasn't accustomed to ever having to exit Front Row in Tiger - much less actually restart the machine because of it - it seems like a horrible step backwards.
    So again, I'm hoping someone can offer some insights into why Front Row was changed to a standalone application instead of being further enhanced as a front-end UI for the proper media applications running in the background. I understand why they wanted to change the interface to be AppleTV-like, but I don't understand the loss of features and the backwards step in performance.

    That's a benefit to the PPC users, of course, but I can't imagine that was a major influence on Apple's decision to do it. Would they really remove features and hinder overall performance just to cater to old hardware? That doesn't seem very Apple-like. Nor does it make much sense to handicap Front Row for everyone who does have a capable Intel Mac just so others can run it on old PPC machines (which likely can't get the best performance out of Front Row anyway, given the way it gobbles up system resources by bearing the burden of dealing with so many forms of media/files by itself all at once).
    Maybe the bigger picture - which is harder to see now only a few days after the launch of Leopard - involves better long-term development of Front Row features that will be easier to implement with it being a standalone application rather than a front-end UI. So while it will be great when/if the performance is improved and new features are added, it's little consolation to those who upgraded to Leopard (and I do love most of the rest of 10.5, really) but think we took a major step back with Front Row.
    Front Row isn't a big deal to those who use it infrequently, but for those who were somewhat dependent on it as a vital component of HTPC, these "little" issues add up and are pretty frustrating.

  • Standalone application samples

    Where can I get standalone application samples (not applets) of Java programs?
    I don't need web servers or word processors, but simple small programs such as games for example...
    thank you.

    Copied the following app from http://java.sun.com/docs/books/tutorial/uiswing/
    * CelsiusConverter.java is a 1.4 application that
    * demonstrates the use of JButton, JTextField and
    * JLabel.  It requires no other files.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class CelsiusConverter implements ActionListener {
        JFrame converterFrame;
        JPanel converterPanel;
        JTextField tempCelsius;
        JLabel celsiusLabel, fahrenheitLabel;
        JButton convertTemp;
        public CelsiusConverter() {
            //Create and set up the window.
            converterFrame = new JFrame("Convert Celsius to Fahrenheit");
            converterFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            converterFrame.setSize(new Dimension(120, 40));
            //Create and set up the panel.
            converterPanel = new JPanel(new GridLayout(2, 2));
            //Add the widgets.
            addWidgets();
            //Set the default button.
            converterFrame.getRootPane().setDefaultButton(convertTemp);
            //Add the panel to the window.
            converterFrame.getContentPane().add(converterPanel, BorderLayout.CENTER);
            //Display the window.
            converterFrame.pack();
            converterFrame.setVisible(true);
         * Create and add the widgets.
        private void addWidgets() {
            //Create widgets.
            tempCelsius = new JTextField(2);
            celsiusLabel = new JLabel("Celsius", SwingConstants.LEFT);
            convertTemp = new JButton("Convert");
            fahrenheitLabel = new JLabel("Fahrenheit", SwingConstants.LEFT);
            //Listen to events from the Convert button.
            convertTemp.addActionListener(this);
            //Add the widgets to the container.
            converterPanel.add(tempCelsius);
            converterPanel.add(celsiusLabel);
            converterPanel.add(convertTemp);
            converterPanel.add(fahrenheitLabel);
            celsiusLabel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
            fahrenheitLabel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
        public void actionPerformed(ActionEvent event) {
            //Parse degrees Celsius as a double and convert to Fahrenheit.
            int tempFahr = (int)((Double.parseDouble(tempCelsius.getText()))
                                 * 1.8 + 32);
            fahrenheitLabel.setText(tempFahr + " Fahrenheit");
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
        private static void createAndShowGUI() {
            //Make sure we have nice window decorations.
            JFrame.setDefaultLookAndFeelDecorated(true);
            CelsiusConverter converter = new CelsiusConverter();
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }Good luck.

  • Photo name .jpg may contain an application alert

    When I attach a digital photo edited by Photoshop Element 2.0 to an email to send out, and double click on the embedded photo in the email to see it at full size, I get an alert that says:
    "CIMG6687A.jpg" may contain an application. The safety of this file cannot be determined. Are you sure you want to open "CIMG6687A.jpg"?
    CIMG6687A.jpg is a Photoshop-edited photo that I attached to the email. It shows up fine in the email in the reduced size, and I can drag the embedded photo to the desktop, double click it there, and Preview opens it at full size without any similar warning. What is going on here?
    Also, like another poster, I frequently have problems with my friends not being able to open my photo attachments on their PC's. Saving to disk sometimes works, but not always. This seems to be more of a problem with the Photoshop edited files, but it happens with unedited photos as well. I thought JPG was a universal format recognized on all platforms...
    TIA!
    Drake

    The particular photos I have had problems with are those taken by my Casio Exilim (EX-S3) digital camera, and subsequently modified by Photoshop Elements 2.0. Not every Photoshop photo is so affected. I have not been able to determine if the nature of the modification (cropping, color balancing, brightness & contrast adjustment, etc.) is related to the false alarm security alert or not. I am still experimenting with that. And again, I only get the alert when expanding them in the iMac Mail app, not when I open them using Preview. And yet I know the Mac OS checks to see if data files (.txt, .jpg, .mp3, .tif, etc.) contain hidden executables and warns you of that on launch. So I don't know why the problem arises only in the Mail app.
    On a more general matter. I am unclear how a jpg can be modified to execute code as noted by Kurt above. I know this is a problem, but from my 30 years of writing code I always thought there was a clear distinction between applications and data files. The latter could not be executed as code, just read. So when a PC opens a jpg file, presumably the application doing the opening is the code that is executing, and the bytes read from the file are used to display the image. Even if virus code is riding on back of the jpg, how does it ever get executed? (I am not talking about exe files that have had their extensions changed to .jpg to fool people -- I am talking about actual image files that may have had additional virus code appended to (or embedded in) it. How does that code ever get executed?
    The closest thing I can think of to this problem is a self-extracting archive. In that case the data and extraction code are merged into one file, so that the recipient can extract the data files without having to own the extraction software. But in this case, the merge is intentional. (Although, that very fact makes downloading such files from the internet very hazardous.) But a jpg file was never intended to be executable in any way, right? So any application designed to read it, would not be using the read data as executable instructions. So just how does a virus in a jpg file ever infect a PC?
    Any clarification is appreciated!

  • Creating desktop shortcut of standalone application

    Hey...
    How can I create a desktop shortcut automaically after the installations of my standalone application gets complete?
    Solved!
    Go to Solution.

    Here
    Kudos are always welcome if you got solution to some extent.
    I need my difficulties because they are necessary to enjoy my success.
    --Ranjeet
    Attachments:
    Shortcut.jpg ‏206 KB

  • How to use JDBC Connection Pools in a standalone application?

    Hi, there,
    I have a question about how to use JDBC Connection Pools in an application. I know well about connection pool itself, but I am not quite sure how to keep the pool management object alive all the time to avoid being destroyed by garbage collection.
    for example, at the website: http://www.developer.com/java/other/article.php/626291, there is a simple connection pool implementation. there are three classes:JDBCConnection, the application's gateway to the database; JDBCConnectionImpl, the real class/object to provide connection; and JDBCPool, the management class to manage connection pool composed by JDBCConnectionImpl. JDBCPool is designed by Singleton pattern to make sure only one instance. supposing there is only one client to use connection for many times, I guess it's ok because this client first needs instantiate JDBCPool and JDBCConnectionImpl and then will hold the reference to JDBCPool all the time. but how about many clients want to use this JDBCPool? supposing client1 finishes using JDBCPool and quits, then JDBCPool will be destroyed by garbage collection since there is no reference to it, also all the connections of JDBCConnectionImpl in this pool will be destroyed too. that means the next client needs recreate pool and connections! so my question is that if there is a way to keep pool management instance alive all the time to provide connection to any client at any time. I guess maybe I can set the pool management class as daemon thread to solve this problem, but I am not quite sure. besides, there is some other problems about daemon thread, for example, how to make sure there is only one daemon instance? how to quit it gracefully? because once the whole application quits, the daemon thread also quits by force. in that case, all the connections in the pool won't get chance to close.
    I know there is another solution by JNDI if we develop servlet application. Tomcat provides an easy way to setup JNDI database pooling source that is available to JSP and Servlet. but how about a standalone application? I mean there is no JNDI service provider. it seems a good solution to combine Commons DBCP with JNID or Apache's Naming (http://jakarta.apache.org/commons/dbcp/index.html). but still, I don't know how to keep pool management instance alive all the time. once we create a JNDI enviroment or naming, if it will save in the memory automatically all the time? or we must implement it as a daemon thread?
    any hint will be great apprieciated!
    Sam

    To my knoledge the pool management instance stays alive as long as the pool is alive. What you have to figure out is how to keep a reference to it if you need to later access it.

  • Looking for a standalone application/system menu

    Most (all?)  desktop environments features some kind of application menu in the panel. But for the people running more lightweight environments (like just a tiled wm) have no reason to have an extra panel around just for the menu.
    I know about application launchers, such as launchy and gmrun, but the thing I'm looking for is something that could give me a list of all "bigger" programs installed, grouped by category. Because, simply, I can never remember all stuff I've installed over the years.
    So I'm thinking: there must be someone out there that has developed a standalone application menu?
    Either the program could just scan the "/usr/share/applications" direcotry, or one could try to extract the menu part from a panel program, such as lxpanel?

    Hey, adeskmenu seem to be exactly what I'm looking for! Thanks a lot! :-)
    (now just need to find out why the aur version crashes... no problem, though. seems to be other versions around that works)

Maybe you are looking for