Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
rating prediction application. It also contains the coding snippets that help to understand
what a particular section of code represents. The following steps are required to run the
application successfully:
1. Install the NetBeans IDE
2. Import the project file into the NetBeans IDE
3. In the package explorer, run the home.java as a java application
The coding snippet shows the setup of the main default page that contains the application
title and calls the all product items page.
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package rating.prediction.based;
/**
*
* @author java1
*/
/**
* Creates new form home
*/
public home() {
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.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
jLabel1.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/rating/prediction/based/bgg.jpg")));
// NOI18N
jLabel1.setText("jLabel1");
getContentPane().add(jLabel1, new
org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 660, 470));
java.awt.Dimension screenSize =
java.awt.Toolkit.getDefaultToolkit().getScreenSize();
setBounds((screenSize.width-638)/2, (screenSize.height-500)/2, 638, 500);
}// </editor-fold>
new allproductitems().setVisible(true);
}
/**
* @param args the command line arguments
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.
SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.
SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.
SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.
SEVERE, null, ex);
}
//</editor-fold>
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new home().setVisible(true);
}
});
}
// Variables declaration - do not modify