dcsimg
opening one project through a call from behind another project
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   alisha_khan
Posted On:   Wednesday, July 27, 2005 08:16 AM

hi everyone I am using Jbuilder8 on linux. I need to open one project through a call behind a button in another project. I have tried importing the package ,giving path of required classes in "project properties->required libraries" but it still gives me the error on the line containing the statement new serverideClass(); where serverideClass is the main class of the project that i want to invoke behind the button jButtonC(this button is in the first project). following is one file from the project that gives error. Can anyone pls help me in this regard. I have started feeling really hopeless:( I need a response urgently Thanks, Alisha package helloword; import serveride.*; import java.awt.   More>>

hi everyone
I am using Jbuilder8 on linux. I need to open one project through a call behind a button in another project. I have tried importing the package ,giving path of required classes in "project properties->required libraries" but it still gives me the error on the line containing the statement new serverideClass(); where serverideClass is the main class of the project that i want to invoke behind the button jButtonC(this button is in the first project). following is one file from the project that gives error. Can anyone pls help me in this regard. I have started feeling really hopeless:( I need a response urgently
Thanks,
Alisha


package helloword;

import serveride.*;
import java.awt.*;
import javax.swing.*;
import com.borland.jbcl.layout.*;
import java.awt.event.*;
import javax.swing.border.*;

/**
* Title:
* Description:
* Copyright: Copyright (c) 2004
* Company:
* @author not attributable
* @version 1.0
*/

public class IDEDialog extends JDialog {
JPanel panel1 = new JPanel();
JTextArea jTextAreaCMS = new JTextArea();
JButton jButtonC = new JButton();
XYLayout xYLayout1 = new XYLayout();
TitledBorder titledBorder1;
TitledBorder titledBorder2;
JButton jButton1 = new JButton();
JPanel jPanel1 = new JPanel();
JTextArea jTextAreaRunIDE = new JTextArea();


public IDEDialog(Frame frame, String title, boolean modal) {extends serverideClass {
super(frame, title, modal);
try {
jbInit();
pack();
}
catch(Exception ex) {
ex.printStackTrace();
}
}


public IDEDialog() {
this(null, "", false);
}
private void jbInit() throws Exception {
titledBorder1 = new TitledBorder("");
titledBorder2 = new TitledBorder("");
panel1.setLayout(null);
jTextAreaCMS.setBackground(SystemColor.activeCaptionBorder);
jTextAreaCMS.setEnabled(true);
jTextAreaCMS.setFont(new java.awt.Font("Serif", 1, 20));
jTextAreaCMS.setBorder(BorderFactory.createEtchedBorder());
jTextAreaCMS.setCaretColor(Color.white);
jTextAreaCMS.setEditable(false);
jTextAreaCMS.setText(" Cluster Management System");
jTextAreaCMS.setBounds(new Rectangle(17, 0, 405, 32));
this.getContentPane().setLayout(xYLayout1);
jButtonC.setBounds(new Rectangle(128, 97, 153, 24));
jButtonC.setEnabled(true);
jButtonC.setFont(new java.awt.Font("Serif", 1, 15));
jButtonC.setActionCommand("buttonIDE");
jButtonC.setSelectedIcon(null);
jButtonC.setText("C/C++ IDE ");
jButtonC.addActionListener(new IDEDialog_jButtonC_actionAdapter(this));
jButtonC.setMnemonic('C');
xYLayout1.setWidth(409);
xYLayout1.setHeight(242);
jButton1.setBounds(new Rectangle(128, 137, 154, 23));
jButton1.setEnabled(false);
jButton1.setFont(new java.awt.Font("Serif", 1, 15));
jButton1.setText("Java IDE");
jPanel1.setBorder(BorderFactory.createEtchedBorder());
jPanel1.setBounds(new Rectangle(17, 33, 404, 205));
panel1.setBorder(null);
jTextAreaRunIDE.setBackground(UIManager.getColor("Button.background"));
jTextAreaRunIDE.setFont(new java.awt.Font("Serif", 1, 17));
jTextAreaRunIDE.setText("Run IDE");
panel1.add(jTextAreaCMS, null);
panel1.add(jButtonC, null);
panel1.add(jButton1, null);
panel1.add(jPanel1, null);
jPanel1.add(jTextAreaRunIDE, null);
this.getContentPane().add(panel1, new XYConstraints(-15, 2, 434, 240));
}

void jButtonC_actionPerformed(ActionEvent e) {
new serverideClass();

}
}

class IDEDialog_jButtonC_actionAdapter implements java.awt.event.ActionListener {
IDEDialog adaptee;

IDEDialog_jButtonC_actionAdapter(IDEDialog adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButtonC_actionPerformed(e);

}
}

   <<Less
About | Sitemap | Contact