Re: Web Start and Third Party Beans
I have still been trying different things to get this to work, and
searches on the www do not seem to be getting anywhere, possibly
because I am typing search criteria wrong.
Is a jar file that gives me a datepicker control called a bean? What
would the Jar file that needs to be included to main Jar file be
called when using webstart?
Finally I have stripped down my original example as small as I could.
Again, if I remove the line in the initComponents:
dtpDateTime = new datechooser.beans.DateChooserCombo();
and the other lines of code dealing with the datechooser, the program
runs just fine in webstart. I also tried a different datepicker
called JCalendar and had the same problem. The program also runs just
fine if I do not use WebStart. I left the JSeparator in the code just
to prove that it is the included Jar bean that is causing my problem
and other swing components can be displayed just fine using webstart
for my project.
package racereporter;
/**
*
* @author rtf
*/
public class frmRaceReport extends javax.swing.JFrame {
/** Creates new form frmRaceRepor */
public frmRaceReport() {
initComponents();
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
// <editor-fold defaultstate="collapsed" desc=" Generated Code
">
private void initComponents() {
jSeparator1 = new javax.swing.JSeparator();
dtpDateTime = new datechooser.beans.DateChooserCombo();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
javax.swing.GroupLayout layout = new
javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(dtpDateTime,
javax.swing.GroupLayout.PREFERRED_SIZE, 191,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
.addComponent(jSeparator1,
javax.swing.GroupLayout.DEFAULT_SIZE, 934, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(dtpDateTime,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jSeparator1,
javax.swing.GroupLayout.PREFERRED_SIZE, 10,
javax.swing.GroupLayout.PREFERRED_SIZE)
))
);
pack();
}// </editor-fold>
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new frmRaceReport().setVisible(true);
}
});
}
// Variables declaration - do not modify
private datechooser.beans.DateChooserCombo dtpDateTime;
private javax.swing.JSeparator jSeparator1;
// End of variables declaration
}