Results 1 to 5 of 5
Thread: Applet ot Swing Forma
Hybrid View
-
12th April 2009 16:34 #1
Applet ot Swing Forma
Java applet Swing .
:
Swing , TeacherBase.
:else if(button.equals(TeacherBase)) {
new TeachersFrame().init();
this.dispose();
}
Applet context .Exception in thread "Thread-3" java.lang.NullPointerException
at java.applet.Applet.getAppletContext(Unkn own Source)
-
13th April 2009 17:09 #2Registered User
Join Date: Apr:2009
Location:
Posts: 243
. . , .
-
13th April 2009 20:49 #3
, , .
Code:@Override public void actionPerformed(ActionEvent act) { JButton button = (JButton)act.getSource(); if(button.equals(cancelButton)) { //this.cancelButton.setBackground(Color.RED); this.dispose();//Close the Window; } else if(button.equals(chatButton)) { new Login(); this.dispose(); } else if(button.equals(TeacherBase)) { new TeachersFrame().init(); this.dispose(); } }Code:public void init() { datimeThread = new Thread(this); datimeThread.start(); initGUI(); try { //List<Person> persons = (List<Person>)PersonManager.findByName("zsfdsd"); List<Teacher> customers = (List<Teacher>)TeacherManager.findByName("%"); ((TeacherTableDataModel)personstable.getModel()).addCustomers(customers); } catch(DataAccessException e) { JOptionPane.showMessageDialog(this, e.getMessage()); } }
-
14th April 2009 00:39 #4Registered User
Join Date: Apr:2009
Location:
Posts: 243
, Exception-a. DataAccessException.
NullPointer. , API java.lang.Exception, .
Gobby. , Exception-a
-
14th April 2009 18:31 #5
, , .
Example.rar




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in