• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 254
  • Last Modified:

(Java) : how can i let the user to popup the connection window by himself

Hello Experts
I'm using Jbuilder X to develop my applications.
I have a Database object (from Dataexpress tab) in my application
now,  how can i let the user to popup the connection window by himself in runtime and set the connectionstring descriptor
to connect to my database files ?

thanks alot for your help
0
Farzadmehr
Asked:
Farzadmehr
  • 3
  • 2
2 Solutions
 
durgaprasad_jCommented:
hi,
 as i understood your problem, you can just use JDialog to show JTextField to get the connnection string from the user.
 Once he clicks the OK button in the JDialog, you can get the values of that JTextField and connect to the database using that descriptor string.

DP
0
 
FarzadmehrAuthor Commented:
Hi durgaprasad_j
No I want my application show Connection dialog like When i am write java code with jbuilder and i use database from dataexpress and I change property (connection)
I want show this dialog to user when program is run.
Ok
0
 
durgaprasad_jCommented:
hi,
         Personally i dont have any experience with JBuilder.
         do you mean that you want to show a dialog, if you are not able to connect to database with that connection string ??.
          If this is the problem, you catch the exception, in that catch block show a dialog to user.
Hope this helps
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
Mayank SAssociate Director - Product EngineeringCommented:
>> I want show this dialog to user when program is run.

It doesn't have anything to do with JBuilder, then. Because your program could run even without JBuilder. You would need a simple JDialog or a JOptionPane.showInputDialog () for letting the user enter the connection-string.
0
 
Mayank SAssociate Director - Product EngineeringCommented:
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Split.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now