I am trying to create a JTable that is a 3X3 grid. I have managed to get a JTable to display on the screen. However, I cannot get the JTable to have just 3 columns and 3 rows. Can someone please help.
The code is as follows:
import javax.swing.*;
import javax.swing.table.*;
import java.awt.*...
I am trying to create a JTable that gets its data from a ResultSet from a query. The JTable uses the DefaultTableModel as in:
private String[] colHeads ={"Name","City","Street"};
private DefaultTableModel model = new DefaultTableModel(colHeads,0);
private JTable...
I have created a JTable that displays the results of a query. My question is how can I have the table show only a certain number of rows and columns and then have scrollbars on each side enabling the user to scroll through tbe un-seen cells?
Thank you,
David Pileggi
I have a Jbutton and want the focus to go to another component when the button is pressed. How Can I do this? Is there a method like setFocus in Java Script?
Thank you
I am creating a database application using Java and JDBC. I need to have a tabbed component. I want to create my code by hand, not by having JBuilder create the code for me. Can anyone please provide me with sample code that just creates a tabbed component.
I am new to Java(the only experience I had with Java is in college, developing toy applications) and need assistance with connecting to a database through a JDBC.
I have made an application using Access that connects to a database through an ODBC and am now trying to duplicate that database...
My companies website usses a Javascript menu that I have created using a product called AllWebMenus Pro. The menu is ok, However, it appears to be slow. So, I would like to find out how to re-create the menu without any software aid.
Can someone please explain how I could do this
Thank you
I am new to JBuilder 4 and need assistance. I have had some training using FORTE for Java from Sun and Java Applets. I am interested in knowing if I could design a GUI interface in Java like I can in Visual Basic. Can someone please help me out getting started.
Thank you
I am in the process of creating a database in MS Access. I need to be able to utilize a grid control(something that will show the data and let the user select which record to edit). Can anyone inform me how I could the grid control?
Thank you
I have a database and I have to have it connect to an external data source through an ODBC connection. I decided to utilize the function transferdatabase like
DoCmd.TransferDatabase acLink, "ODBC Database", "ODBC;DSN=" & datasource1 & ";UID=" & Uname1 &...
I have a database that needs to obtain its data from another database through an ODBC. I am using transferdatabase to obtain the linked tables. I want to be able to have the user enter the user id and password. How can I substitute a string variable in the place where user id goes?
My code is as...
I have a database that has to connect to another database through an ODBC. So I decided to connect with the method that I know how to do and after the main part of database is done, I could then handle the connection through VBA. The temporary method I am using is:
-right click on tables...
I have a datase that needs to be linked up to a database via an ODBC connection. I have linked up the table in the usual way.
-right click on tables
-select link tables
-click on files of type
-scroll down to ODBC databases
-Go to "Machine Data source" tab
-select desired database...
I have created a report that contains a textbox with its control source property pointing to a field in a table making the report show what the table contains. The problem is that I want the text box to show either "buy" or "sell" based on what the field contains. For...
I have created a database with MS Access and would like to incorporate the ability to execute some code every ?minutes while the user can use the database. How can I do this with VBA. I am unable to find a timer control in VBA as the one in Visual Basic 6.0.
Can someone please HELP.
Thank you
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.