How to use/populate JTable in Jdev 3.0 ?

Is there any tutorial or examples available
on how to use JTable in JDeveloper 3.0 ?
After creating business objects project
and application, what steps do I take to
a) put a jtable class object into my application ? I have tried creating a
frame (JFrame) using new\objects\frame, and
then dragging JTable into the UI, but don't
know how to connect things from there.
b). manipulate/populate the grid from there
using the business objects created
earlier in the project ?
The html documentation included with JDev 3 provides some clues on individual key word searches, but does not at all connect the dots. What is needed
here is a tutorial like some of the others
included.
null

You may find the following steps useful.
Create an InfoBus form by:
Select menu File | New...
Select "InfoBus Data Form" and press OK
Go through the wizard and create a
Detail or Master Detail form.
Be sure to place the detail in a GRID control (last few pages of wizard).
Then look at the generated code. This form will contain a useful class GridControl which contains a JTable element. Most noteworthy is that the JTable is already hooked up to the data source.
In particular, the GridControl that is in
your source has a public method:
public final JTable getTable()
This gives you access to the JTable to further customize the way you need.
Ofcourse there are other tutorials that touch
on the above, but you won't find a tutorial
on how to hook up a JTable to a database because we have many more advanced classes
(InfoSwing: GridControl,...) that do that
and much more for you. You will be much more
productive if you rely on the additional InfoSwing components.
I hope this helps,
John@Oracle JDeveloper Team http://technet.oracle.com
null

Similar Messages

  • How to use connection pooling in JDev 10.1.2

    In all the ADF apps I have created, I have always used the defined connection in JDev and deployed the password. I'm now being told I need to stop doing that and start using oc4j connection pool with datasource definition so the passwords won't have to be deployed.
    I pretty much need step by step instructions on how to do this becasue I've never done it. Any help would be greatly appreciated. Thanks.

    Hi,
    How about these tutorials?
    http://www.oracle.com/technology/tech/java/newsletter/articles/oc4j_data_sources/oc4j_ds.htm
    http://www.oracle.com/technology/products/jdev/tips/duff/mysql_and_oc4j3.html

  • How to use sql request with Jdev and database connection

    Hello,
    I have a login page with simple username and password inputsecret text and a button validate! I would like, when the user click on the validate button, to check in the database that the user and password matches. I've done the "Method BIndind..." with the commandButton_action and the database connection works fine.
    How can I use an already existing procedure, say authenticate, wich is stored in the database to authenticate my user ?
    Do I have to create a jdbc connection in java even if I've done the connection with the "create new database connection" wizard ?
    String s1 = "jdbc:oracle:thin:@address:1521:ORCL";
    System.out.println( "Connecting with: " );
    System.out.println( s1 );
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    this.conn = DriverManager.getConnection( s1,"user","pass");
    thanks for your help

    Creating a connection to the DB in JDeveloper doesn't mean that your application is now connected to the DB - so yes you do need to create a connection to the database using JDBC.
    One note - if you are trying to do a database user authentication the following is probably the better way to go about it:
    http://www.oracle.com/technology/products/jdev/howtos/1013/oc4jjaas/oc4j_jaas_login_module.htm

  • How use the jtable in java applete

    hi master
    sorry i again Disturb you
    sir pleae give me idea how i use the jtable in java applete
    please send me code
    thank's
    aamir

    Hi,
    see http://www.exampledepot.com/
    Frank

  • How to use #{!adfFacesContext.initialRender} ?

    Hi,
    My use case is based on Shays document, http://blogs.oracle.com/shay/entry/preventing_queries_when_page_f. where when my page loads i have a input box where the user enters an item code and clicks on find which is used as a bind variable in the VO. there is a table to be shown based on the result. So i have configured "#{!adfFacesContext.initialRender}" on the iterator so that the table is rendered as empty on page load. However when i enter some value in he input box and press search, my query gets executed but the table is not refreshed despite setting PPR. If i remove "#{!adfFacesContext.initialRender}" then it works properly.
    Any inputs how to use it?
    thnks
    Jdev 11.1.1.5

    Hi,
    thought I could reproduce the issue but for me and JDeveloper 11g (11.1.2.1) your code works. All I changed was to set partialSubmit="true" to the commend button to avoid a full page refresh. I then also tried using an action listener in a managed bean to invoke the ExecuteWith params operation and also to set the viewScope property and this also worked.
        public String cb1_action() {
            BindingContainer bindings = getBindings();
            ADFContext adfContext = ADFContext.findCurrent();
            adfContext.getViewScope().put("refreshTable", true);
            OperationBinding operationBinding = bindings.getOperationBinding("ExecuteWithParams");
            Object result = operationBinding.execute();
            if (!operationBinding.getErrors().isEmpty()) {
                return null;
            return null;
        }Frank
    Edited by: Frank Nimphius on Feb 21, 2012 6:42 PM

  • How to use Jtable cell Editor

    HI,
    Here trying to populate the ImageIcon using JLabel in Jtable cell. For that I used DefaultCellRenderer. For implement the mouseListener to label I used the DefaultCellEditor. I am facing one problem here. After editing the label I selected the second row of the table, the first row image is not displaying. Can any one help on this issue?
    public class LabelCellEditor extends DefaultCellEditor {
    public LabelCellEditor(final JCheckBox checkBox) {
    super(checkBox);
    public Component getTableCellEditorComponent(final JTable table, final Object value,
    final boolean isSelected, final int row, final int column) {
    Color background = null;
    background = ColorManager.SELECTED_ROW_BGCOLOR;
    labelVal = (JLabel) value;
    labelVal.setOpaque(true);
    labelVal.setFont(FontManager.TABLE_DATA_FONT);
    labelVal.setBackground(background);
    labelPanel = new JPanel();
    labelPanel.setOpaque(true);
    labelPanel.setBackground(background);
    labelPanel.setLayout(new FlowLayout(FlowLayout.LEFT));
    labelPanel.setBorder(new EmptyBorder(5, 0, 0, 0));
    labelPanel.add(labelVal);
    return this.labelPanel;
    public Object getCellEditorValue() {
    return this.labelPanel;
    public class LabelCellRenderer extends DefaultTableCellRenderer {
    public LabelCellRenderer(final int alignment) {
    //setHorizontalAlignment(alignment);
    this.align = alignment;
    public Component getTableCellRendererComponent(final JTable table, final Object value,
    final boolean isSelected, final boolean hasFocus, final int row, final int column) {
    if (value != null) {
    if (value instanceof JLabel) {
    labelVal = (JLabel) value;
    labelVal.setOpaque(true);
    labelVal.setFont(FontManager.TABLE_DATA_FONT);
    labelVal.setBackground(background);
    labelVal.setHorizontalAlignment(this.align);
    labelVal.setBorder(new EmptyBorder(0, LRPADD, 0, LRPADD));
    JPanel panel = new JPanel();
    panel.setOpaque(true);
    panel.setBackground(background);
    panel.setLayout(new FlowLayout(FlowLayout.LEFT));
    panel.setBorder(new EmptyBorder(5, 0, 0, 0));
    panel.add(labelVal);
    return panel;
    return this;
    }

    With more than 30 postings you should know by now how to use the "Code" tags when posting code so the code reatains its original formatting and is therefore more readable.
    There is no need to create a custom editor, here is a simple example.

  • Hey, How do I populate my replace colors color library in illustrator? I tried to replace color on a traced/ vectorized image and when I selected and went to the color library CC said I need to use a valid username. I was already logged into my adobe acco

    Hey, How do I populate my replace colors color library in illustrator? I tried to replace color on a traced/ vectorized image and when I selected and went to the color library CC said I need to use a valid username. I was already logged into my adobe account.

    Can you please show a screenshot of what exactly you want to replace where?

  • How to use CrossReference and DVM in ODI &how to populate data into Xref

    Can any one tell how to use Domain Value Maps and Cross Referencing in ODI?
    DVM or Domain Value Map are created and used in ESB console of SOA suite.
    My actual requirement is as follows:
    The below steps describe loading data from ERP Application 1 to ERP Application 2.
    1. The Source Application ERP APP1, populates the interface table using their native technology.
    2. A job scheduler invokes the Source side ODI Package.
    3. ODI then extracts the data from Source Interface table and populates the Target Interface table.
    4. After populating the Target interface table the ODI populates the X-ref table with App 1 ID and generated common ID.
    5. The ODI either deletes or updates the rows that were processed from the Source interface table.
    6. On the Target Application ERP APP2, the native application extracts data from target interface table and populates target database there by generating ERP Application 2 ID.
    7. A job scheduler on the Target application invokes the ODI package to populate the Application 2 ID onto the Xref table matching on the Common ID.
    I just want to know :
    1. How to populate data into the Xref table from Source datastore
    2. And if data is successfully laoded from target datastore to actual base table of target then how to populate the target id into the cross reference table.

    can anyone suggest me some answer, then it would be of great help?

  • How to use Connection Pool in ADF ear file creaion from jDev 10.1.3

    Hi,
    We are developing big application in ADF with 10 different modules. We are creating ear file with data source setting.
    How to use connection pool while creating ear file from jDev. Connection pool is alreday created in Application Server 10g.
    What all the setting we need do to make use of connection pool while creating ear file jDev.
    Thanks

    User,
    If you are using ADF Business Components, you can right-click each application module, select "configurations" and edit the configuration you are using. On the initial page of the configuration dialog, you can specify to use either a JDBC URL or a Datasource - you just need to choose Datasource and then provide the name by which to access it.
    John

  • How to use checkboxes in jtable ?

    I am trying to use checkboxes in
    JTable,I set the property in the jtable column to boolean.The proplem is that i do no know how to use this property in java program.My intension is that,I will have a java form and a java button on it,by clicking the button, i will have to write a code,for example a code that fetches records from a table and displays them on the jtable(on the user interface),when I select the check box corresponding to any row,It should let me either delete or edit that row and this modification has to be reflected to the table in the database. At this time,i can fetch and display but i can not delete or modify any row because I do no know how to use the check box inside the jtable.
    Thank you for your help!

    Multi-post: http://forum.java.sun.com/thread.jspa?threadID=5273661&tstart=0

  • How to use AbstractTableModel in JTable

    hi
    i want how to use AbstractTableModel in Jtable
    plz give code

    Multi-post: http://forum.java.sun.com/thread.jspa?threadID=5273661&tstart=0

  • How to use PasswordDigest to pass credentials in client (Jdev)

    Hi',
    I have a secured web service in OSB, and to call it I have created a proxy client in Jdev,
    I am able to call it by passing username/password using PasswordText, now I am not getting
    how to use PasswordDigest to pass credentials, please give me some pointers or sample,
    also do I need to perform some changes in the server before doing this.
    Thanks
    Yatan

    Please help

  • How can i populate records using LOV value in form 6i

    Create a form based on the following output use EMP Table
    Create a non Database Block i.e Control Block----> Dept No
    Create a Database Block -EMP
    Create an LOV for the Dept no from dept table.
    For the Current Dept No . Populate the Employee Records
    How can i populate records using LOV value????
    thanks

    How can i populate records using LOV value in form 6i Start by posting in the correct forum: {forum:id=82}
    (Seriously: after making all your previous posts in the Forms forum, how do you end up posting in this one? Is it because the Forms forum has changed category?)

  • How can i populate records using LOV value

    Create a form based on the following output use EMP Table
    Create a non Database Block i.e Control Block----> Dept No
    Create a Database Block -EMP
    Create an LOV for the Dept no from dept table.
    For the Current Dept No . Populate the Employee Records
    How can i populate records using LOV value????
    thanks

    Hi maddyd2k
    How can i populate records using LOV valueIt's not clear what u r trying to do create, create then want to...
    1.Pls Create a non-db item db set to > no named DEPT_NAME
    2. when creating the LOV assign the DEPT_NAME FROM DEPT table to that displayed item and u have also to assign the Dept No selected to the Dept No in the emp block
    To populate or display DEPT_NAME after Query - the If i got ur problem then - u need to cretae a Post-Query Trigger then use the following...
    BEGIN
    SELECT DEPT_NAME
    INTO :CONTROL_BLOCK.DEPT_NAME
    FROM DEPT
    WHERE Dept No = :Dept No;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN NULL;
    WHEN OTHERS THEN (ERRTXT);
    END;Hope this helps...
    Regards,
    Abdetu...

  • How i use jtable

    hi master
    sir how i use jtable
    please send me any detail sample with swing interfas and code
    thank's
    aamir

    Did you read the JTable API???
    You will find a link titled "How to Use Tables" that takes you to the Swing tutorial.

Maybe you are looking for

  • PLD Error in Cash Payment Voucher

    Dear Experts,     I am trying to create a PLD for Cash Payment Voucher. In Outgoing Payment screen, when the account option is selected and in "Payment Means" window, when the option "Cash" is used, and while trying to generate print preview, system

  • Photos app opens then immediately exits

    Have upgraded to IOS5 and setup Photo Stream Now Photos on iPhone opens but immediately exits - see they initial screen for just c0.5sec & no entries in list Photos are however going to Photo Stream and are appearing on a seperate iPad

  • Looking for Captivate (30-day trial or monthly CreativeCloud) that will run on Mac OS 10.6.8.

    Looking for Captivate (30-day trial or monthly CreativeCloud) that will run on Mac OS 10.6.8. (Currently downloadable version only runs on OS 10.9 and I don't want to upgrade OS (causes other problems). What to do?

  • How can I get rid of firefox

    Installing version 4 has totally destoyed my enjoyment of using firefox, I hate it. I have tried reverting to an earlier version but even having deleted and cleaned my system using cc cleaner a new install retains the button etc positioning which app

  • Display territory hierarchy

    Hi, I want to display territory hierarchy in the portal. Is there any standard BSP to do the same? Is this hierarchy is available in CRM business package? Thanks in advance.