Professional Documents
Culture Documents
Murtado 3B 15090044
Murtado 3B 15090044
: MURTADO
KELS : 3B
NIM
: 15090044
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package multi_bahasa_4d;
/**
*
* @author murtado
*/
import java.util.Locale;
import java.util.ResourceBundle;
/**
* Creates new form MultiBahasa
*/
public MultiBahasa() {
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">
private void initComponents() {
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jLabel1.setText("WELCOME");
jButtonshow.setText("Show");
jLabel2.setText("welcome");
Jmenufile.setText("File");
jMenuexit.setText("Keluar");
Jmenufile.add(jMenuexit);
jMenuBar1.add(Jmenufile);
jMenutool.setText("Tool");
jMenuchange.setText("Ubah Bahasa");
jMenuenglish.setText("English");
jMenuenglish.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuenglishActionPerformed(evt);
}
});
jMenuchange.add(jMenuenglish);
jMenugerman.setText("German");
jMenugerman.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenugermanActionPerformed(evt);
}
});
jMenuchange.add(jMenugerman);
jMenujapan.setText("Japanese");
jMenujapan.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenujapanActionPerformed(evt);
}
});
jMenuchange.add(jMenujapan);
jMenuarab.setText("arab");
jMenuarab.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuarabActionPerformed(evt);
}
});
jMenuchange.add(jMenuarab);
jMenuJawa.setText("jawa");
jMenuJawa.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuJawaActionPerformed(evt);
}
});
jMenuchange.add(jMenuJawa);
jMenutool.add(jMenuchange);
jMenuBar1.add(jMenutool);
setJMenuBar(jMenuBar1);
pack();
}// </editor-fold>
currentLocale);
changeLanguage(messages);
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code
(optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look
and feel.
* For details see
http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
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(MultiBahasa.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(MultiBahasa.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(MultiBahasa.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(MultiBahasa.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
}
//</editor-fold>
}
}