Database 1 « Development « Java Swing Q&A





1. JAVA Swing client, Data Access to Remote Database; Ibatis    stackoverflow.com

I've got a Java client that needs to access a remote database. It is the goal to hide database credentials from the user and not hardcode any credentials within the code. ...

2. Best Practices - Swing, Database Access    stackoverflow.com

I'm a newbie to swing development. I have a swing app that needs to access data from a remote sql database. The users of the app are all located in our office. Is ...

3. Quick Swing question: Need to shut down my database on close    stackoverflow.com

I've been building a test application that works with a database that up until recently has been without a UI. I'm adding one now. Problem is, the JFrame is ...

4. Connecting swings with sql    stackoverflow.com

I want to learn sql connectivity with swings(java) can any one suggest a good resource available for my purpose.

5. Automatically connect to a DB in a swing application    stackoverflow.com

I m working on a single user swing application that access an hsqldb database. How can i Automatically run the DB server when a user run the application.? for example, after i ...

6. database in desktop application using swing    stackoverflow.com

I am making a desktop application in java and using MSAccess in data base. I want that if i run the setup of the application the database should be created on client ...

7. GUI for Berkeley DB    stackoverflow.com

I'm using Berkeley DB Java edition, via the DPL interface.
I want to ask if someone knows about any GUI library that could make it easy to browse the data saved in ...

8. connecting to remote database    stackoverflow.com

what is the best architecture to connect to a remote mysqlserver (database) from java swing standalone client app over the internet without using middle server

9. How to store and retrieve object of a swing component in database, java    stackoverflow.com

Hi I have written a small java program based on swing application. Now I want to store the object of my swing application (jframe) in database and I want to retrieve ...





10. Java Swing with database connection    stackoverflow.com

Can anyone please help me on how to create a login form in java swing by using a database connection.

11. How to deploy a Java Swing application with an embedded JavaDB database?    stackoverflow.com

I have implemented an Java Swing application that uses an embedded JavaDB database. The database need to be stored somewhere and the database tables need to be created at the first ...

12. How to configure database for exe.file    stackoverflow.com

Recently I had created a Java Desktop Application, I wish to share it with my friends. I was thinking to convert it into exe file using exe4j, but as for the ...

13. Connection with a remote database using java swing application    stackoverflow.com

I am working with a swing application and the initial part of the application is "user authentication" ..for that module i want to authenticate(verify) the user but the problem is that ...

14. Java application code structure    stackoverflow.com

My Java application is not very big, but I would like to do it the "right way". Looking for suggestions to not make a big mess... I am using Swing, the Swing ...

15. (java) data entry gui builder from (oracle) db schema    stackoverflow.com

Does anyone know of a tool that ingests an Oracle database schema and generates a (preferably but not exclusively Java) data entry GUI? Dabo is an example of a tool that ...

16. System.out.println() from database into a table    stackoverflow.com

At present I pull my data from an MS Access database and within a java application I system.out.print it to the console. I used /t to space out the data, however ...





17. Good example for upload file to Oracle database with GUI in Java    stackoverflow.com

I am looking for a good example of upload & download file to/from Oracle database in Java to get idea. Would you please help me if any of you know a ...

18. how can I show a list of names from my database in Swing Control "Item" in Java netbeans    stackoverflow.com

I am thinking if it is possible to show an item in java swing controls "item". What I want to do is to show Names from my database in a java swing ...

19. MyBatis - how to set database properties from swing application?    stackoverflow.com

Let's say I have swing app and I am using mybatis:

public class MyAppCView extends FrameView {

    public SqlSession session;
    public StaticMapper mapper;

    ...

20. Will my database timestamp fields get automatically converted to GUI user's timezone    stackoverflow.com

I have a bunch of timestamp fields in my java model bean which is sent the view. If a user in another country or timezone tries to view these fields, will ...

21. Should I Learn C# or Java?    stackoverflow.com

I am a second year Computer Engineering student and I need to study in-depth GUI with database programming. I am not completely new to it as I have made some ...

22. Efficient Method for using Multiple Database connection in java    stackoverflow.com

Is it efficient method to open database connection for every database operation and accordingly close or open the connection at the starting and keep calling the same opened connection for multiple ...

23. How to store Objects from Database?    stackoverflow.com

I am developing a java application which will be graphically depicting and organizing hundreds of objects. Each of these objects is loaded in from a SQL database, for use in this ...

24. Help with Java program (Swing + database)    stackoverflow.com

Could somebody give me a suggestion on how to simply and effectively make GUI representation of directories which are contained inside the database. Now, getting information using SQL queries is one ...

25. howto add database to swing desktop application    stackoverflow.com

I have created an desktop application in Netbeans 7.0 and i have the files, app, view and aboutbox. And i want to add an database object that is accessible in the application ...

26. Where do i start    stackoverflow.com

I want to start writing a software for hospital management in java, I wanted to know what flow would you recommend to accomplish that? should I start with swing function, then add ...

27. How to get "datasheet" functionality in Java    stackoverflow.com

I need to rewrite a Microsoft Access database application into Java using JavaDB. Several of the forms in our existing Access database use datasheet view. javax.swing.JTable has almost none ...

28. [solved] java database application. GUI with multiple tables    forums.netbeans.org

agreschk Joined: 17 Sep 2009 Posts: 10 Posted: Mon Oct 05, 2009 4:44 pm Post subject: [solved] java database application. GUI with multiple tables Hello. I am new ...

29. How to insert/create new data in existing javadb database in netbeans desktop GUI application    forums.netbeans.org

View previous topic :: View next topic Author Message michael.u Joined: 30 Apr 2010 Posts: 2 Posted: Wed May 05, 2010 10:54 pm Post subject: How ...

30. Swing connectivity to database    forums.netbeans.org

Hello everyone, I want your precious help . I want to create a GUI that takes user input & submits the inputs to a database or stores the inputs in a ...

31. GUI basic database    forums.netbeans.org

Iam currently studying full time and part of the course which I'm doing now is a customer database. It has name email address a drop down box for display format. A seperate section for email addresses to view customer details and edit details. Ive made the graphical interface but do not know how to get any of the buttons to do ...

32. derby databases and a GUI to interact with it Tutorial but am stuck.    forums.netbeans.org

Ok well I am following this tutorial here http://netbeans.org/kb/docs/java/gui-db.html about derby databases and a GUI to interact with it, I got the database set up and derby running I get the Apache server running, but when I go to create the GUI for the desktop app, and go to add the database or cars, it says that the connected database does ...

33. urgent help needed on integrating database with gui    forums.netbeans.org

i am a new user of netbeans. i have made a data base which has a table having usernames and passwords. i have also made a gui as a desktop application which has text fields for user id and passwords along with a submit and a clear button. i want to integrate the gui with the database so that when i ...

34. Using NetBeans GUI Builder for Java Database Desktop application    forums.netbeans.org

Hi, I've used NetBeans to automatically create a GUI for an Oracle db but I don't know how to add other tables to the project (it only works if I make a new project for each table) I have 15 tables in the db and would like to automatically make a GUI for each of them. The second problem is I ...

35. How can i connect to remote database server using swings    coderanch.com

1.) Normal JDBC should work OK (Just specify the correct URL for the connection, make sure you have the driver, make sure the network is open to the server, etc.) but will probably be a much more "fragile" solution than other options - since you are accessing the DB directly, any DB changes require a client change - whereas with other ...

40. Swings Exampel with Database    coderanch.com

41. Database aware table    coderanch.com

42. regarding JTabe and database    coderanch.com

43. how to connect swings with database    coderanch.com

44. Example for seperating GUI(Swing) and db-logic    coderanch.com

you won't get a simple example for ejb + swing, I suppose. you should think about creating a backend using ejb or some simpler technology for a start. this backend has to provide an API that enables clients to retrieve the data they are interested in (so basically it is better to start with the client and design the API of ...

45. retrieved data from database and tick JTextBox in my form automatically    coderanch.com

hi, I have a JCheckbox on a form and i want to store the info from that JCheckbox into a database (ms access) and also retrieve it back to the form i.e if the checkbox was selected when the form was saved, it should be selected when i retrieve the data. I had go through all the post and i found ...

47. database results in a pane    coderanch.com

Hi all, in my present app,i have to display database search results to a java pane. the results needs to have in different colour codings for different results.for eg if a person searches in a Products(for eg) table, the results should be shown in a pane and if the product costs more than 500$ the result should be shown in red ...

48. New line in database    coderanch.com

I'm not sure if this is the right place to post this, but here i go: i'm building an app that basically allows users to fullfill some forms, which then are persisted to a database. At a certain point i've a multiple choice question: Which strategies did you use in order to achieve your goals? And then i show check boxes ...

49. SWING AND DATABASE    coderanch.com

50. Question Randomization in Access DB    coderanch.com

What I would do in your situation, is make 2 Vectors or something, one for keeping track of which random number has already been picked, and one for your 50 questions. Get a random number, and if it isn't in the first vector, add it to both vectors. After you added 50 random numbers to both vectors, use the vector with ...

51. JTabel value changed - inseert to db.    coderanch.com

52. i need help and advice in a DB access App    coderanch.com

Hi all, i'm developing an application using netBeans 5.0 IDE.This is my first application.It's for a lawyer.i need some advices at my work.i have created a DB file called LawyersDB.i have some static data for one case and some details about each case for example evrey case has it's own case date ,results and so on(those fields might change for one ...

53. DB connection from swings    coderanch.com

54. How to organize the client interface for adding new data into database?    coderanch.com

I see.. /** * Frame to display the JTable object */ public class DataFrame extends JInternalFrame{ public DataFrame(...) { super(title,true,true,true,true); DataFrameTableModel model = new DataFrameTableModel(aConnection,aQuery,headers); TableSorter sorter = new TableSorter(model); JTabletable = new JTable(sorter); ... JScrollPane scroll = new JScrollPane(table); add(scroll); } .... }; class DataFrameTableModel extends AbstractTableModel { /* * constructor */ public DataFrameTableModel(java.sql.Connection connection,String query,String[] titles) { if(connection!=null) conn ...

55. Choosing Database to a Java Swing Standalone Application    coderanch.com

Hello guys! Hope all be just fine! I am willing to develop a Java application (Swing) that will lay on a web-site and can be downloaded to anybody who has access to the site. The users will, then, download the installer - I chose IZPack - and install the app locally, going off-line onward. The user may have Windows 98, 2K, ...

56. Netbeans IDE 6.0 Database Application: question?    coderanch.com

Dear Developers, I'm busy developing a database application with Netbeans IDE 6.0 and Mysql to automate the data management of my Dongo.org project. I have a question as described below. I've created two projects using "New Project/Java/Java Desktop Application/Database Application" for two different tables in my Mysql database. Since my goal is to have the management screens for the different tables ...

57. Swing Database application which runs from Desktop (Win/Lin)    coderanch.com

Hello, I am Experienced Delphi C/S application Programmer willing to shift to JAVA. I have Installed Eclipse and trying out test applications in Java. I have done a plain form with No database connection and it works. Now I want to establish connection with database and do a View/Insert/Edit/Delete test form in java. Can somebody suggest me a good tutorial for ...

58. GUI for mapping db tables    coderanch.com

60. Swing Application w/Embedded Database    coderanch.com

I have been programming in Java for 2 yrs predominately for web applications. I have the opportunity to develop a desktop application(i.e. Swing). I am planning to use the NetBeans 6 and develop with an embedded data base. I have been reading all the available info on line from NetBeans and Derby but am looking for any other good resources or ...

61. Unable to get data from the GUI to the database    coderanch.com

Hi Folks, hoping you can help me as I am very confused at the moment as I have read a number of different articles and tried quite a few diiferent methods, but have not got anywhere! I'm building a simple GUI that sits on a MySQL database to track the guest list...i.e whether they've replied, dietary requirements, whether they are coming ...

62. Unable to get data from GUI to the database    coderanch.com

Hi Folks, hoping you can help me as I am very confused at the moment as I have read a number of different articles and tried quite a few diiferent methods, but have not got anywhere! I'm building a simple GUI that sits on a MySQL database to track my wedding guest list...i.e whether they've replied, dietary requirements, whether they are ...

63. Binding Database Tables in Desktop App    coderanch.com

I have two JTables in a form. Ive created it with palette function of NetBeans 6.5. I've binded them to database tables. These 2 database tables are connected with foreign keys. TableA has a foreign key that is primary key of TableB. My problem is that: I couldnt construct the master/detail relation between them. For exapmle I want to see related ...

64. desktop database app problem, need help...    coderanch.com

I have a project due to tomorrow. I'm following the tutorial about custom desktop app with netbeans. I couldnt find any answer anywhere. I think you are the guys that i should ask that. I created a new detail table that is binded to master table also. its content changes according to selected row in the master table. I added a ...

65. How to retrieve data from database every 10 minutes?    coderanch.com

I made swing application to display data from database (MySQL), but i can't figure it out how to keep the latest data that will be displayed if there new data on database.. should i use timer? and how? Here is my code.. public class MainWindow implements ActionListener{ public static JFrame mainWindow = new JFrame(); private DBConnection mdbc; public Connection conn; final ...

67. best free DB with Swing?    coderanch.com

68. To make database input using Swing    coderanch.com

69. java application and its database into single installer file.    coderanch.com

I'd probably stay away from SQLite (which uses native code) if you expect to distribute the app to unknown client systems. But either HSQLDB or Derby can run in the same JVM as the application, so there's nothing else to install. Their respective web sites have extensive documentation on how that's done, so there's not much point in repeating those steps ...

70. how to handle a database connection    coderanch.com

I'm in need of some design advise regarding handling a database connection for a small GUI. When/how often should you open and close the database file? It seems terribly inefficient to open and close the database every time you need to read or write to it. So far I'm trying to open it once and close it once on exit. Does ...

71. MY swing database application can not connect    coderanch.com

Good day able one, this my applications runs perfectly and insert data to database when i runs it as APPleme.java, but when i make executale and save it as Example.jar, when i runs it, open but on trying to insert values, it refuses to connect to database . can you tell me what is the problem below is the code import ...

72. Offline Desktop application using Swing and any other DB    coderanch.com

Hi, I have to create a desktop application in Swing which user can use Offline. I want to store his data on his m/c only so that he can update/delete/save some data. Now what should I use to save this data on his local m/c? Should I use any DB (but dont want to ask User to install it on his ...

73. Swing And database    coderanch.com

Hello friends, I am just entered in java world. i develop 1 application just basic application . Application is in swing and i attach 1 database (Access ) so that every thing entered in swing component get saved in to database. now i want to make .exe file of this application. i am not getting how to give database in that ...

74. how GUI app connect to JavaDB Database?    go4expert.com

I want to create a REGISTRATION FORM using the GUI application of NETBEANS and I created a javaDB database in NETBEANS but I do not know how to connect the database to my gui registration form. how to connect the buttons through the database. how to store the value from the textbox through the database. how to get the information from ...

75. Employee Database using an Array    java-forums.org

Hello i need your help on how to create an Employee Database using an array to store the employees first name, last name, ID Number, gender, date of birth, address (containing street name, city, state and postal code), employment date, employment status (Probation or Confirmed), designation (job title/position), department, employment type (full-time or part-time) and salary. please its urgent i have ...

76. database    java-forums.org

78. getting database connection    java-forums.org

JDBC has two pieces to it. the API (interfaces) that come with java, and the vendor-supplied database driver (implementation). In your case, because you are trying to connect to the Microsoft SQL server, have you downloaded their JDBC driver .jar file and placed it somewhere into the classpath that is accessible by netbeans or java applications (such as as the JRE/lib/ext/ ...

79. problem with connecting database    java-forums.org

I am staring a new project with swing application framework in netbeans in that i selected newproject->java - java desktop application - basic application-> finish. In that i started doing project in a view class, in that class i take two textboxes and one button to design login page.From that class i connect a database connection to check the textboxes values.the ...

80. getting database connection    java-forums.org

I am staring a new project with swing application framework in netbeans 6.5 in that i selected newproject->java - java desktop application - basic application-> finish. when opening the project i saw three classes about,view,app.In view class i started doing my project in that class i take two textboxes and one button.the textboxes names are usernamee and password.and a button name ...

81. quiz program using access as database    java-forums.org

82. How to arrange wideness of database columnns for a resultset ?    java-forums.org

Hi, I ave a poroblem and could not find a solution on the internet yet. I am using JDBC to get data from an access database. I use resultset and read funciton (that I got from internet) to view displayed results. What I want to do is, see some columns not wide, and some columns wider. For example, ID columsn which ...

83. JTableModel and Relation Database    java-forums.org

I am learning how to use JTables. I have learned how to pass static content into the jTable constructor to populate it. I now want to use the AbstactTableModel class and the resultSet from mysql database to populate the table but i don't have a clue how to implement it can somebody help me. I already know how to use the ...

85. HELP, LOADING GUI FROM DB    zkoss.org

package ctrl; import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.Executions; import org.zkoss.zk.ui.metainfo.PageDefinition; import org.zkoss.zk.ui.util.GenericForwardComposer; import org.zkoss.zul.*; public class MyComposer extends GenericForwardComposer { private Div cnt; @Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); } public void onClick$loadBtn(){ String userName = "Jimmy"; String strFromDB = "

86. UiFactory, GUI and Data from DB,caching...    zkoss.org

Orignial message at: https://sourceforge.net/forum/message.php?msg_id=4128065 By: oberinspector hello, As proposed by tom in an earlier post i want to extend UiFactory and overwrite getPagedefinition(...) to retrieve the page content (GUI and Data) from cache or from DB. How can i create a PageDefinition from a ZUL-XML String like:

88. Connecting a GUI to a Derby Database with NetBeans IDE - Example    forums.oracle.com

Hello, I did the tutorial, Connecting a GUI to a Derby Database. At: http://www.netbeans.org/kb/50/gui-database.html but I am getting the following error: JdbcRowSet (setTypeMap): Connection.setTypeMap is not supported Since I am pretty new to Java and NetBeans, it is probably something pretty basic, that is causing the error. Thanks for your help. ps: one other thing I am trying to figure out ...

89. Desktop database with swing issues...    forums.oracle.com

Hi!I have some problems writing a database application (it has 5 tables) which involves displaying it in a JTable.Here are my questions: 1 - If I display every of my tables into a JTable and I mantain global ResultSets for each table so I can insert,update,delete from each is that a bad design regarding the memory hunger?Share with me your alternatives. ...

92. Linking Database to GUI    forums.oracle.com

I am using Microsoft Access Database. My java program links my GUI to the database. I have placed a password on opening my database so when my program tries to connect to it, it gives this error.... java.sql.SQLEXCEPTION:[Microsoft][ODBC Microsoft Access Driver]Not a valid password. How do I connect to my database by entering the password so it can open.

93. Requiring several database queries for my GUI - where to put the reads?    forums.oracle.com

Requiring several database queries for my GUI Hi all, I am to create a GUI with a couple of drop downs These are populated from database queries, as well as the main program reading from the database based on all inputs in the GUI. Should I put all database reads into a class as seperate methods. e.g, one method for the ...

94. GUI write Queries to a database    forums.oracle.com

/* ****************************************************************************** //public static void main(String args[]) throws SQLException { //DriverManager.registerDriver( new oracle.jdbc.OracleDriver() ); // Class.forName("oracle.jdbc.driver.OracleDriver"); String serverName = "127.0.0.1"; int port = 1521; String user = "hr"; String password = "orcl"; String SID = "XE"; String URL = "jdbc:oracle:thin:@" + serverName + ":" + port + ":" + SID; Connection conn = DriverManager.getConnection(URL, user, password); String DEFAULT_QUERY = "SELECT * ...

95. Design question - Swing GUI and Database    forums.oracle.com

Hi, I have a swing GUI which I have built in one class. I would like to have all my database reading/writing in a seperate class. What I cant figure out is a good way of doing this to keep things seperate. One idea is every time a database action needs to take place, I pass the relevant JPanel to the ...

96. swing and database    forums.oracle.com

97. View database from GUI help    forums.oracle.com

98. Connect GUI to database    forums.oracle.com

I am creating a library system at the moment using netbeans, i have used the GUI builder to create my main screen, which basically has menu button (file, members, books, loan, help) I have managed to get the menu items (for example under members it says "add a new member" and i have managed to get it so that when i ...

99. Application design ( database<->class<->gui)    forums.oracle.com

100. Database changes not being reflected in the GUI created    forums.oracle.com

cbdb.setEditable(true); } }catch(Exception e) { String str = e+""; int first=errors(str); String obj = str.substring(first+1,str.length()); JOptionPane.showMessageDialog(this, obj,"Exception", JOptionPane.ERROR_MESSAGE); System.err.println("error in creating database : "+e); } } [code] Though the code creates a database, I am not able to find the created database until I close the window once and executes the program again. kindly help me. Regards, A.S.Kalyan