Application Icon 2 « Development « Java Swing Q&A





1. Highly customizable applications    coderanch.com

Hi there, I am writing a highly customizable application in which users may select the fields which are relavent to them. For example some users may only use the LastName field in the appliaction and disregard the FirstName field. Some users may use the Initials field and LastName field and not use the FirstName field. I'm unsure as to whether my ...

2. Installable Swing Applications    coderanch.com

3. This Application hates me!!! :(    coderanch.com

4. Swing "helloworld" application    coderanch.com

5. how to run swing application    coderanch.com

6. mutliple use application    coderanch.com

The setting... I have writen a stand alone applcation which is controlled by a single top-level class. This class controls a series of panels where the user can make selections/enter data etc.. Much of the input/output from different panels depends upon input from other panels. To fascilitate this all common data used is kept in a single class containing "private static" ...

7. Setup for Java Application    coderanch.com

8. ShutDownHandling for Swing Application    coderanch.com

In Swing Application how to handle ShutDown operation for eg. like displaying Dialog box with modified files before existing SwingApplication. I tried with Runtime.addShutDownHook() it is not possible display the Dialog Box, as AWT Thread is also in Shut Down Process. I Observed in NetBeansIDE my requirement is working fine. Can any one knows about it or how it is implemented ...

9. Swing Application as NT Service    coderanch.com





10. Application path problem    coderanch.com

Hi guys, I'm having a problem with file paths. Basically, if you launch the application in Windows by double-clicking an associated file, the application seems to take the path as that of the file, not the actual application. If I load the application normally, it takes the correct path. To illustrate: /application/myexe.exe /application/myimage.jpg double clicking myexe.exe loads the image fine because ...

11. How to embed SWING component in Win32 Application    coderanch.com

Hey, this is a question for work. I have a swing component (a layer), that I want to be able to show in a windows application. This is a tabbed windows application, and I want this java swing layer to appear under one of the tabs. What are my options of how to do this? I would even like to communicate ...

12. Swing Application Example    coderanch.com

Does anyone know where I can get an example of a complete standalone swing application that implements persistence on say HSQL or Berkely DB(Java) and demonstrates MVS or another pattern that I could learn from? I would like to see things, such as how the different tiers are separated, when and what resource properties are used for, how application preferences can ...

13. Securing My Application    coderanch.com

14. My application is helpless    coderanch.com

My app does not currently support any user help screens. This is something I'll need to implement before too long. What is the best way to implement user friendly help screens? HTML is one option but means either building a lite-browser into my app (don't want to) or using an external browser (don't like that either). Any suggestions? ms

15. Swing application dies with 1.5    coderanch.com

16. SWING GUI APPLICATION    coderanch.com

I am developing an application for some engineering calculations.I have a JTabbed pane with 3 tabs each having 3 panels with data entry fields.once the data is entered, I want to do some calculations and show the result to the user. How should I organise the coding for GUI and the application logic? I tried in google to find some docs ...





17. Some suggestions about my application    coderanch.com

Ranchers,I'm now working at a NMS system.I'll be responsible for all the GUI.Let me describle my designing.Would you shed some light on me? First,the client almost runs at windows,so I'll use JGoodies's look and feel for windows. Then, for Layout,I don't choose third party layout.Because I think the layouts in JFC are all I need. I'll obey some guidelins to make ...

18. Please help me on this Application    coderanch.com

Sounds like you are doing some custom painting that requires more flexibility than JLabel was designed for. You could try making a custom graphics component class MyGraphicsComponent extends JPanel { ... protected void paintComponent(Graphics g) { // custom painting code goes here // you can specify the x, y location to paint your images // and use a zoom factor to ...

19. How to listen to the words from other applications    coderanch.com

Originally posted by KArol Muszynski: I think You will need access to windows api in C to do this. Maybe easier will be to use Clipboard Listener. User of your application will be useing Ctrl+C to send selected phrase to your application Best Regards, KArol Muszynski Hi Karol, I had used your suggestion in a Delphi project previously. I know it ...

20. Developing form builder application    coderanch.com

It'll be a big project.. thats right... I need to develop that n ther'll be so many customization in it.. I got sufficient time to develop... I want some small examples for.... how to add components on the form by selecting it from the palette... i have gone through most of the AWT and SWING apis... now im little familiar with ...

21. Possible Java Applications    coderanch.com

Hi, I'm trying to produce some Java applications so I can get more experience with Java. So far, I've made lots of little programs, as well as a fractal program, which lets you explore the mandelbrot set, a chess program with working GUI. Also a Pacman game and a snake game, and a graph theory application based on Dijstrka's algorithm. I'm ...

22. Swing application not working on all machines .. Urgent    coderanch.com

Hi, we are using one tool which generates property files from Visio file. This tool is built in Java swing. Now problem what we are facing is this application is working fine on some machines but on other machines its not working. We are using jdk 1.4.1_02 and same JRE and OS is windowsxp. Pls help in this regard. Thanx in ...

24. developing GNOME applications    coderanch.com

Hi, I am a newbie when it comes to desktop applications. I have some experience with Swing, but that's it. That said, I don't like Swing :-) I would like to develop an application for Gnome using the Java GTK+ bindings. The application will only run on Linux, and will use GCJ and Classpath. I am not interested in cross-platform compatibility, ...

25. Creating an Application    coderanch.com

You will have to find a book about Java with GUIs in, which means most of the big textbooks, OR, the Swing pages in the Java tutorial. It is not difficult, but will be time-consuming because there are so many classes to learn. Note that some of the books use "addActionListener(this)," which I dislike, as you will find if you read ...

26. interconnecting 2 Java Swing applications    coderanch.com

Hi guys, I hope you could me with my problem. Here's the scenario: I have 3 branches where it all uses same java swing standalone application that i developed. My problem is the main branch (1 of the 3) want to have the sales of each branches to synchronize, by synchronize, i mean the main branch wants to know the sales ...

29. GUI Realization in Application    coderanch.com

30. Swing Application    coderanch.com

I created a JFrame and set its layout to null..also added three panels with layouts set to null and added few components to each of the layout.I have done this in Eclipse IDE and when i run the application the window displayed perfectly and the panels are fixed in their respective positions. I want this application to be flexible i.e. when ...

31. how to use JSON in Swings application?    coderanch.com

32. Setting permission on certain part of an application    coderanch.com

Hi All, I am trying to enable/disable certain parts of an application depending on the user's role. Every dialog at start up checks for the role of the current user and enables or disables various parts. Somehow it doesn't seem that object oriented to me but can't think of a better way either. I was just wondering if there is a ...

33. A sample application needed...    coderanch.com

35. Ireports in swing application    coderanch.com

Hi all,thanks in advance, i have created a back office applicaltion, I have my forms designed in Swings(netbeans 4.1), reports using iReports both working fine. I have classic.jrxml and a classic.jasper file which i want to invoke for a key press event in my swing application (main program)to generate reports. please let me know the procedure for the above at the ...

36. Swing Application Designing    coderanch.com

Hi everbody, I am just shifted to swing from vb.net for a client project. My question is, which IDE I must prefer so that I can easily design interfaces(viz. Windows, widgets etc), just I was created in vb.net environment. Can I do this rather than writing the whole stuff(Creating layouts,panels etc) Thanks.

38. What is the best way for reporting in JavaSwing Application?    coderanch.com

there is an API which is opensource and freely available on net. It is an iText API. you can get .jar file from net and just you have to do is to put it in the classpath. please give your mail address so that I can send the jar file to you.

39. How to embeded C++ GUI onto a Swing application?    coderanch.com

We have an existing windows UI application which contains an OpenGL image viewer. We are thinking about rewrite the UI application by using Swing except the C++ OpenGL image viewer. I am wondering how to integrate the existing C++ OpenGL image viewer with the new Swing UI. I have no problem to use JNI call C++ methods but I have no ...

40. How to save configuration for my application??    coderanch.com

Hello: I have a GUI application, see code below, after I run it, I re-organize the positions for all labels, eg. I put them into different poistions, or put then into center of JPanel. then I quit my application, nect time, when I re-run this program, I hope to see this last layout that I quit before: all labels are in ...

42. Advice Wanted: Very Large Complex Swing Application    coderanch.com

In a month or so I will be starting a quite large and quite complex Swing application. I'm pretty competent in Swing but I've been out of the loop a bit on any cool libraries that might make my life easier. So what I am looking for is advice and opinions on what you use. If you recommend something please explain ...

43. Java Swing Stand-alone application    coderanch.com

44. Debuggin Swing application    coderanch.com

Ahh, now we are getting somewhere. And yes, I can see how that would be a problem. What I'd hope for is a package structure and naming convention that made sense. So if I had a login form I might have a class file called LoginForm or LoginSomething at least. So my first thing would be to look at the window ...

45. Swing Application Problems    coderanch.com

Originally posted by surender reddy: In my swing application when i open the subwindow the main window paint is disturbing. even when i move the sub window, the main window paint is disurbing. How to keep main window stable from sub windows? How to convert java swing application files into into single setupfile? I think this maybe the case,because i once ...

46. Correct way to exit an application    coderanch.com

47. Sample of a very basic swing application    coderanch.com

A swing code sample below. Very basic. import java.awt.BorderLayout; import java.awt.Component; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JComponent; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JTextField; public class Contrasenia implements ActionListener { // Mensajes de la aplicacion. private static final String INSTRUCCION = "Ingrese una y presione \"Ok\""; private static final String NO_HAY_CONTRASENIA = "No hay ...

48. BIRT in a Swing Application    coderanch.com

We are building a standalone desktop application that will not have an application server. It will connect to a local database through ODBC. Can we use BIRT reporting? I only see J2EE mentioned on the BIRT site, we are not using J2EE and the discussion area of the BIRT site seems to no longer exist. Other projects here use BIRT in ...

49. Starting a Swing Application    coderanch.com

I'm using several sources to try to get started with Swing. The Sun Java Tutorials usually hava a static main method that calls a second static method (createAndShowGUI) in which the class constructor is called, a JFrame component is instantiated, and the content pane filled. In examples from other sources, the main method calls a regular method, which does the initial ...

50. creating swing application exe    coderanch.com

52. how to build swing applications with bidirectional support    coderanch.com

thanks for the reply, i have already gone through these links... the swing application has to be implemented in arabic culture...the major problem is aligning the swing components from right to left... currently i have build the application, where components are aligned in left to right fashion. My problem is how to shift the components from left to right and right ...

53. Swing application and HttpSession    coderanch.com

Excellent. I'm playing around with the example provided in the post and felt what they showed was not as clear as it could be... Once I complete my experimentation, I'll post what I found here. It may not be until later in the week, however, I've got a couple of things to attend to at the beginning of the week that ...

54. Attaching a GUI to a polling application    coderanch.com

Hi there everyone, So I'm writing a mail checking application. Right now, it's a commandline app that can check for new messages. Soon, it will have a timer thread that will check for new messages every X seconds (have to figure that part out still). It returns only one thing: an integer representing the number of new messages in the mailbox. ...

55. Pause in Swing Application    coderanch.com

I'm trying to use Thread.sleep(1000) in a swing application but its not working the way I want. I read that I have to use the javax.swing.timer class. I've read several tutorials on this, but I still can't seem to get it to work. Is there an easy way I can use javax.swing.timer or anything else to emulate the Thread.sleep(1000) functionality? Thank ...

56. Gui based Application    coderanch.com

Hi I am developing a GUI based Application.IT shows bitstream on the GUI.I want to give user an option to select a certian portion of the software and when he clicks on it, a save dilog should come up.I have implemented this thing in paint method of GUI.But the problem is that saveDialog option comes up again and again.I have used ...

57. How to deploy a GUI Swing application?    coderanch.com

How to deploy a GUI Swing application? (Java in General forum at JavaRanch) A friendly place for programming greenhorns! Register / Login Java Forums Java Java in General How to deploy a GUI Swing application? Post by: Doug Nichols, Greenhorn on Jan 15, 2006 15:19:00 I have a GUI swing application that runs great in Eclipse. How do I ...

58. GUI based interface for a (already developed)command prompt application    coderanch.com

I have to develop GUI based interface for a (already developed)command prompt application. Condition is "I cant touch its source code.I have to play on interface level." The problem is: I dont know when that command prompt appication will aks for input.So how can I provide input to command prompt based application ? when that application is waiting for input from ...

59. Exit an GUI application    coderanch.com

I have a GUI application which displays three different messages for a period of 5 seconds in the same JTextArea. When I close the window before de second or third message is displayed the thread is still being executed in the DOS Window. Is it possible to stop the tread (and the entire program) when de GUI is closed? I use ...

61. How to Hide A Swing Application    coderanch.com

Hi, I'm trying to create a Swing Task Organizer type of application using Java. Does anybody have an idea how I can make it "hide" and then be readily retrievable from Windows Desktop? (sort of like a Microsoft Office OneNote in that even if you exit it, the next time you run the program the info is still there) [ October ...

63. Call Swing application with the help of JWS    coderanch.com

Hi All, I have an Swing application which I want to open from JWS. And in that task I am partially successfull. Means I have to select few files to process. That I have to do with the help of Swing and JWS. But as soon as I opened the file.Swing screen get close and I am not able to process ...

64. Designing forms within an application    coderanch.com

I am working on project called Data Crow. One thing I would like to add is the ability for users to design their own forms. Currently they can determine the field order and which fields are to be displayed. I'd rather allow them to drag and drop components onto a form. I have been looking around on the internet and found ...

65. Stand alone application.    coderanch.com

66. Stand alone application.    coderanch.com

67. Interact with native applications    coderanch.com

68. track changes java application    coderanch.com

70. how to attach custom swing module to main application    coderanch.com

Hi, I am implementing a Swing Application. The system should allow the users to attach custom modules to the application. The custom modules will be developed by third party and will be developed in Swing. The implementation of the custom module is not my concern. I just need to worry about how to attach the custom module with my system. The ...

71. Java plotting application    coderanch.com

With all due respect, seeing that it's Wednesday already, and you won't be able to work on this much until Friday due to other projects, I'd guess that there's no way you can finish this in time. While Java GUIs aren't particularly hard, it's not trivial to write an application with a GUI and custom drawing if you haven't done this ...

72. Restart a Swing Application from within    coderanch.com

Do a search on how to start a process. There have been many such threads in our Java in General (intermediate) forum. What may be a problem is the total command to execute. Sure, the "javaw" and main class name are not that hard. But the other command line parameters may cause a problem; the class path in case the application ...

73. help in swing application    coderanch.com

74. How flexible the application is?    coderanch.com

Do you mean to this ?? import java.awt.BorderLayout; import java.awt.Container; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTabbedPane; import javax.swing.JTable; import javax.swing.JTextField; import javax.swing.table.DefaultTableModel; public class SampleApplication extends JFrame implements ActionListener{ private JPanel jp1 = new JPanel(); private JPanel jp2 = new JPanel(); private JPanel jp3 = new JPanel(); public SampleApplication(){ super("Sample Application"); ...

75. Just finished my first GUI program (a planner application) ... could you give me feedback?    coderanch.com

Since I'm not in any kind of java programming class I can't really get graded on my projects to see if I did things well or not. I was hoping you, the community, could help me out and give me a grade and feedback on my application. I'm still new to OO so I probably could have done a few things ...

76. swing application problem    coderanch.com

Hi all, My all the images that are used in my game are in the same folder where my jar file is present, so when i run my executable jar file outside the reach of that folder than images does not get displayed on my game, I mean when jar file is located inside the folder with the images then images ...

77. How to setup a swing application    coderanch.com

Hi all. I have made a student management application. No i want to give it to my university. The problem is i have used the liquid LAF. The path is set on my pc. Now i need something that should set up the application just on a click for a new user. How can i do that. Thanks and Regards alexander ...

78. GUI and CLI application    coderanch.com

I'm trying to think of a way to do this but I can't think of one. I'm trying to make a program that, while it is capable of a GUI, it can still run in a command prompt. If I click on a .jar, it will do it's main() and whatever that entails, even if it makes a GUI in the ...

81. swing application    coderanch.com

82. Application runs and closes automatically    coderanch.com

I have this code which is a JFrame with a JPanel and three buttons. When I run the program it just closes AUTOMATICALLY. Why is that? import java.awt.BorderLayout; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; public class DisposeShapes { JLabel label = new JLabel("Add Rectangle"); public void DisposeShapes() { JFrame frame = new JFrame("Dispose shapes"); JPanel ...

83. get all application components and change their orientation    coderanch.com

hi, i m trying to make a RTL version of an existing software. i wonder what is the most efficient way to change all GUI component's orientation to RIGHT_TO_LEFT? is it possible to code a function that would search all my source code file for Components, and when found, change their orientation? Thanks, Tizki

84. Problem with a swing application    coderanch.com

Hello guyz, I have a problem with a jawa swing application. from my web application when I click on a link, it downloads a jar file and executes that jar file on the client side by passing the necessary parameters. The title of that Swing application window is "Optical Metro System Manager". When I click on the same link multiple times, ...

85. Keygen program for swing application    coderanch.com

86. Is it possible to run a Swing application on startup of PC    coderanch.com

You can run Java programs upon PC startup using a service wrapper; look it up. However, it cannot interact with the desktop, so no user interface is possible. You can run any Java program whenever a user logs in. In Windows, all you need to do is create a shortcut in the Startup folder of the start menu. Another option is ...

87. i want to make user privilage in my Swing application    coderanch.com

That depends on what you mean by "make user privilage". If you want your application to work differently depending on which user is signed on to it, they you would use design and programming to do that. (The level of detail I am providing here matches the level of detail in your question; if you wanted something more useful, then ask ...

88. SSO in Swings application.    coderanch.com

Hi, There is a Swings application that currently requires the user to logon using Windows Credentials. Since the user is already logged on the windows machine, I would like to implement SSO functionality in this application so that the user does not have log on again. Please suggest some free open source framework that will help in achieving this in a ...

89. Trouble creating a simple swing application    coderanch.com

I am trying to learn swing frame work using netbeans IDE. In a video tutorial I see that: when ever we insert a panel in design view, there is code being inseterd in source area. [Netbeans IDE]. But, I could not see all that happening in when I am try to do that. Do you have any suggestions? Thanks.

90. Application Size and Appearance problem?    coderanch.com

Hey Guys I have been working on a application for 6 months. now I am done with it. and I tried to take it to another computer and run it. everything has changed I mean the GUI is completely different. I have used Netbeans 6.9 and I have been using netbeans GUI builder. but it is fine in my computer and ...

91. How to extend a swing application    coderanch.com

All ? I have a swing application . I would like to extend this application and make it more user friendly. Existing swing application has too many screens and too many mistakes are happening in the field and HW with which swing applciation interfaces is getting corrupted . If I want to develop a simpler SWING application with one screen and ...

92. Best practices for accessing application configuration    coderanch.com

What are the current best practices for loading and accessing configuration values on application level. My understanding is that Singletons should not be used. I have read something about thread local, but I was wondering what else is in use and has proven to work well. Spring comes to mind as well, but as the application I am working on is ...

93. want to make it an application    coderanch.com

i saw this example in a book i would like to make it an application program ( main method as starting point ) i have tried a lot but did not get success .. can you please help me ? import javax.swing.*; /* */ public class JTabbedPaneDemo extends JApplet { public void init() { JTabbedPane jtp ...

94. SWING application in intranet    coderanch.com

95. Migrating existing application to Griffon    coderanch.com

Andres & Danno, I work on a swing application, and we currently use a lot of groovy for the back end. We use some groovy on the front end, especially the SwingBuilder, but much of the core UI code is written in pure Java. The application is pretty small right now (~50k sloc for UI and backend combined). Would you recommend ...

96. Isn't a Griffon application too slow to run?    coderanch.com

Too slow to do what exactly? Is it because of the choice of Groovy as glue language? I'm happy to say that the answer is no. Most of the Griffon runtime is written in Java, which means that the inner workings are as fast as your vanilla Java framework. There are parts of the code that use Groovy APIs, most of ...

97. problem in executing swing application    coderanch.com

I assume you're trying to run the compiled applet code using a command line command: > java applet ( > is the command line prompt, not something you'd type ) where "applet.class" is the name of your compiled applet.java source file. Applets are viewed/run from within an HTML file. There are several places on the internet that give you advice on ...

98. running an application    coderanch.com

99. Develop an application like JConsole    coderanch.com

100. Using openoffice in java application    java-forums.org

Hi! Because of my final degree project I have to integrate an openoffice window into my Java application. I don't know how to look for information about this topic. So, if anyone has tried something similar and can help me... The idea is to put in the same window a webcam and the openoffice suite so you can show a power ...