Search:

Type: Posts; User: emilemc

Search: Search took 0.07 seconds.

  1. Replies
    12
    Views
    1,261

    Re: Variable Loosing Data?

    in the public searchProps(int propID) class:

    Connection conn = DriverManager.getConnection("jdbc:odbc:PropertyOracleDatabase");

    But that is not the issue
  2. Replies
    12
    Views
    1,261

    Re: Variable Loosing Data?

    Here's the searchProps class:


    import java.awt.Container;
    import java.sql.*;
    import java.util.*;
    import javax.swing.*;


    public class searchProps
  3. Replies
    12
    Views
    1,261

    Re: Variable Loosing Data?

    I have created a LineObject which takes line in as a parameter. I call getLine() from the void addComponents() but returns a null pointer exception?
  4. Replies
    12
    Views
    1,261

    Re: Variable Loosing Data?

    I've tried without initializing line first, then it just prints out null.

    It prints out the data fine in the searchProps method but null when called from addComponents
  5. Replies
    12
    Views
    1,261

    Variable Loosing Data?

    I am having some trouble with the below code for my assignment. I am trying to display the
    line in the
    JTextArea. But for some reason the
    line displays blank when called in
    void...
Results 1 to 5 of 5