Try manually editing the .vbp file in notepad to ensure that all modules paths (class, forms, etc) are correct
Sure of the code (correct)
Is there a place must particular to put the folder in which?
Try manually editing the .vbp file in notepad to ensure that all modules paths (class, forms, etc) are correct
Sure of the code (correct)
Is there a place must particular to put the folder in which?
make sure all your class files are in the same directory as your project
it is in same directory(folder)
Hello guys,
I wrote a program VB 6
At the opening show me this window
Please help quickly....:)
Hello guys
I write a program and of the functions that write function calculates the speed of the CPU of a computer
Got a problem here and I did not know how to write it??
Can you help me ...?
Thank you ^ _ ^
ramjeev,
yes I want these ..^_^
I am happy..
realy ..thanks you
please help me ^_^
I want using thread in this program
but I don't know ..??
____________________________________________________
import java.util.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
//------------------------------------------------------------------------------------------------
public class MyApp extends JFrame {
// Data
static boolean stopped = true; // Is the counting stopped? (True or False) --> shared variable
static JTextField number;
//------------------------------------------------------------------------------------------------
// Constructor
public MyApp()
{
// set the GUI
super( "CAP 332 - Assignment 6: Learning Java Threads" );
// create the 2 buttons
// 1) The start button
JButton startButton = new JButton("Start");
startButton.addActionListener(new StartButtonHandler());
startButton.setToolTipText("Click here to start counting.");
// 2) The stop button
JButton stopButton = new JButton("Stop");
stopButton.addActionListener(new StopButtonHandler());
stopButton.setToolTipText("Click here to stop counting.");
// create the text field
number = new JTextField(20);
number.setEditable(false);
number.setText("0");
// create the panels
JPanel row1Panel = new JPanel();
JPanel row2Panel = new JPanel();
// create the first row
row1Panel.add(number);
// create the second row
row2Panel.setLayout(new GridLayout(1,2)); // Grid layout with 1 row and 2 columns for the 2
buttons
row2Panel.add(startButton);
row2Panel.add(stopButton);
// create a split panel to include the 2 row panels
JSplitPane allPanel = new JSplitPane( JSplitPane.VERTICAL_SPLIT, row1Panel, row2Panel );
allPanel.setOneTouchExpandable( false );
allPanel.setDividerLocation( 50 );
// add this panel to the content pane
getContentPane().add(allPanel);
setSize(500,150);
setVisible( true );
}// end constructor
//------------------------------------------------------------------------------------------------
// main method
public static void main (String[] args)
{
MyApp app = new MyApp ();
app.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
}// end main
//------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
// PRIVATE CLASSES
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
private class StartButtonHandler implements ActionListener{
public void actionPerformed(ActionEvent …
please help me ^_^
I want using thread in this program
but I don't know ..??
____________________________________________________
import java.util.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
//------------------------------------------------------------------------------------------------
public class MyApp extends JFrame {
// Data
static boolean stopped = true; // Is the counting stopped? (True or False) --> shared variable
static JTextField number;
//------------------------------------------------------------------------------------------------
// Constructor
public MyApp()
{
// set the GUI
super( "CAP 332 - Assignment 6: Learning Java Threads" );
// create the 2 buttons
// 1) The start button
JButton startButton = new JButton("Start");
startButton.addActionListener(new StartButtonHandler());
startButton.setToolTipText("Click here to start counting.");
// 2) The stop button
JButton stopButton = new JButton("Stop");
stopButton.addActionListener(new StopButtonHandler());
stopButton.setToolTipText("Click here to stop counting.");
// create the text field
number = new JTextField(20);
number.setEditable(false);
number.setText("0");
// create the panels
JPanel row1Panel = new JPanel();
JPanel row2Panel = new JPanel();
// create the first row
row1Panel.add(number);
// create the second row
row2Panel.setLayout(new GridLayout(1,2)); // Grid layout with 1 row and 2 columns for the 2
buttons
row2Panel.add(startButton);
row2Panel.add(stopButton);
// create a split panel to include the 2 row panels
JSplitPane allPanel = new JSplitPane( JSplitPane.VERTICAL_SPLIT, row1Panel, row2Panel );
allPanel.setOneTouchExpandable( false );
allPanel.setDividerLocation( 50 );
// add this panel to the content pane
getContentPane().add(allPanel);
setSize(500,150);
setVisible( true );
}// end constructor
//------------------------------------------------------------------------------------------------
// main method
public static void main (String[] args)
{
MyApp app = new MyApp ();
app.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
}// end main
//------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
// PRIVATE CLASSES
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
private class StartButtonHandler implements ActionListener{
public void actionPerformed(ActionEvent …
I want creat thread but I dont know...
import java.util.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
//------------------------------------------------------------------------------------------------
public class MyApp extends JFrame {
// Data
static boolean stopped = true; // Is the counting stopped? (True or False) --> shared variable
static JTextField number;
//------------------------------------------------------------------------------------------------
// Constructor
public MyApp()
{
// set the GUI
super( "CAP 332 - Assignment 6: Learning Java Threads" );
// create the 2 buttons
// 1) The start button
JButton startButton = new JButton("Start");
startButton.addActionListener(new StartButtonHandler());
startButton.setToolTipText("Click here to start counting.");
// 2) The stop button
JButton stopButton = new JButton("Stop");
stopButton.addActionListener(new StopButtonHandler());
stopButton.setToolTipText("Click here to stop counting.");
// create the text field
number = new JTextField(20);
number.setEditable(false);
number.setText("0");
// create the panels
JPanel row1Panel = new JPanel();
JPanel row2Panel = new JPanel();
// create the first row
row1Panel.add(number);
// create the second row
row2Panel.setLayout(new GridLayout(1,2)); // Grid layout with 1 row and 2 columns for the 2
buttons
row2Panel.add(startButton);
row2Panel.add(stopButton);
// create a split panel to include the 2 row panels
JSplitPane allPanel = new JSplitPane( JSplitPane.VERTICAL_SPLIT, row1Panel, row2Panel );
allPanel.setOneTouchExpandable( false );
allPanel.setDividerLocation( 50 );
// add this panel to the content pane
getContentPane().add(allPanel);
setSize(500,150);
setVisible( true );
}// end constructor
//------------------------------------------------------------------------------------------------
// main method
public static void main (String[] args)
{
MyApp app = new MyApp ();
app.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
}// end main
//------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
// PRIVATE CLASSES
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
private class StartButtonHandler implements ActionListener{
public void actionPerformed(ActionEvent e)
{
stopped = false;
long counter = 1;
while (! stopped) …