NullPointerException in invokeLater while running through Java Webstart

I found what I believe to be a better solution to this bug. I just added the following code before calling SwingUtilities or any Swing related component method. It create a new AppContext for the RMI Thread (RMI thread must be the current Thread when running the code below). if(AppContext.getAppContext() == null){ SunToolkit.createNewAppContext(); } Due … Read more

With Java 7 Update 45, the System Properties no Longer Set from JNLP Tag “Property”

We experienced the same Problem with Java 7 Update 45 (1.7.0_45). The JNLP Spec gave a hint for a work-around: Properties set in the jnlp file will normally be set by Java Web Start after the VM is started but before the application is invoked. Some properties are considered “secure” properties and can be passed … Read more

How do I fix “missing Codebase, Permissions, and Application-Name manifest attribute” in my JNLP app?

(1) First, you need to create a text file with all of the attributes you want to add. My text file looks like this: Permissions: all-permissions Codebase: http://www.codebase.com/myApp/dist Application-Name: My Application I named it addToManifest.txt. Obviously, you’ll need to change the parameters to match your application’s needs. (2) Next, you need to add this to … Read more

JTable Calls Custom Cell Renderer Method… Continuously

aaaaach you need doLayout(), next level :-), then there you can to set Maximum visible rows for JTextComponents too, with little effort doLayout() import java.awt.*; import javax.swing.*; import javax.swing.table.*; import javax.swing.text.*; //http://tips4java.wordpress.com/2008/10/26/text-utilities/ public class AutoWrapTest { public JComponent makeUI() { String[] columnNames = {” Text Area Cell Renderer “}; Object[][] data = { {“123456789012345678901234567890”}, {“dddddddddddddddddddddddddddddddddddddddddddddddddddddddddx”}, … Read more

How can I debug applications under Java Web Start (JNLP)?

It’s quite the same like with any other Java process you want to debug remotely: You have to set up some arguments for the VM (-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=n,suspend=y,address=12345 ) and then connect to the given port. In Java webstart 6.0 this can be done with the -J option, in earlier version via environment variable JAVAWS_VM_ARGS. … Read more