Application Icon 1 « Development « Java Swing Q&A





1. What's the best way to add a self-update feature to a Java Swing application?    stackoverflow.com

I'm trying to figure out a way to add a self-update feature to a Java/Swing application I'm working on. Basically I've got a bunch of jar files with extra functionality to be ...

2. Do I have to explicitly call System.exit() in a Webstart application?    stackoverflow.com

Recently I converted a Swing application to Webstart. The process was pretty straightforward, but I found that after I close all windows, my application's JVM did not terminate. The thread dump ...

3. How to close a java swing application from the code    stackoverflow.com

What is the proper way to terminate a Swing application from the code, and what are the pitfalls? I'd tried to close my application automatically after a timer fires. But just calling ...

4. Embedding an application inside another application    stackoverflow.com

I'm sure some of you noticed that if you have Acrobat Reader ( or any other pdf viewer ) , and open a pdf in Firefox , you will see it ...

5. Where are Swing applications used?    stackoverflow.com

Are Swing applications really used nowadays? I don't find a place where they are used. Is it okay to skip the AWT and Swing package (I learned a bit of the ...

6. can I build swing applications on eclipse?    stackoverflow.com

I used to work on netbeans to build Java applications but now: i am using eclipse. I was was wondering if there a a free good plug-in to help me with swing ...

7. How can I host a Java Swing component in a .NET application    stackoverflow.com

I have some Java user interface controls that I want to host in my .NET application as I can't afford to rewrite them. How can I do that? Do I need ...

8. How to make a Swing application touchable?    stackoverflow.com

We developed a Swing GUI system running on PC, and the boss wants it to run on a special tablet PC too. Does anyone know what else we can do to ...





10. j2me SDK3 for AWT/Swing application    stackoverflow.com

I try to development an embedded application with Eclipse + J2me SDK3 + CDC. When I am trying to create a Frame or JFrame, there is an error says "Could not read ...

11. How the Swing Hello World application works?    stackoverflow.com

I am trying to figure out how the Swing based Hello World application works. This is the code I have:

import java.awt.*;
import javax.swing.*;


public class HelloWorldSwing extends JFrame {

     ...

12. Making a app show inside a GUI in Java    stackoverflow.com

I have one problem I've been dealing with for this week. You see, I'm new to Java, so that's probably it... Anyways, I've started a project out of pure curiosity. I had ...

13. How to maximize java swing application    stackoverflow.com

I have created a login page using java swing. and i created jar for the application. Now when I run the jar then my login page is displayed then i minimize ...

14. How to get Java swing application to respect OS DPI settings    stackoverflow.com

Is there a way to set DPI in swing ? For the whole application ? And if there is how do I set it to the value of system DPI ? I ...

15. Eclipse or Netbeans for Swing based application?    stackoverflow.com

My next university project is going to be Java based. We will have to develop this with Swing and I was wondering what's the common preference for that? A quick glimpse through ...

16. Prevent to close Java swing Application    stackoverflow.com

How to prevent to close Java swing Application, when user clicks on close button?





17. How can I integrate an external word processing application with a Java Swing app?    stackoverflow.com

I need some genius advice on this one. I have a Java Swing application that needs to launch a word processor in order to allow the user to complete some work, and ...

18. Swing removed from JDK?    stackoverflow.com

"JSR-296 (Swing Application Framework) is no longer developed and will not become part of the offical Java Development Kit as was originally planned. You can still use the Swing Application Framework ...

19. Spy++ for Java Swing applications    stackoverflow.com

Is there an equivalent for Spy++ for java swing applications? I work with a third party application that contains a huge number of screens that get invoked via a reflection based mechanism. Whenever ...

20. open source swing based application that employs good practices    stackoverflow.com

I'm trying to learn swing and I was thinking you guys may know a really good swing based open source application that I could study and inspire from. I'm looking for ...

21. How do you turn on and off a monitor from within a Java application?    stackoverflow.com

How do you turn on and off a monitor from within a Java application? In case you're wondering why, this is a kiosk style application where it would be great to turn ...

22. Swing Application Analyzer    stackoverflow.com

I believe an application exists that lets you visually analyze your swing application, I've used it before but I can't remember the name. From what I remember, you launch your app from ...

23. Eclipse RCP application without Eclipse GUI    stackoverflow.com

I'm working on a swing application. I don't want to migrate it to SWT, but i'd like to use some benefits of Eclipse RCP application. Especially, i want to use the ...

24. What's a good example of a Java Swing application?    stackoverflow.com

I'm learning Java at my university, but unfortunately only the language and not really the framework. I'm interested in writing some Java applications in Swing. What are some projects that use a ...

25. Java Swing close ONLY one application    stackoverflow.com

Hi all: I have a Java Swing App. There is a button allow user to create open up a new window of the application. I use System.Exit(0) when user decides to close ...

26. Minor Refactoring in Java Swing application causes huge slowdown    stackoverflow.com

I've been tasked with doing refactoring to a Java Swing application we have here that's pretty crufty. My job is to clean up the code and make it more dynamic as ...

27. JVM not shutting down after swing application exits    stackoverflow.com

I have a swing application with an exit button that calls a method which invokes System.exit(0); but the JVM doesn't shut down for some reason. Does anyone know what could ...

28. What are the alternatives to auto-update an Java Swing application?    stackoverflow.com

I have developed a Java Swing application, and it will be installed on multiple clients in different locations. The application will be installed manually by me. But I would like to ...

29. How to Build a Swing GUI Builder kind of Application    stackoverflow.com

I want to develop an application like Swing GUI Builder where drag and drop of contents over the workspace will be possible. How to achieve this? Is there any reference available.

30. Is it possible to export a branded an Swing Eclipse OSGi Application    stackoverflow.com

I have some bundles, that are independent of SWT and eclipse framework. I would like to use the Eclipse RCP just to export the equinox framework. Starting equinox, I would like to ...

31. Using GUI for existing J2ME application    stackoverflow.com

I am a newbie to developing GUI for J2ME applications. I have developed one using Netbeans IDE with basic UI,but I would like to develop the UI of my application for making ...

32. Cleanup before exiting Java application    stackoverflow.com

I'm writing a small Java application using Swing. The application also has a networking component. I want to run some code before exiting(close channels, keys, etc).Is there a way to do this, without ...

33. User's authorization in Java Swing application    stackoverflow.com

I'm new to programming,now I'm writing Java Swing application. One of the main tasks is to provide user's authorization (admin, unregistered/registered user). I don't now the best way to ...

34. Persisting object value in Java Swing application    stackoverflow.com

I have a swing UI having two buttons : 1. Loading database values to Hashmap 2. Comparing input values to database values. Previously both the operations were done using the same ...

35. Run Swing Application in VMWare Ubunto getting HeadlessException    stackoverflow.com

I'm running an application that already worked on Linux CentOS 5. Now I'm trying to run in Windows Vista, in which I have a VMWare installation to test my application on ...

36. Qtip-like bubbles in a Java Swing application    stackoverflow.com

I'm looking for something like Qtip (http://craigsworks.com/projects/qtip/) for my Java Swing application.

37. swing and jogl usage in a windowed application    stackoverflow.com

I have a problem solving a problem concerning jogl and swing. i want to use jogl whit swing components but it doesn't refresh all the time. how can i repaint, refresh ...

38. Understanding the Generic type parameters of TaskListener    stackoverflow.com

I'm currently working on refactoring some old code and I found a snippet where I don't understand how to properly use Generics for the Swing Application Framework class TaskListener.Adapter. This is the ...

39. I want to start Java Stand alone(Swing) application without dos prompt to open?    stackoverflow.com

I want to run a Java Stand Alone application(Swing) without the command prompt window to open. How to achieve it? Another question is i want my login screen on the top of an Background ...

40. Java Swing application lifecycle problem    stackoverflow.com

I have a Java application which is used to start a Swing user interface. The interface is a class with an encapsulated JFrame instance. The problem is that the application allocates ...

41. What methods are available to expose Swing applications remotely w/ least latency?    stackoverflow.com

Comparatively, what is the best method to release a Swing application currently packaged as an JApplet launching a JFrame from a shell script locally, and an html page remotely, to reduce ...

42. GUI in Java for an Ocaml application    stackoverflow.com

I m developing a GUI (in Java) for an Ocaml application. Whats the best way to communicate the two application. Cheers.

43. How can I make a suggestion List in my Autocomplete application?    stackoverflow.com

I am making an autocomplete application and the list of my words are coming from my database. I have a textfield and now I want to make a suggestion list that ...

44. How to track application/JVM idleness    stackoverflow.com

Is it feasible to implement some util method to suspend test (current thread) execution until application becomes idle?
Idle means:
1. there were no GUI events added to event queue for some period ...

45. Tidying up when closing Swing application    stackoverflow.com

Not really that familiar with Swing, and am writing a client-server UDP chat application. Everything is working fine, except I would like my clients to send a notification to the server ...

46. How to create Heat map for swing applications?    stackoverflow.com

I'm trying to build a tool that will locate a component on a Swing application (eg a button or text field) and 'highlight it'. i was thinking about using the idea ...

47. Using SwingEventMonitor to monitor other applications?    stackoverflow.com

How do I use SwingEventMonitor to monitor mouse events in applications running in other JVMs? The demo code I have can monitor mouse clicks in applications running within its own JVM, ...

48. swing application issue in authentication using javax.mail.authenticator    stackoverflow.com

I am developing an swing application for sending the mail using authentication. The Issue I am facing is when i enter wrong username and password it is giving AuthenticationException after that when ...

49. open source swing applications    stackoverflow.com

I am a student currently doing my thesis and I would like to have access to open source software, however they need to have a Swing GUI. It would be great ...

50. Java Swing Application Reload?    bytes.com

The if statement is if the JOptionPane.NO_OPTION is selected, the system will exit. BUT, there is no statement for the boolean value of true/false for the option selected.

51. My imagePanel works fine in a simple swing application and not in a platform application?    forums.netbeans.org

Hi I developed a simple panel which can show an image, here is the code for this panel and a simple main method to test it. import java.awt.*; import java.awt.image.BufferedImage; import ...

52. My imagePanel works fine in a simple swing application and not in a platform application?    forums.netbeans.org

Thank you for your help. those FAQ look to be very useful. I can not use ImageUtilities because in fact I need to load images from file that my users select ...

53. My imagePanel works fine in a simple swing application and not in a platform application?    forums.netbeans.org

Quote: When I run this sample code it works fine and shows the image and it scales the image really well. When I am trying to use it in a TopComponent, ...

54. Java Swing CRUD application    forums.netbeans.org

Hello, I am using the Matisse CRUD database project, but I want the users to not be able to modify data except through 2 customized actions. My actions are working fine, ...

55. Swing application    forums.netbeans.org

Swing application NetBeans Forums -> NetBeans Users View previous topic :: View next topic ...

56. How to use org.jdesktop.application.Application to access GUI components    forums.netbeans.org

I created a background action in the GUI builder. NB created a private class extending org.jdesktop.application.Task with a constructor accepting an org.jdesktop.application.Application. I would like to move the class to ...

57. GUI automation on Netbeans Platform Application    forums.netbeans.org

I'm not sure exactly what you mean by "GUI automation" but if you simply mean scripting user interface interaction as a user would perform manually, then that seems to be the ...

58. CDC Application with Swing    forums.netbeans.org

Posted: Mon Feb 22, 2010 6:32 pm Post subject: CDC Application with Swing Hello, I am working on a CDC application, with Emulator platform - CDC Java(TM) Platform ...

59. [platform-dev] How to using StatusDisplayer in Swing Application?    forums.netbeans.org

Hallo, i found some notes using StatusDisplayer ... They say i must import UI Utilities API. But in my environment i can't found a library named so. I'm working with netbeans ...

60. GUI application problem    forums.netbeans.org

i use the drag and drop feature of neatbeans and im using java. i had a little problem about that because when i made the GUI in netbeans, the components are ...

62. Porting a swing application to net beans platform    forums.netbeans.org

I'm tryin to create a netbeans module and have ported my swing application to it by transforming the JFrame to JInternalFrame on my Window Topcomponent. Is there a better way? The module runs fine. However when I add it to a net beans platform application, I get a java.lang.AssertionErorr which i assume due to error while creating Topcomponent instance. I tried ...

63. Porting a swing application to net beans platform    forums.netbeans.org

I'm tryin to create a netbeans module and have ported my swing application to it by transforming the JFrame to JInternalFrame on my Window Topcomponent. Is there a better way? The module runs fine. However when I add it to a net beans platform application, I get a java.lang.AssertionErorr which i assume due to error while creating Topcomponent instance. I tried ...

64. connecting to derby in java swing application    forums.netbeans.org

netbeans:6.5.1 derby10.7.1.1 String urlstr = "jdbc:derby://localhost:1527/ACCOUNTS_DB;user=DEV;password=MOM"; con = DriverManager.getConnection(urlstr); Syntax error: Encountered ";" at line 1, column 40. org.apache.derby.client.am.SqlException: Syntax error: Encountered ";" at line 1, column 40. how do I connect to database. please help thanks

65. Problem in creating jnlp of java swing application in Netbeans 6.9.1    forums.netbeans.org

hii I am trying to create a jnlp file. I am using multiple jar in my project(Library). I have created a single jar of my application by editing build.xml (package-for-store). now I am trying to create a jnlp file of this single jar. but it is throwing an error. actually when I click on Run Target - others - package-for-store then ...

66. Swing application and webstart    forums.netbeans.org

View previous topic :: View next topic Author Message mortoza Joined: 03 Jul 2011 Posts: 3 Location: Singapore Posted: Sun Jul 03, 2011 12:28 pm Post subject: Swing application and webstart Hi, I have a software on swing, running fine, I want to run on the web using java webstart technology. Can anybody help me resolving ...

67. NetBeans 7.1 Swing Application Support discontinued    forums.netbeans.org

Hi, I just installed NB 7.1 Beta, and tried to open one of our many Swing Application Framework-based applications, just to be greeted with a message, that this is not supported any longer in NetBeans 7.1 and I am supposed to stay on NetBeans 7.0. Which leaves me without the long awaited (at least 10 years or so...) import crunching and ...

68. Java Application & Registry    coderanch.com

69. GUI timeout in Java client application    coderanch.com

We like to implement a timeout in our Java client application (using JDK 1.1.8 and Swing 1.1.1) connecting to servlets on the SilverStream Application server. The application consists of an input screen and depending on the request, an output screen. The user could expand/collapse the trees in the output screen or perform other requests on the input screen. If he is ...

70. making an application as as .exe    coderanch.com

71. Practical Swing Applications    coderanch.com

No doubt Swing is a powerful tool for creating rich GUI but I do not see much of it being put to use for practical real word applications .Does anyone here have real world experience in using Swing for their projects .If so kindly illustrate the extent to which use used Swing for your projects . ------------------ Krishna

72. Resetting a Swing Application    coderanch.com

I was wondering if I could reset a swing application without needing to close the application itself? Basically, I want to clear all the objects on the screen. I plan on just putting a button that would clear all the objects but I don't know what the code might look like. Any help would be greatly appreciated. Ken

73. how to deploy java application    coderanch.com

I also had one question related? I made my package which contains both client side and server side code. Client side code besides using net also uses some interface of package. Can I simply compile the client side code and place it in client m/c in arbitrary directory and give classpath of package in client m/c to do search for interface. ...

75. Swing Applications - Where ?    coderanch.com

Dear Friends No doubt Swing is a very powerful tool to create sophisticated GUI Interfaces in a very imple manner and that it has a very rich functionality and API Support .However the problem with Swing applications is that they are relatively slow and hence they are not very much welcome in areas where speed is the main criteria rather than ...

76. Skins for java application    coderanch.com

77. Erratic Behaviour of this stand Alone application    coderanch.com

Hi Everybody, recently I have made one program which works on net package. It takes a object stream from one servlet ... process it out...and writes to another server using data streams..after reading the response from this server it writes back the data to the servlet. In between it interacts with database and do some processing.. This is a continuous thread. ...

78. How to stop application outside?    coderanch.com

79. How to make an application accessable from the net    coderanch.com

Hello, Am working on a java aplication. I've made the java appication on my computer. I am using JCreatorLE to compile my java code. There for once I compile my code I can run it. My application has a GUI wheich the user can control the whole program. However I need my program accesabel from the net. Hence I need my ...

80. cool java swing application    coderanch.com

The toolbar is a custom component... probably built using buttons connected to Panels that are setVisible( true/false ) when the button is pressed... As for setting the Icon of a JDesktop, here is some code that I have that does the same thing... import java.awt.Dimension; import java.awt.Graphics; import java.awt.Insets; import javax.swing.Icon; import javax.swing.JLabel; public class DesktopBackground extends JLabel { protected Icon ...

81. Swing application on mac os 9    coderanch.com

82. Opening External Application    coderanch.com

83. sending attachmt. & mail from application    coderanch.com

Hi Guys, I have tried for attaching the attachment to my mail along with the message but i could not be able to from standalone application. I am using JavaMail for this. I am struck at how to attach mail to message, how to get the refernece of attachement to that PART.ATTACHMENT Object. Can anybody tell me the solution for this. ...

84. General Application Help    coderanch.com

Hi, I have a question that I think has a very simple answer, forgive my ignorance if it is a dumb question. I am currently attempting my first set of Swing applications, I am moving to swing from a servlet background. I have written small swing applications before but I am about to start a larger scale project and I need ...

85. Simple Java Application    coderanch.com

86. Question about a simple GUI application    coderanch.com

Thank you, Brian But it brings another flaw, only one line can be diaplayed. My original idea is to display all the lines until the number get to the limit. I use Panel instead, and overriding update method, only call paint in update, it seems well. But how to deal with swing in such requirment? Thanks again.

87. java application using swing    coderanch.com

hello, I've been learning Java for a few months after studing c++ for about 2 years. Below is a program I am working on. I know it is kinda long and really messy. I'm having some problems with certain things, such as were I should put certain code, and what the standard style is. The code gets a compile error at ...

88. Distributing Swing Application    coderanch.com

We have written a Stand alone swing application with Hypersonic as the database. Now we would like to distribute this swing app. The process is as below: 1) Post the swing exe or jar in a website. 2) User down loads and install the application. ( We could use Java Web start) for down loading the latest jar/exe. The area we ...

89. Any serious Java GUI applications?    coderanch.com

hi, Yes it is correct that the Java Windows based Application are much heavier and slower than that of VB and Delphi. Sun had developed AWT components in their 1.1 version of jdk. Those AWT components are designed in other languages and use native methods a lot. In the newer version of jdk, they have developed a more efficient version of ...

90. A Complete Example Swing Application    coderanch.com

93. why my application get delayed when maximized ?    coderanch.com

I have developed a full screen application in swing . It has backgroud image. When i minimized the application and keep it in minimized state for a long time and then maximized, Application takes long time to display its all containts till that time It shows empty gray background. I am using windows 98se. How do i tackle the problem ? ...

94. Application slowing down    coderanch.com

My application runs fine for about 1-2 hours and then gradually it slows down. I have a jtable which displays records and which dynamically inserts, updates and deletes rows. There are two columns which display timer value. The problem is in displaying the timer. It slows down gradually and after 5-6 hours, it stops updating. How can I rectify this problem? ...

95. Back Forward in java application    coderanch.com

I'm also not sure what you're after, but copy/compile/run this to see the JPanels changing. import javax.swing.*; import java.awt.*; import java.awt.event.*; class BackForward extends JFrame implements ActionListener { private static Container frame; private static JPanel contentPrevious,contentCurrent,contentNext,upper,lower; private static JButton backButton, forwardButton; private static int whereAmI; public BackForward() { super("BackForward"); setSize(300,300); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame = getContentPane(); frame.setLayout(new BorderLayout()); upper = new JPanel(); contentPrevious ...

96. How to build Messaging function in Swing application?    coderanch.com

My swing application uses JDBC to access backend Oracle9i database. Different clients within the same intranet have seperate excutable in their local machine. I want to build a function that enables clients to send messages to each other. The messages should be like emails, i.e., they also can be CCed to multiple recipients, be saved in inbox and outbox etc. etc..All ...

97. Persisting data from GUI application    coderanch.com

Hello all, I am new to GUI/Swing and am creating a simple application in Swing. As a part of my application, I want to persist the data, entered from the application. Currently I am using text file to save data using delimiters. I do not want to use any database, like oracle, mysql, ms access etc, in order to keep it ...

98. Build large Swing application?    coderanch.com

Hi, I need to build a large Swing application. I have read some tutorial books and articles, but each of them has only examples, or very small example applications, none of them revealing the considerations and practical techniques in buiding large Swing applicaitons, or none of them talking about these things systematically. By considerations and techniques I mean what patterns are ...

99. "Style" for a Swing application...    coderanch.com

Hello folks! What is the common solution for giving a common "style" to all controls in a application? What I mean is like having all the JSplitPanes with empty borders, all the JButtons with the same gaps between text/button edge and so on... Is the some right way to set such a defaults or I need to create own means - ...

100. Getting currently running applications?    coderanch.com

Hi Michael, thanks for your reply. I want my Javaprogram to get all currently running programs. So if I start Word, the IE, the explorer, and then my little Javaprog, it should be able to recognize that Word, the IE and the explorer are "opened". I hope it's a bite clearer now. Greetings, Michael Herrmann / Hamster2k