Problem about java table.help me

i have two pages.one pages i enter the data and another page i use a table where it shows me the enter information.But when i enter the data it successfully enter access database.but it does not show me in the table.if i set a button to table page for refreah then it refresh and show me data successfully othereise it does not work.My question is if i enter data it automaticaly refresh table page how .please help me .

Are these webpages you are talking about? If the second page is accessed after the first page updates the database and there is code in the second page to access the db, the data should be visible. Explain more clearly if this is not what you mean.

Similar Messages

  • The problem about Java media framework

    Excuse me, How to use Real Time Protocol Vedio with web camera?
    My program can use MIC, but can't found camera?
    Please Help me

    Hi,
    You can try a package named: JTwain, which is available at http://asprise.com/product/jtwain.
    JTwain supports all kinds of digital cameras and scanners. You can use Java to access, contorl digital cameras and scanners, and of course, to acquire images with flexible settings.
    The developers' guide is available @ http://asprise.com/product/jtwain/devGuide.php
    In the simplest case, one line of Java code can solve your problem.
    Good luck!

  • My problems about reload table

    hi guys,
    i hava some problems now ,but i think they are easy for u.i need your help,thanks.
    1.in my mini application i save the data of JTable in txt format.i have a File menu,and the menuitems are New , Open ,Save ,Save As ,and exit.When i trigger the New or Open events how can i know whether another table is opening and editing.if so ,i must make a dialog pop up to inquire the user whether save the editing table.
    2.how can i know the editing table has been saved, so when i modified the table and trigger the Save event the table saves while the JFileChooser dialog dont pop up.
    3.when i open a saved table,the blank cells display null.i want to replace the null with the String "".i tried
    FileInputStream fin = new FileInputStream(filename);
    InputStreamReader isr = new InputStreamReader(fin);
    BufferedReader br = new BufferedReader(isr);
    StringTokenizer st1 = new StringTokenizer(br.readLine(), "|");
    while( st1.hasMoreTokens() )
         columnNames.addElement(st1.nextToken());
    while ((aLine = br.readLine()) != null)
         StringTokenizer st2 = new StringTokenizer(aLine, "|");
         Vector row = new Vector();
         while(st2.hasMoreTokens())
         String s = st2.nextToken();
         if (s!=null)
              row.addElement(st2.nextToken());
         else
              row.addElement("");     }
    data.addElement( row );
    br.close();
    and the table's coustructor is
    model = new DefaultTableModel(data,columnNames);
    table = new JTable(model);
    it failed,how can i do?
    Can u help me,guys?
    thank you in advance.

    1. This is really up to how you've programmed your application. In effect you've simply got to determine if there's a JTable in your UI (you probably know the container it will be in so just need to check its children)
    2. Your table model will have to support the notion of being "updated". If your table model contains a flag that indicates whether it has been saved you can then set the flag when you save it and reset it when a table cell is updated. This table model can also save the File to which the table model was saved.
    3. Are you sure your text file doesn't contain the string "null" anywhere? Null values in table models are usually rendered as the empty string anyway - perhaps the problem is with how you saved the data?
    Hope this helps

  • A performance problem about query bseg, help,help

    thanks
    we have a new report use such a sql which runs a long time: 
    SELECT bukrs gjahr bzdat anln1 bschl dmbtr
        INTO CORRESPONDING FIELDS OF TABLE bsegtab
        FROM bseg
       WHERE               gjahr = gjahr
         AND bschl IN ('70' , '75')
         AND anln1 IN anln1
         AND meins = ''
         AND anln1 LIKE 'G%'
         AND hkont LIKE '1502%'
         AND bzdat >= dat
         AND bzdat <= dat1.
    in se11,I can see bseg primary key is "mandt,bukrs,belnr,gjahr,buzei",and it is a cluster table.
    Could I create an index on this culster table.
    Could you give me some advices?
    the environment is ecc6.0 and oracle 10g.
    Edited by: victor on Sep 17, 2010 2:25 AM
    Edited by: victor on Sep 17, 2010 2:25 AM

    Hello,
    Below link will be helpful.
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=180356001
    Regards,
    Yoganand.V

  • Problem about customized table in scrollpane

    I put a customized table whose's header and rows have some colors into a scrollpane(row 0, 2, 4 ... is white, row 1, 3, 5... is black, for example).when the width of scrollpane is big enough, the space area on the right of the table in the viewport has the default color, If I want to set the space area's color the same as the table just as if the space area is the last column of the table(even row is white, odd row is black).
    How can I do this?

    Try adding a dummy column to the table. then use:
    table.setAutoResizeMode(int mode)
    so that only the last column is resized.

  • Constraints Problem in DOP table - Help

    Sir,
    I need to import a new table dump (Status.dmp) to USER1's schema.
    USER1 is already having STATUS table (with STATUS_ID column is PRIMARY
    KEY.)
    I tried to drop table STATUS.
    USER1> drop table status;
    drop table status
    ERROR at line 1:
    ORA-02449: unique/primary keys in table referenced by foreign keys
    Please clarify my doubts:-
    1. How to find the FOREIGN KEY constraints related with STATUS.STAUS_ID.
    2. What all steps I have to follow to drop this table.
    I did the following steps:-
    1. Disabled PRIMARY KEY constraint of SATUS table.
    2. Tried to drop the table
    drop table status
    ERROR at line 1:
    ORA-02449: unique/primary keys in table referenced by foreign keys
    1. Enabled PRIMARY KEY constraint of SATUS table.
    2. Disable all FOREIGN KEY constraints in USER1's schema
    (By looking into USER_CONSTRAINTS.CONSTRAINT_TYPE='R'
    3. Tried to drop the table
    drop table status
    ERROR at line 1:
    ORA-02449: unique/primary keys in table referenced by foreign keys
    1.Disable all FOREIGN KEY constraints in USER1's schema
    (By looking into USER_CONSTRAINTS.CONSTRAINT_TYPE='R'
    2. Dleted all the rows in STAUS Table.
    3. Tried to drop the table
    drop table status
    ERROR at line 1:
    ORA-02449: unique/primary keys in table referenced by foreign keys
    4. Imported the dump file with IGNORE=Y
    5. Impor wirk fine.
    Enabled all disabled constrains.
    regards,
    Mathew

    Will it disable the constraints of child table?SQL> create table one(cd number constraint one_pk primary key, nm varchar2(10));
    Table created.
    SQL> create table two(cd1 number,nm1 varchar2(10), constraint two_ref foreign key (cd1) references one(cd));
    Table created.
    SQL> select CONSTRAINT_NAME,CONSTRAINT_TYPE,TABLE_NAME,SEARCH_CONDITION from user_constraints where table_name in ('ONE','TWO');
    CONSTRAINT_NAME C TABLE_NAME SEARCH_CONDITION
    ONE_PK P ONE
    TWO_REF R TWO
    SQL> drop table one cascade constraints;
    Table dropped.
    SQL> select CONSTRAINT_NAME,CONSTRAINT_TYPE,TABLE_NAME,SEARCH_CONDITION from user_constraints where table_name in ('ONE','TWO');
    no rows selected
    Cheers, Bhupinder

  • A problem about flat file,help me plz!

    hi all:
    i have met a question while working with owb.
    in my case i have two flat files as the data source.
    at first i use one of the files as data source .And everything was gone through smoothly,including deploy and execute.
    But when i use the other file as data source,error came up when the connectors were being deployed.it reported "Could not find location XXXX ".
    i wonder if there is any limitation while using flat file as data sourse.if not ,how can i deal with such a problem.
    best regards!
    thanks a lot!

    when i deploy with source as flat files i use sqlldr which even OWB uses. and there is no problem with multiple sources in sqlldr. check in the script after generating mapping. If INFILE option in sqlldr script every path of source is mentioned properly.
    regards
    roopa

  • The problem about java.sql.CallableStatement

    we need call oracle store procedure to get a record set.
    the code below is the oracle's pl/sql program for test
    package test2 as
    type sample_record is record(id char(4),
    name varchar2(10),
    addr varchar2(30));
    type sample_cursor is ref cursor return sample_record;
    function get_resultset return sample_cursor;
    end;
    package body test2 as
    function get_resultset return sample_cursor is
    p_cursor sample_cursor;
    begin
    open p_cursor for select 'aaaa' id,'John' name,'guangzhou' addr from dual;
    return p_cursor;
    end get_resultset;
    end;
    and ,in java,how to use java.sql.CallableStatement to
    run the store procedure to get the cursor,a sql type define in our oracle programme

    see the code below,
    public static sun.jdbc.rowset.WebRowSet testmethod(){
         Connection conn = null ;
              CallableStatement cstmt = null ;
              String str = null ;
              ResultSet result = null ;
              str = "{?=call test2.get_resultset()}" ;                    
              try
                   conn = DbPool.getConnection() ;
                   cstmt = conn.prepareCall(str) ;
                   cstmt.registerOutParameter(1, OracleTypes.CURSOR);
                   cstmt.execute();
                   result = (java.sql.ResultSet)cstmt.getObject(1) ;                                             
                   sun.jdbc.rowset.WebRowSet wrs = new sun.jdbc.rowset.WebRowSet() ;
              wrs.populate(result) ;//in this statement,it will throw a NullPointerException
                   return wrs;
              catch (Exception e)
                   CommLog.writeLog("pr", "PrLogic test: " + e.toString()) ;
                   return null ;
              }finally
                   try
                        result.close() ;
                   catch (Exception e3)
                   try
                        cstmt.close() ;
                   catch (Exception e1)
                   try
                        conn.close() ;
                   catch (Exception e2)
         }

  • I keep getting an error window about java since I updated to firefox 8, my tabs will flash, tabs will close and open in a new window, everything stops working, firefox is non responsive, please help

    Since I upgraded to firefox 8, I get this error window that pops up says something about java. My tabs flicker or flash, the tabs will close and open in a new window then everything stops. Then firefox does not respond. When I get this error message, I have to close all tabs wait a few seconds then open it back up it will work for a little while and then do the same thing. I have disabled plug-ins that I do not use, I have cleared my cache and cookies, I am not happy at all with this new version. I waited a while before updating. The first time I was going to update, firefox would not let me keep my anti-virus plug-in. PLEASE HELP

    Hello,
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • Java Access Helper problem

    I just downloaded Java Access Helper zip file, and unzipped, and run the following command in UNIX
    % java -jar jaccesshelper.jar -install
    I get the following error message, and the installation stopped.
    Exception in thread "main" java.lang.NumberFormatException: Empty version string
    at java.lang.Package.isCompatibleWith(Package.java:206)
    at jaccesshelper.main.JAccessHelperApp.checkJavaVersion(JAccessHelperApp.java:1156)
    at jaccesshelper.main.JAccessHelperApp.instanceMain(JAccessHelperApp.java:159)
    at JAccessHelper.main(JAccessHelper.java:39)
    If I try to run the jar file, I get the same error message.
    Does anyone know how I can fix this?
    Thanks

    sorry ab the multiple post, it was urgent for me to
    know the answer.
    I've JDK 1.4.2 and JAccessHelper should work with 1.3
    or later
    Can there be some kind of path problems?No, I doubt it. It's just some internal app failure - looks like it's trying to determine the running Java version, and is not doing a good job at it. But the failure has nothing per se to Java, it's that specific app - what are we supposed to know about that app though?

  • Associative Table Key Value Problem...Plz Help...

    Good Morning guys,
    I would like to ask something about creating associative tables. I want to create an associative table with 3 key values, something like this:
    TYPE datatab IS TABLE OF mis_adeia_employee %ROWTYPE
    INDEX BY NUMBER, VARCHAR2(3), DATE;
    but it displays me error. Is there an alternative way? The basic reason i want to do this, is that my application which is written in PowerBuilder 7 uses datawindows, and now i try to transfer my application from PB to Oracle Forms Builder. So i try to find a structure similar to datawindows. I selected associative tables and i stacked in this example?
    Any help , idea?
    Thanx a lot in advance,
    Regards ,
    Bill ...

    Duplicated post:
    Problem Indexing a Table ! ! !
    Rgds.

  • HT201210 hi everyone, i have a problem about my iphone 4S, doesn't work with wifi connection and bluetooth since upgrade to the IOS 7.0.3. Can anyone can help me tosolve this problem?????Thank's regards paulus

    hi everyone, i have a problem about my iphone 4S, doesn't work with wifi connection and bluetooth since upgrade to the IOS 7.0.3. Can anyone can help me tosolve this problem?????Thank's regards paulus

    Try the suggestions here to see if they resolve your problem:
    http://support.apple.com/kb/ts1559
    If these don't work you may have a hardware problem. Visit an Apple store for an evaluation or contact Apple Support.

  • Problem about fill set up table

    Hi all,
    I got a problem when I run the fill set up table for sales billing data source. what I did is:
    first delete the setup table then oli9bw->type in a sales document no.(as I only want this order data), then give a run name, last execute, but I got the message as follow:
    Data source 2LIS_13_VDITM contains data still to be transferred
    Could you pls explain what this means, and what should I do to solve the problem
    Thanks

    Set up table definition
    Setup table is store the historical data, where as the delta records are updated in delta queue not to set up table.
    So once historical data is loaded you can delete the contents of the set up table.
    name is extract sturcture of your data source + setup
    also data is taken from setup table when an init / full/ full repair load is done.
    so in order to take ur records from the table delete the setup table(LBWG) and initialize it with ur records.
    You can find the contents SE16
    Filling set up tables
    transac LBWG
    + SBIW -> Logistics -> Managing Transfer Information Structures-> Setup of Statistical Data-> Application-Specific Setup of Statistical Data
    set up tables
    Set up tables
    Set up tables
    view of set up tables data in se11??????????
    Set Up tables..
    lo: delete set up tables: DOUBT
    LBWQ is the extraction queue and RSA7 is delta queue. Data is sent to delta queue from extraction queue through collective job scheduled in transaction LBWE.
    when we want to extract the data using LO Cockpit, the data will be come to the extraction queue first and from there it will processed to the delta queue. SO lbwq works as a outbound queue.
    If the update mode is Unserialised V3 then as soon as the document is posted it comes update table which you can see in Tr. Code SM13. After the jonb is scheduled the records come to RSA7 i.e delta queue from which BW pulls the data
    If you use u201CQueued Deltau201Dupdate method then the data moves to Extraction queue(LBWQ). Then run Collective update to move the data from LBWQ into Delta Queue (RSA7). Then schedule the data using the infopackage by selecting Delta Load in the update tab.
    So in If you are going to do Setup table filling, delete the data from LBWQ.
    The usage of Extraction queue(LBWQ) comes in to picture in delta loading. But actually system starts collecting the data (whenever there is document creation in R/3) after activating the EXtraction structure.
    Steps to Be Performed
    We know that there are 4 types of delta extraction that are available in LO. If you use u201CQueued Deltau201Dupdate method then the data moves to Extraction queue(LBWQ). Then run Collective update to move the data from LBWQ into Delta Queue (RSA7). Then schedule the data using the infopackage by selecting Delta Load in the update tab.
    Here is Roberto's weblog:
    /people/sap.user72/blog/2005/02/14/logistic-cockpit--when-you-need-more--first-option-enhance-it
    /people/sap.user72/blog/2004/12/16/logistic-cockpit-delta-mechanism--episode-one-v3-update-the-145serializer146
    /people/sap.user72/blog/2005/01/19/logistic-cockpit-delta-mechanism--episode-three-the-new-update-methods
    check this out...
    LBWQ - T code is for what?
    Ttransaction LBWQ
    What is LBWQ?
    Assign points if it helps
    Hope it helps
    regards
    Bala

  • I can't open ibooks. There was a screen pop up about java se. Help please.

    I can't open ibooks. There was a screen pop up about java se. Help please.

    Hi there ajsupprt,
    It sounds like you may need to update the version of Java installed on your computer. Take a look at the article below for more information.
    Java updates available for OS X on August 28, 2013
    http://support.apple.com/kb/ht5648
    -Griff W.

  • Topics that help to create a project report about Java Report Generator?

    hi all,
    i'm doing a project on java that could be utilised to create reports for java programs..i want to make a project report on this topic.if anyone knows about sites those helps to create report please reply..
    Preethi

    JasperReports is a powerful report-generating tool that has the ability to deliver rich content onto the screen, to the printer or into PDF, HTML, XLS, CSV and XML files.
    http://jasperreports.sourceforge.net
    There is a convenient visual designer to create reports for jasperreports library called iReport.
    Take a look at http://ireport.sourceforge.net
    Giulio

Maybe you are looking for

  • In Livetype, script in the pro series, how do you separate a name?

    Am trying to use the first name Mary Ann (separate names) but even when using the space bar, the two names show no space.  Any ideas? thanks

  • Ibook G4 won't recognise Combo drive

    Hi there I have an iBook G4 12" 800Mhz , when I bought it off ebay it arrived with an issue - the computer doesnt see the combo drive, dvds don't mount, Apple dvd player app gives an error message saying it kind find the drive to play dvds. I have si

  • Records truncating (formatting problem)

    Hello all, I am writing a script wherein a SQL generates another SQL. Lets say that we have a varchar2(2000) column with around 1500 characters in each record. When I try to write a script it only returns the first few characters of it and doesnt pri

  • Debugging in procedure !!!

    i getting error with following procedure, Any idea why ?? CREATE OR REPLACE PROCEDURE p_display_message (p_message VARCHAR2, p_Log_type Char Default 'I') IS PRAGMA AUTONOMOUS_TRANSACTION; V_Va_Message varchar2(4000); BEGIN if trim(P_log_type) = 'E' t

  • Forms Central

    How do I get Forms Central to realize that I have a monthly CS subscription? I pay for ALL APPS monthly. It keeps asking me to upgrade.