Is there a forum for Java GUI Application Design?

Hi all,
I've used this forum a lot and found a lot of help on it for Swing usage specifics. However, whenever I ask a question about broader design or architecture of a full Swing app I get little or no response. Sadly I'm no stranger to "view 50, replies 0" :o(
Either I'm asking stupid questions or I'm asking the in the wrong forum - does anyone know of a good place to ask about design/best practices for Java, GUI applications? I've seen some of the "programmer"/"developer" groups on Google Groups.
Many thanks.
Yours, hoping for at least one reply,
Chris

You're right, I typed that wrong. The method signature should be addDataChangeListener(DataChangeListener lis, DataChangeType type)
When a component registers itself as a change listener, say it wants to know whenever an object of type Foo is changed, it calls DataChangeType.addDataChangeListener(this, DataChangeType.FOO). (the Enum elements coorespond to the objects we want to listen for) Then it implements the dataChanged(DataChangeType type, Object obj) method that will be called by the controller when objects of type Foo are changed. (obviously this is an interface) Whenever a component updates an object of type Foo, it calls DataChangeControl.dataChanged(DataChangeType.FOO, theFooObject), and then the controller will notify all listeners who are interested in Foo objects changing.
The DataChangeControl maintains a hashmap of <DataChangeType, List < DataChangeListener> >. So when a new listener is added, it checks the type to see if a list is already keyed to that object type in the hashmap. If so it adds the listener to that list, if not it creates a new list in the hashmap with the type as the key. That way when an object is changed, it notifies only those listeners who are registered to listen to that type of object being changed. Hopefully that makes sense.

Similar Messages

  • What are popular automated tests for Java GUI applications

    Hi, I want to find a good automated test for java swing for my project. I have a list of UISpec4j, JFCUnit and Abbot.

    There is also jemmy. I haven't used any of them, though...
    -Puce

  • Need advice in writing forum component for a GUI application

    Hello,
    I need to write a forum component for a GUI application, that is a visual component that would have all the usual forum functionality - creating threads, posting replies, editing, logging in, etc. I'm planning to use some existing forum engine on a JBoss/Tomcat server. So I do not need a web-interface for a forum, but I need find some engine written in java with a clear interface that I could use in my app. I tried JForum (http://www.jforum.net) first, but it seems it doesn't have open API I could utilize.
    Could anyone please suggest appropriate engine, possibly anyone knows of open-source forum GUI apps I can look at?

    Google? You've never heard of Google? Seriously? Did you just get Internet access yesterday?
    http://www.google.com

  • Can I Open an HTMLHelp (*.CHM) File from Java GUI Application?

    I ussually use Delphi to develop my applications and I can open an HTMLHelp (*.CHM) file from my application. Can you show me the ways to do it from my Java GUI applications?
    Thanks for everyone.
    Budi Raharjo
    http://budiraharjo.blogspot.com

    http://www.google.com/search?q=java+chm
    Seems like there is some 3rd party software available for that.

  • Is there a Forum for japanese users ?

    Hello.
    I use solaris10 (10/08) right now.
    I have several questions.
    Is there a Forum for japanese users ?

    John:
    Try starting up in Safe Mode, then login, empty Trash and restart normally.
    If that does not help you can try re-installing Stickies. Use Pacifist to open the .pkg and extract Stickies from your computer, then install it from you install disk. If the problem is with the application, that should take care of it. If it is systemic we'll have to try find the source.
    Good luck.
    cornelius

  • Good exception handling policy for Java web application

    I'm looking for a good exception handling policy for Java web application. First I found this Java exception handling best practices - How To Do In Java which says that you should never catch the Trowable class nor use e.printStackTrace();
    Then I found this Oracle page The Message-Driven Bean Class - The Java EE 6 Tutorial, which does just that. So now I'm confused. Is there a good page online for an exception handling policy for Java EE Web applications? I have a hard time finding one. I've read that you should not catch the Exception class. I've been catching it previously to make sure that some unknown exception doesn't slip through early in the loop and stops all other customers from executing later on in the loop. We have a loop which runs once a minute implemented using the Quartz framework. Is it OK if you just change the implementation to catch the RuntimeException class instead of the Exception class? We're using Java 7 and the Jetty Servlet Container.

    I'm looking for a good exception handling policy for Java web application.
    If you have not done so I suggest you start by reviewing the several trails in The Java Tutorials.
    Those trails cover both HOW to use exceptions and WHEN to use them.
    This trail discusses  the 'controversy' you mention regarding 'Unchecked Exceptions'
    http://docs.oracle.com/javase/tutorial/essential/exceptions/runtime.html
    Unchecked Exceptions — The Controversy
    Because the Java programming language does not require methods to catch or to specify unchecked exceptions (RuntimeException, Error, and their subclasses), programmers may be tempted to write code that throws only unchecked exceptions or to make all their exception subclasses inherit from RuntimeException. Both of these shortcuts allow programmers to write code without bothering with compiler errors and without bothering to specify or to catch any exceptions. Although this may seem convenient to the programmer, it sidesteps the intent of the catch or specify requirement and can cause problems for others using your classes.
    Why did the designers decide to force a method to specify all uncaught checked exceptions that can be thrown within its scope? Any Exception that can be thrown by a method is part of the method's public programming interface. Those who call a method must know about the exceptions that a method can throw so that they can decide what to do about them. These exceptions are as much a part of that method's programming interface as its parameters and return value.
    The next question might be: "If it's so good to document a method's API, including the exceptions it can throw, why not specify runtime exceptions too?" Runtime exceptions represent problems that are the result of a programming problem, and as such, the API client code cannot reasonably be expected to recover from them or to handle them in any way. Such problems include arithmetic exceptions, such as dividing by zero; pointer exceptions, such as trying to access an object through a null reference; and indexing exceptions, such as attempting to access an array element through an index that is too large or too small.
    Generally don't catch an exception unless you plan to HANDLE the exception. Logging, by itself is NOT handliing.
    First I found this Java exception handling best practices - How To Do In Java which says that you should never catch the Trowable class nor use e.printStackTrace(); 
    That article, like many, has some good advice and some poor or even bad advice. You get what you pay for!
    I've read that you should not catch the Exception class.
    Ok - but all that does is indicate that a problem of some sort happened somewhere. Not very useful info. Java goes to a lot of trouble to provide specific exceptions for specific problems.
    I've been catching it previously to make sure that some unknown exception doesn't slip through early in the loop and stops all other customers from executing later on in the loop.
    If the exception is 'unknown' then maybe it NEEDS to 'stop all other customers from executing later on in the loop'.
    That is EXACTLY why you don't want to do that. You need to identify which exceptions should NOT stop processing and which ones should.
    Some 'unknown' exceptions can NOT be recovered and indicate a serious problem, perhaps with the JVM itself. You can NOT just blindly keep executing and ignore them without risking data corruption and/or the integrity of the entire system Java is running on.
    Is it OK if you just change the implementation to catch the RuntimeException class instead of the Exception class? We're using Java 7 and the Jetty Servlet Container.
    No - not if you want a well-behaved system.
    Don't catch exceptions unless you HANDLE/resolve them. There are times when it makes sense to log the exception (which does NOT handle it) and then raise it again so that it gets handled properly later. Yes - I know that is contrary to the advice given in that article but, IMHO, that article is wrong about that point.
    If you have ever had to maintain/fix/support someone else's Java code you should already understand how difficult it can be to find WHERE a problem occurs and WHAT the exact problem is when exceptions are not handled properly.

  • Accelarate the Linux ATI Graphics card  for java Swing application

    Hi All,
    I am using a ATI Radeon 9550 Graphic card in LFS (Linux from the scratch) environment. I want to enable the OpenGL-based pipeline for Java Swing application. I tried the -Dsun.java2d.opengl=true . But the Java swing application getting very slow.
    How to overcome this problem?
    Any one give the procedure to Accelerate ATI graphics card for Java Swing Application
    How to verify Java swing use ATI graphics card ?
    Thanks in advance..
    Prabhu.S

    Hi All,
    I am using a ATI Radeon 9550 Graphic card in LFS (Linux from the scratch) environment. I want to enable the OpenGL-based pipeline for Java Swing application. I tried the -Dsun.java2d.opengl=true . But the Java swing application getting very slow.
    How to overcome this problem?
    Any one give the procedure to Accelerate ATI graphics card for Java Swing Application
    How to verify Java swing use ATI graphics card ?
    Thanks in advance..
    Prabhu.S

  • Is there a forum for windows.

    I hope this is the right place to post this topic. I find the Apple discussion forum really useful, and wanted to know if there is anything similar for Windows users.
    I had a look on google but found nothing as easy to use as the Apple one, has anyone got any suggestions. I need it mainly for Windows XP SP2 and Microsoft Office 2003.
    Although I use a Mac all the time at home my computer at work is a PC, and I do have a few problems that I am sure are easy fixes but have no idea how to do them.
    many thanks in advance.

    *" Is there a forum for windows. "*
    http://forums.windowsitpro.com
    http://ms-windows.com/forum/
    http://forums.windowsforum.org

  • Is there a market for Java 3d?

    Hi, i'm just about to finish college this year and have worked with lots of programming languages during my time in college but found java to be the most interesting... After a while i got into making games in java with the help of the java 3d api. I'm interested in going into this market when i finished colelge but i was just wondering...
    Is there a future for java 3d in the games development market?

    Iron Monkey wrote:
    Apple tried this before, it was called the G4 Cube and it didn't sell so well at the time, although, I think the outrageous sticker price had something to do with poor sales...
    Yuh think ! ? !
    That was 75% of the reason. It was waaaaay overpriced.
    The ports being on the bottom, where no one could get at them, was another big reason it was not accepted by the public.
    I am among those who have been pushing for a desktop system with a mini-like footprint, but imac-like performance -- but I've been advocating this since before the Mini existed.
    One idea I put forward in my Mac User Group's newsletter was for a machine just slightly taller than a mini that docks into a cinema display-type monitor. This would allow apple to sell them together for an imac experience, or separately.
    Regardless of whether or not they did the docking thing, this is the computer system that could really bring about great Mac acceptance in the corporate world. But of course Apple ignores that space and seem deaf to the needs of industry.

  • What kind of ipod do I have and is there a forum for it?

    I have an old B&W screen iPod classic format version.
    20GB.
    What version is this considered? Gen 1?
    Is there a forum for these oldies?
    Thanks

    Hello,
    you can use this to identify the model you have.
    http://docs.info.apple.com/article.html?artnum=61688
    There is a forum here for iPods in general. But when you need assistance, it's helpful to know/share which model you have.

  • Is there a forum for PSE 7?

    Is there a forum for PSE 7?  I seem to be able only to find a forum for PSE 9.

    This forum is for any version of PSE, but of course the  majority of questions are going to be about the current version, since that's what most people are using. Ask away.

  • Is there a tool for automated GUI feeding?

    Hi!
    I did not find a better place for this question:
    Let's assume that I have a running Java GUI, is there any tool to access the GUI elements, i.e. to connect to a running GUI (from another script or program), push buttons and fill in text to text fields and so on?
    I would like to perform automated tests..
    Best regards

    Hello,
    You can use the freeware tool Marathon. It is a nice tool which can be used for automated testing. It also has a script recorder. The script is in jython which makes our job easier.
    You can find this at,
    http://marathonman.sourceforge.net/
    Ranga.

  • Forte For Java GUI Editor

    Hi everyone,
    I've been trying to switch usage between Forte for Java running on 2 platforms (Win NT and Solaris 8). For this reason, I want to try to use the GUI Editor in each. But when I tried copying the same .class file from one platform to another and running opening the file under Forte for Java, the GUI Editor doesn't show up the form and Component Editor. Is there a way to make Forte for Java able to recognize the GUI components in a class file not creatd in Forte or not in that version of Forte? Thank you for any help!
    Bob

    Hi,
    this happens not just with class file but also with .java
    file. I created a GUI with Forte ( on windows ) and because I did not jave runtime setup on windows, I copied, java file that was created to the unix env. Then added some code to it and copied back to the windows.
    After that, GUI editor never came up. I lost all that I did
    to create a GUI. Now I can modify GUI only manually.
    I you have found answer to this, please let meknow
    at [email protected]
    rgds,
    sam

  • High thread context switching for java web application

    We have been load testing our java web application and observe high cpu usage with 50 users (which doesn't seem practical). The CPU shoots up above 80%. While profiling it with java flight recording (JFR) we see that the context switch rate is 8400 per second (as seen in the Hot threads tab on java mission control). Analyzing the hot threads in jfr, it seems the cpu usage is distributed across the application threads with each thread using less than 3% cpu.
    Increasing the user load to 100, 150 or 200 users we see the cpu shooting up above 90%, the throughput (transactions per second) remaining constant (as seen for 50 users load) while the response time crosses the acceptable threshold values (3 sec). Decreasing the user load to 20 users shows the cpu usage averages out to be above 55%. It certainly isn't true that the application threads are using up the cpu since our application is not a CPU bound application. The Hot Packages tab under Code tab group confirms this by showing that most of the time the application spends in is executing database queries.
    We use glassfish 3.1.2.2 as our application server where the max thread pool is configured to be of 100. Oracle Linux Server release 6.4 is our operating system with linux kernel version as 2.6.39-400.214.4.el6uek.x86_64. I tried executing linux commands namely "watch -n0.5 pidstat -w -I -p " and "watch -n.5 grep ctxt /proc//status" to see the voluntary and involuntary thread context switching at OS level but they don't give any results.
    Suspecting that high context switching could be causing the cpu to shoot up, do you have guidelines on what could be done to confirm that thread context switching is the cause of high cpu and what are there ways to tune the jvm or the application if that's the cause?
    Thanks!

    Kelum -
    We just saw this issue today for the first time. Have you been able to find a cause?
    We upgraded our 32bit Windows operating systems this weekend to use the /3GB flag. Since then, we have seen that our servers have ample heap space, but are dangerously low in PTE memory.
    But when we've been diagnosing the state of the server that produced this error (we run 2 nodes on 3 different computers; only 1 produced this error; the other 5 are working normally), everything looked fine. The server was reporting sufficient PTE availablility, plenty of heap space, and around 172 threads (we expect to be able to run many more than that).
    When we restarted the node, it came up fine and everything appeared to be working normally.
    So I'm looking for any clue as to the root cause, and what kind of resolution to explore. Any clues or pointers would be greatly appreciated.
    Paul Christmann

  • Forum for Java One Studio

    Hi there,
    is there a better place or a dedicated forum to talk about Forte for Java?
    thanks.

    Click on forums at the left
    http://forte.sun.com/ffj/index.html

Maybe you are looking for