How to diable JDialog on refresh of a data in a tab

Hi,
I have an application which has a tab1 which contains a Jtable.On clicking a cell in Jtable a JDialog appears showing some more info on the cell clicked.
Now i want to do this...
When i refresh the tab1 the corresponding Jdialog should become empty without any value, assuming that tab1 content has changed.
How i can go about doing the above?
A simple code snippet/idea would be of great help.
Thanks.

Continued code
fetch();
                    fetch2();
                    /*table.tableChanged(new TableModelEvent(table.getModel()));
                    if (pane != null) {
                         pane.setMessage("");
                    table.repaint();
                    table2.tableChanged(new TableModelEvent(table2.getModel()));
                    if (pane2 != null) {
                         pane2.setMessage("");
                    table2.repaint();*/
          lookup.addActionListener(new ActionListener() {
               public void actionPerformed(ActionEvent e) {
                    /*if(b1!= true){
                         System.out.println("Coming");
                         JTabbedPane tabbedPane = new JTabbedPane();
                         JPanel phones = new JPanel();
                         mtm = new DefaultTableModel(columnNames, 2);
                         JTable table = new JTable();
                         table =  new JTable(mtm);
                         //JPanel phones = new JPanel();
                         JScrollPane scroller = new JScrollPane();
                         JPanel p = new JPanel(new BorderLayout());
                         JPanel topPanel = new JPanel();
                         JButton lookup = new JButton("Lookup");
                         scroller = new JScrollPane(table);
                         topPanel.add(lookup);
                         phones.add(scroller);
                         tabbedPane.addTab("Phones", phones);
                         p.add(topPanel, BorderLayout.NORTH);
                         p.add(tabbedPane, BorderLayout.CENTER);
                         setContentPane(p);
                         pack();
                         di = new Dbi();
                         fetch();
                         if (pane != null) {
                              pane.setMessage("");
                         table.repaint();
                         b1=true;
                         System.out.println("Going");
                    fetch();
                    table.tableChanged(new TableModelEvent(table.getModel()));
                    if (pane != null) {
                         pane.setMessage("");
                    table.repaint();
                    //table.setModel(new DefaultTableModel(0, 0));
                    //b1=false;
          lookup1.addActionListener(new ActionListener() {
               public void actionPerformed(ActionEvent e) {
                    fetch2();
                    table2.tableChanged(new TableModelEvent(table2.getModel()));
                    if (pane2 != null) {
                         pane2.setMessage("");
                    table2.repaint();
                    //table.setModel(new DefaultTableModel(0, 0));
     public void fetch() { // time-consuming task should be run
          Thread t = new Thread() { // in a separate thread
               public void run() {
                    dbResult = di.getQueryResult("QUERY!!!!!");
                    mtm.setDataVector(dbResult, cnv);
          t.start(); // actionPerformed() immediately returns, not blocking GUI
     public void fetch2() { // time-consuming task should be run
          Thread t = new Thread() { // in a separate thread
               public void run() {
                    dbResult = di2.getQueryResult("QUERY!!!!!");
                    mtm2.setDataVector(dbResult, cnv);
          t.start(); // actionPerformed() immediately returns, not blocking GUI
     public static void main(String[] args) {
          TestJava frame = new TestJava();
          frame.setVisible(true);
class Dbi{ // make it a separate public class
     // meaningfull constructors, db connecton etc.
     public Vector<Vector> getQueryResult(String query) {
          Vector<String> v1 = new Vector<String>();
          Vector<String> v2 = new Vector<String>();
          Vector<String> v3 = new Vector<String>();
          Vector<String> v4 = new Vector<String>();
          v1.addAll(Arrays.asList(new String[] { "Tim Marshall",
                    "http://tim.marshall/", "Never never land" }));
          v2.addAll(Arrays.asList(new String[] { "Com Commercial",
                    "http://com.comcom/", "Land of gold" }));
          v3.addAll(Arrays.asList(new String[] { "Love Lovable",
                    "http://love.neverhate/", "Sun lotus state" }));
          v4.addAll(Arrays.asList(new String[] { "War Monger",
                    "http://war.momongers/", "Fire and ice city" }));
          Vector<Vector> v0 = new Vector<Vector>();
          v0.add(v1);
          v0.add(v2);
          v0.add(v3);
          v0.add(v4);
          return v0;
     // other important methods
class Dbi2{ // make it a separate public class
     // meaningfull constructors, db connecton etc.
     public Vector<Vector> getQueryResult(String query) {
          Vector<String> v1 = new Vector<String>();
          Vector<String> v2 = new Vector<String>();
          Vector<String> v3 = new Vector<String>();
          Vector<String> v4 = new Vector<String>();
          v1.addAll(Arrays.asList(new String[] { "Ran Rand",
                    "http://tim.marshall/", "Never never land" }));
          v2.addAll(Arrays.asList(new String[] { "Jim Corbet",
                    "http://com.comcom/", "Land of gold" }));
          v3.addAll(Arrays.asList(new String[] { "Ram Jim",
                    "http://love.neverhate/", "Sun lotus state" }));
          v4.addAll(Arrays.asList(new String[] { "Click Thick",
                    "http://war.momongers/", "Fire and ice city" }));
          Vector<Vector> v0 = new Vector<Vector>();
          v0.add(v1);
          v0.add(v2);
          v0.add(v3);
          v0.add(v4);
          return v0;
     }

Similar Messages

  • How to diable the default option of report-based total (when applicable)

    Hi,
    Anybody know how to diable the default option of report-based total (when applicable)?
    By default this aggregation rule option is checked.
    There should be some configuration tag in instanceconfig.xml or somewhere else, such as <ReportAggregateEnabled>true</ReportAggregateEnabled>?
    Regards,
    Tina

    you can change this from admin tool,
    open admin tool,
    business model and mapping
    find your column in the model
    double click your column, click on aggregation, >> default rule >> none.
    but if you do this, you cant make any sum operation.

  • How to use the standrad Refresh button in ooalv Grid?

    Hai Experts ,
                              i write editable oo alv program its works fine.  when change the data
    then click save button its saved correctly, but the problem is totals of row  & column not refresh when i am click the
    Refresh button . Please Help how to handle the standard Refresh button in ooalv .
    Thanks
    Adv....

    thank q u for ur reply,
                                            when i edit the data in grid and save the data its saved  successful,
    but the problem is manually i calculating the totals at the end of the Row as well as at end of the columns,
    when i edit the data in Grid that totals are not effected for that im using the Standard Refresh button ,
    Plz help me.

  • How to use url to open report and refresh report's data,but the report's toolbar haven't "refresh data" button

    Post Author: madbird
    CA Forum: WebIntelligence Reporting
    HI,
    scenario is
    I hope use url to open the report,and refresh the report data,but I didn't the user use the "refresh data" button to refresh the report's data.How to do that?
    regards

    Post Author: madbird
    CA Forum: WebIntelligence Reporting
    Thank you for your attention, amr_foci .
    I created a Web Intelligence report,there will be more than 30 companies use.The company only allowed to see the Company Data. I want to use the url of the way, from my company in the development of the system to open report, and refresh reported Table data.but do not want users to use the toolbar of "data refresh" button to refresh the data .
    Now the question of identity authentication system, as well as statements by url open the question of Has been resolved, but it can not shield statements through the pages of "data refresh" button.
    In addition, I now used by the business object XI system is posted on the JAVA environment.
    Regards,

  • How to speed Portal's refresh rate?

    Dear All,
    When I develop the portal application with some page modified,
    it seems that portal server has cached the old pages somewhere
    so that I can not see the new one immediately.
    Even I delete the __xx.java and __xx.class in WEB-INF directory of the
    application
    and clean up the temporary files browser uses locally.
    How can I speed the refresh rate?
    Clean some files somewhere else?
    Or is there any configuration turning?
    Alan.

    Alan,
    Making a few guesses:
    (a) Did your page change involve changing the page aggregation via EBCC?
    If so, did you sync the data to the WLP?
    (b) If not, check the following session-parameter in weblogic.xml:
              <jsp-param>
                   <param-name>pageCheckSeconds</param-name>
                   <param-value>5</param-value>
              </jsp-param>
    If you don't find this parameter, add this within the "jsp-descriptor"
    element and restart the server. Use an appropriate value (say 5 sec).
    I don't think browser cache has anything to do because, by default, WLP
    sets Cache-Control HTTP tag to not to cache content on the client side.
    Sincerely,
    Subbu
    Alan Liu wrote:
    Dear All,
    When I develop the portal application with some page modified,
    it seems that portal server has cached the old pages somewhere
    so that I can not see the new one immediately.
    Even I delete the __xx.java and __xx.class in WEB-INF directory of the
    application
    and clean up the temporary files browser uses locally.
    How can I speed the refresh rate?
    Clean some files somewhere else?
    Or is there any configuration turning?
    Alan.

  • How to change the UWL refresh rate for all portal users.

    Hi Portal Experts,
    How to change the UWL refresh rate for all portal users?
    Users can individually change the refresh rate through "Personalise View" in UWL.But we want this to set it for all users(we have 10k portal users).
    It was defaultically set to 5 mins for all users.How to change this to 20 mins.
    Thanks
    Sony.

    1.      Launch the UWL iView configuration page.
    You can access the iView from the UWL administration pages (System Administration ® System Configuration). Navigate to the property editor as follows:
          From the Universal Worklist Systems, choose the system for which you want to edit the properties.
        Choose Edit.
    may be you can get clear help from below help file
    http://help.sap.com/saphelp_nw04s/helpdata/en/eb/101fa0a53244deb955f6f91929e400/frameset.htm
    regards
    nagaraju

  • How can I stop auto refreshing a new web page in XP immediately after its opened?

    In XP, once I access a new web page Firefox auto refreshes that page once the page is ~80-90% opened - how can i stop this refresh?

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the ''Safe mode'' start window.
    You have to close and restart Firefox after each change via "File > Exit" (on Mac: "Firefox > Quit")

  • How to make JDialog can't be moved ... ?

    Hi, all ...
    I'm currently build an application with a Swing. I'm using JDialog right now. Is there anyone know how to make JDialog can't be moved ... ? I want my JDialog stay in center, and nobody can't move it ...
    Thanks before ...

    Good problem!
    If you use the JDK 1.4, there are some method to work for this problem
    You should not use the native windows decode title bar, see the
    Frame.setUndecorated
    JRootPane.setWindowDecorationStyle(JRootPane.FRAME)It seems that you should create a BasicRootPane subclass and implements
    your title bar.

  • How are the summary tables refreshed

    hi all,
    Can you please tell me how are the summary tables refreshed. Does the Oracle databse do it or the discoverer server performs the tasks

    Hi,
    Discoverer summary tables are stored as materialized views in the database. The database refreshes the MV depending on how the MV refresh has been set up.
    Rod West

  • How to implement real-time refresh datas in obiee?

    How to implement real-time refresh datas in obiee?

    Can you elaborate more...
    If you want to see refreshed data in OBIEE Reports, you need to implement Caching mechanism based on how you often refresh warehouse..
    [http://download.oracle.com/docs/cd/E05553_01/books/admintool/admintool_QueryCaching6.html]

  • How set a JDialog to let no close button on upper right?

    How set a JDialog to let no close button on upper right?

    a dialog is like a jframe so when u remove the upper part of it u can add a label like and other component to the frames content pane. u can create a panel which will serve as the upper label and will have a background gradient coloring (like windows frames) and an icon and any buttons u want. its a simple jpanel that u put on the upper side of the dialog. u can add a mouse listener to the panel so when the user pressed the mouse and moves it around u move the dialogs position.

  • Drop down selection is not refreshing the page data correctly

    I have a drop down menu for a CREATE DATE. The record is based on a Identification ID. This identification ID can be in our system for multiple CREATE DATES. The CREATE DATE drop down is populated by checking how many different CREATE DATES there are for a particular identification ID.
    The last identification ID looks great. It populates all the fields. However if you select an older CREATE DATE, the page does not get populated with that CREATE DATES data. The whole page even looks different. It looks like an older version of the page before I added all the new fields.
    What is causing the older CREATE DATES not to look like the current create date.
    Please let me know if you need any additional information. Thank you!!
    Pattibz

    Thank you for your reply. Here are some details. Please let me know if I am not giving the information you need.
    One page item called CREATE_DATE displayed as a Select LIST with submit. The source type is a database column called ID_IDENT. The ID_IDENT is just a
    The List of Values is: Named LOV is the Select Named LOV. The list of values definition is a query against a table in our database:
    select CRE_DT, ID_IDENT from IDENT_TABLE where UNIQ_ID = :P3_UNIQ_ID
    ORDER BY CRE_DT DESC
    This is the date on which the ID_IDENT data was created. The date is displayed in a pull down menu, which allows you to select from a list of available "as of" dates when viewing the data. Only data on the most recent ID_IDENT record may be manually altered.
    I have a UNIQ_ID = '34587443'. It acutally has records in the database with that UNIQ_ID. The only difference is the create date. On record of 345778 was done on 10/1/2008 and the current date 10/13/2008.
    I see these two dates in the CREATE_DATE pull down menu. This is fine. The drop down orders the dates by DESC so I have the lastest date on top fo the pull down.
    If I want to pick the date of 10/1/2008, I need go into the web page, open the Create Date pull down and select the older date.
    When I pick the older date 10/1/2008, the page does not look the same as the defaul tor oldest time date and numbers.
    The page is different and most of the data on the webpage is there.
    What should have happened is that I choice the newer date from the drop down, the page refreshes with the data from 10/1/2008
    and all the parameters are displayed from the date of 10/1/2008. It isn't only part of the fields are being populated and the page itself doesn't refresh to the look of the original page. Thank you.
    Edited by: pattibz on Sep 12, 2008 11:15 AM

  • How to speed up the loading of live data into flash file.

    How to speed up the loading of live data into flash file if the swf file size is 1.5 MB. Flash file is using 20 web service connections to load the live data.

    Hello,
    I am also facing a similar problem wherein the SWF file takes time to load the refreshed data in Infoview i.e. after exporting the xlf file to Business Objects platform. Currently I am using Xcelcius Engage/Enterprise 2008 SP3 Windows (file name: 51038212.ZIP) version 5.3.0.0 build number 12,3,0,670. Also the SWF file is approximately 2MB in size  and it uses 42 live office connections.
    Please suggest solution as to how to decrease the time it takes to refresh the live office connections.

  • Refresh page with data from the Next Record in the Table through a Button

    Scenario: Record of a table “prototype” is made up of 8 columns,
    key_col,
    text_col,
    label1_col, label2_col, label3_col,
    check1_col, check2_col, check3_col,
    I have created the following items on a page:
    a) A Display Only item that is populated through a SQL query
    “SELECT text_col from prototype where rownum=key_seq.NEXTVAL “.
    b) Hidden item for the database columns “label1_col, label2_col, label3_col”
    Source type for the hidden items is of type SQL query, Source expression is:
    Select label1_col from prototype where rownum=key_seq.NEXTVAL ;
    Select label2_col from prototype where rownum=key_seq.NEXTVAL ;
    Select label3_col from prototype where rownum=key_seq.NEXTVAL ;
    (key_seq is a sequence).
    c) Checkbox item for the database columns “ check1_col, check2_col,check3_col"
    d) The labels for the above checkbox items are &label1_col. , &label2_col. , &label3_col.
    I have created a Save button to save the state of the checkboxes; (STATIC:;1 )
    I want the page to be refreshed with the data from the next record (Fields text_col, label1_col, label2_col, label3_col) through a “ Next” Button.
    Can I please know how I can achieve this?
    Thanks in advance

    If you need the value that is entered in the textbox as the email body, then try this..
    <html>
    <HEAD>
    <title>WebForm1</title>
    <script language="javascript">
    function mailHTML() {
    var content=document.getElementById('textBox').value;
    location.href="mailto:?body="+encodeURI(content);
    </script>
    </head>
    <body>
    <form name="theform" id="theform">
    <div name="body1"/>
    <input type="text" value="Test" id="textBox"/>
    <input type="button" value="Send Email" onClick="mailHTML()"/>
    </div>
    </form>
    </body>
    </html>

  • How do I work with FK in a data profile?

    Hello People:
    I am new in OWB tools and I have many doubts. Therefore, I would like to know if anyone can guide me a bit with the theme of FK and profiles.
    How do I work with FK in a data profile?
    If I have a table that has a FK to most of the tables, because it is like a parent table. What should I do to have that FK in the profile?
    e.g.
    - Table 1 FK Table 2
    - Table 1 FK Table 3
    - Table 1 FK Table 4
    - Table 1 FK Table 5
    - Table 1 FK Table 6
    - Table 2 FK Table 7
    - Table 2 FK Table 8
    - Table 8 FK Table 9
    You should have a data profile with each table or a data profile for all related tables?
    If I am all in a single profile, that it would have no problem but I would only slow every time that I have to add a new table, but if I got separated, I can not use the FK? What is the solution that will give this problem?
    e.g. PROFILE GENERAL
    - Table 1
    - Table 2
    - Table 3
    - Table 4
    - Table 5
    - Table 6
    - Table 7
    - Table 8
    - Table 9
    OR
    PROFILE 1 -> - Table 1
    PROFILE 2 -> - Table 2
    PROFILE 3 -> - Table 3
    PROFILE 4 -> - Table 4
    PROFILE 5 -> - Table 5
    PROFILE 6 -> - Table 6
    PROFILE 7 -> - Table 7
    PROFILE 8 -> - Table 8
    PROFILE 9 -> - Table 9
    OR
    PROFILE R -> Table 1 / Table 2
    PROFILE S -> Table 1 / Table 3
    PROFILE T -> Table 1 / Table 4
    PROFILE U -> Table 1 / Table 5
    PROFILE V -> Table 1 / Table 6
    PROFILE W -> Table 2 / Table 7
    PROFILE X -> Table 2 / Table 8
    PROFILE Z -> Table 8 / Table 9
    Thank you very much for your help!
    Best regard!

    Any idea, please?

Maybe you are looking for