'How to call an event handler function written in one JFrame in another jframe?
How to make function selectRecords("select * from Seva_Details"); written in a JFrame accessible in another, separate JFrame?
public void selectRecords(String SQL_Query)
{
try
{
Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
Rs1 = stmt.executeQuery(SQL_Query);
}
catch(Exception ex123) {}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
