Steven Wall

Greenhorn
+ Follow
since Nov 04, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Steven Wall

I have seen that this book is for the "intermediate" JavaScript developer. Could you elaborate more about what skills are necessary in your opinion to be considered "intermediate"? As someone who has mostly used Java web frameworks (Grails, GWT, etc.) for client side development, I have not written a ton of Javascript. Though I have written small web apps using HTML, jQuery, JS and CSS. Just wondering, in your opinion, how high the bar is to be "intermediate".

Thanks!
John and Bear,

Does your book cover how to test Javascript code with both unit and functional tests? If so, does it recommend any particular frameworks?

(Really looking forward to your book!)

Thanks!
Steve
I would recommend JFormDesigner based on my experience with it (though I have not used NetBeans so I can't compare). It has plug-ins for both Eclipse and IntelliJ. It was easy to learn.
If you are distributing your application via Java WebStart, in your JNLP file, there is a <j2se> node that is child node of <resources>. On the <j2se> node, there is an attribute for "max-heap-size". You can set the client heap size there.

For example:
15 years ago
I think the short answer is "No".

As far as frameworks, the Swing Application Framework had the most "buzz" for awhile, but that project lost momentum when the project lead left Sun. However a new lead has been assigned so perhaps the project will pick up again. This framework provides hooks into an application's lifecycle (launch(), exit(), etc.).

A GUI builder may help you out as well.
15 years ago
I have used AffineTransform.getRotateInstance() and Area.transform() along with the Timing Framework to achieve animation.
15 years ago
We have been interested in this issue too, so I was anxious to see the response. As far as I can tell, the JDialog constructors only allow a JFrame or Window as it's "owner", so they cannot be used with JInternalFrame as a parent.
15 years ago
You should be able to take the URL then add a semicolon and then add the session id.

For example:

String url = "http://www.abc.com;JSESSIONID=123456789"
15 years ago
Where is the code you posted located? Is it in an ActionListener registered with the JTextField? I haven't tested it, but it looks like that code would cause the behavior you are describing. Have you tried removing that code?
15 years ago
Only you will be able to tell if it is inefficient. If the user is only changing a few pieces of data (so the number of insert/update statements issued to the database are few), then your implementation would likely work.

But you are correct to worry that your implementation may not scale.

We typically let the user make changes to the grid and then have a Save button that user must click to persist those changes. Usually we will have logic as well that determines which rows have had data changed so that we do not automatically run update statements on every row in the grid.

I hope this helps.
15 years ago
If you are allowed to use third party libraries, you could also consider using the JXHyperlink class that is part of the Swingx library at Swing Labs.
15 years ago
We are using Swing for a complex application. In hindsight we wish we would have identified more people to focus just on Swing (become experts) instead of having our entire development team knowing just a little Swing.

I would also consider using a GUI Builder tool (NetBeans has one, JFormDesigner, etc) as they are pretty good now and can help speed development drastically.
15 years ago
I noticed you are creating the JDesktopPane in the listener. I would think you would want to create it and add it to the JFrame's content pane when initializing the frame. Maybe that would help.
16 years ago
You have at least a couple options.

1) If using Java 6, there is a SplashScreen class. Read the API documentation here

2) We are using Java 5, and the approach we have done is to create our own class that extends JFrame that we use as a splash screen. We create and show that class from our main class. We then use SwingWorker (you can get from SwingLabs) to do all our initialization off the EDT. When the worker finishes, we dispose of our splash screen and open the main window of our application.
16 years ago
If the first frame isn't needed, then you should use dispose(), which will close it and release the memory it is using.
16 years ago