Article View: borland.public.jbuilder.java.api
Article #1833Q] I wonder why this source occur runtime error In JBuilder...
From: nautilus
Date: Mon, 20 Aug 2001 06:33
Date: Mon, 20 Aug 2001 06:33
92 lines
3629 bytes
3629 bytes
Following source is worked at general console... with jdk 1.3.1
but.. that isn't worked with JBuilder 4.0 Enterprise (with Jbuilder JDK, or
Sun JDK1.3.1)
and occur runtime error..
[ java.lang.VerifyError: (class: ClientMainFrame, method: jbInit signature:
()V) Incompatible object argument for function call
Exception in thread "main" ]
Plz. give me a solutions to a problem.......
import java.awt.*;
import java.awt.event.*;
public class ClientMainFrame extends Frame
{
Panel pnlTop = new Panel();
Panel pnlMid = new Panel();
Panel pnlBtm = new Panel();
BorderLayout borderLayout1 = new BorderLayout();
CardLayout cardLayoutList = new CardLayout();
Panel panel1 = new Panel();
Panel panel2 = new Panel();
BorderLayout borderLayout2 = new BorderLayout();
BorderLayout borderLayout3 = new BorderLayout();
List list1 = new List();
List list2 = new List();
Button button1 = new Button();
GridBagLayout gridBagLayout1 = new GridBagLayout();
public ClientMainFrame()
{
try
{
jbInit();
}
catch(Exception e)
{
e.printStackTrace();
}
}
private void jbInit() throws Exception
{
this.setLayout(gridBagLayout1);
pnlBtm.setLayout(borderLayout1);
pnlMid.setLayout(cardLayoutList);
panel1.setLayout(borderLayout2);
panel2.setLayout(borderLayout3);
button1.setLabel("button1");
button1.addActionListener(new java.awt.event.ActionListener()
{
public void actionPerformed(ActionEvent e)
{
button1_actionPerformed(e);
}
});
list2.setBackground(new Color(192, 192, 138));
list1.setBackground(new Color(192, 184, 217));
this.add(pnlTop, new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0
,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new
Insets(0, 0, 0, 0), 290, 40));
this.add(pnlMid, new GridBagConstraints(0, 1, 1, 1, 1.0, 1.0
,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new
Insets(0, 0, 0, 0), 300, 300));
pnlMid.add(panel1, "panel1");
panel1.add(list1, BorderLayout.CENTER);
pnlMid.add(panel2, "panel2");
panel2.add(list2, BorderLayout.CENTER);
this.add(pnlBtm, new GridBagConstraints(0, 2, 1, 1, 1.0, 1.0
,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new
Insets(0, 0, 0, 0), 225, 21));
cardLayoutList.show(pnlMid,"panel1");
pnlBtm.add(button1, BorderLayout.CENTER);
this.setVisible(true);
this.pack();
}
void button1_actionPerformed(ActionEvent e)
{
cardLayoutList.next(pnlMid);
}
public static void main(String[] args)
{
new ClientMainFrame();
}
}
Technical Details
Message-ID:
<3b80ad92_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!128.230.129.106!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!novia!novia!intgwlon.nntp.telstra.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,5f58e3a0f0ca848f,start X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-08-19 23:33:34 PST From: "nautilus" <nautilus@hananet.net> Newsgroups: borland.public.jbuilder.java.api Subject: Q] I wonder why this source occur runtime error In JBuilder... Date: Mon, 20 Aug 2001 15:33:08 +0900 Lines: 96 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 211.212.133.102 Message-ID: <3b80ad92_2@dnews> X-Trace: dnews 998288786 211.212.133.102 (19 Aug 2001 23:26:26 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!128.230.129.106!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!novia!novia!intgwlon.nntp.telstra.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews