Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by eh171

  1. eh171

    IMAGE

    I am trying to insert a image to a panel as follows but it does not work: ImageIcon image = new ImageIcon("image.gif"); panel.add(image,BorderLayout.EAST); p.s. the image is in the same location as the java file
  2. eh171

    JLabel Hide

    What I am trying to do is display a JLabel and then after 5 seconds I wish to hide the label. I have the following code but it does not work: label.setText("hi") try {Thread.sleep(5000);} catch (InterruptedExecution e){} label.setText(null) I also tried repaint but didnt work...
  3. eh171

    PASSING PARAMETERS

    Right in class1 i have a JTable. When the user selects a row i have done coding to return the value displayed in the selected row (column 0). Class1 coding is as follows: class1 public static string s1; class1Constructor(){ tableGUI insertDataInTable } mousepressed(){ row =...
  4. eh171

    SETTING FIELD IN ANOTHER CLASS

    I have 3 classes: class1 extends Jpanel, class2 extends Jpanel, class3 extends JFrame. What I am trying to do is set the textfields in class1 from class2 according to user input: user enters an ID and presses a button (in another frame: class4) and data relating to that ID e.g. name, number...
  5. eh171

    Which combobox selected

    I have 3 comboboxes in a frame. When the user clicks on 1 of the boxes I want to return the box selected???
  6. eh171

    I have 3 classes: class1, class2 an

    No error mate. Its sorted
  7. eh171

    I have 3 classes: class1, class2 an

    I have 3 classes: class1, class2 and timeClass. class1 and class2 each have a textfield, and what I am trying to do is display the time (from time class) in both textfields of the different classes (NOTE the time class is working correctly). I can get the time to display in 1 class textfield but...
  8. eh171

    SETTING TEXTFIELD IN ANOTHER CLASS

    I have 2 classes: class1, class2. In class2 I have a textfield. In class1 I am trying to set the textfield in class2 with text: class2.textField_name.setText(string). This does not work - null pointer exception???
  9. eh171

    ANOTHER java.sql.date PROBLEM!!!

    Hi. I am trying to get a date object in the form 2003/02/01 14:45:23. newbob your code just gets me the date. How would I also get the time????

Part and Inventory Search

Back
Top