Problems updating panel with remove() and add()

Hi,
I have a class which extends JPanel, and everytime I call repaint on it I am trying to add the contents of a Hashtable to the screen. If I do not include the this.removeAll() then it will add those components to the Container...problem is that it will add them everytime so I will have multiple copies of the same thing. If I try and remove them first (notice how I put a boolean in so that I dont remove them before they are added) before adding them (so clear the screen), then they will never appear, no matter where I put the removeAll() or where i put the add(). Same applies for a remove() statement on each individual component.
I have spent hours on this stupid thing !
Any ideas would be much appreciated
Cheers
Ray
public void paintComponent(Graphics g) {
     super.paintComponent(g);
     if (painted) {
     this.removeAll();
     globalClock.setRate((int)nodeRef.getAverageRate());
     painted = true;
     //Iterate over the keys in the map
    Iterator keyIt = nodeRef.returnKeyIterator();
    Iterator valIt = nodeRef.returnValueIterator();
   while (keyIt.hasNext()) {
         String key = (String)keyIt.next();
        NodeObject node = (NodeObject)valIt.next();
        nameLabel = new JLabel("Client Name");
        nameField = new JTextField(key);
        currentTimeLabel = new JLabel("CurrentTime");
         currentTimeField = new JTextField(Double.toString(node.getCurrentTime()));
         updateLabel = new JLabel("Update Interval");
         updateField = new JTextField(Integer.toString(node.getInterval())); //default
         speedLabel = new JLabel("Clock Rate");
         speedField = new JTextField(Double.toString(node.getRate()));
         add(currentTimeLabel);
         add(currentTimeField);
         add(updateLabel);
         add(updateField);
         add(speedLabel);
         add(speedField);
        add(nameLabel);
         add(nameField);
    globalRateLabel = new JLabel("Global Speed");
    globalRateField = new JTextField(globalClock.getRate() + " %");
    globalRateField.setEditable(false);
    add(globalRateLabel);
    add(globalRateField);
}

Sometimes I will have two things in the hashTable, sometimes I will have one hundred !
Each time repaint() is called I want this to represent the current status of the Hashtable, so If on one repaint there are 100 pairs in the Hashtable it will add all the details of these pairs to the Container, however on the next repaint if there are only two pairs I dont want the other 98 entries on the page at all. You cant do this with just a component modifier, you have to remove the component completely. I figured that the easiest way to do this would be just to remove all the components completely, and then add what was needed by going through the Hashtable again. (note:effiecency is not a concern)
And yes I realise repaint() is called on resizes etc etc, but this wont adversely affect the program
Ray

Similar Messages

  • About numbering and section options... I need section numbers (1.1,1.2,1.3) that will automatically update as I remove ort add a page. Seams complicated. Could someone HELP me? Thanks

    About numbering and section options... I need section numbers (1.1,1.2,1.3) that will automatically update as I remove ort add a page. Seams complicated. Could someone HELP me? Thanks

    INDESIGN
    I finally found it. Took me couple of hours. It is OK now
    2014-11-18 11:05 GMT-05:00 kglad <[email protected]>:
        About numbering and section options... I need section numbers
    (1.1,1.2,1.3) that will automatically update as I remove ort add a page.
    Seams complicated. Could someone HELP me? Thanks  created by kglad
    <https://forums.adobe.com/people/kglad> in Adobe Creative Cloud - View
    the full discussion <https://forums.adobe.com/message/6940603#6940603>

  • Java mapping for Remove and Add of  DOCTYPE Tag

    HI All,
    i have one issue while the Java mapping for Remove and Add of  DOCTYPE Tag   in Operation Mapping .
    it says that , while am testing in Configuration Test "  Problem while determining receivers using interface mapping: Error while determining root tag of XML"
    Receiver Determination...
    error in SXMB MOni
    " SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="RCVR_DETERMINATION">CX_RD_PLSRV</SAP:Code>
      <SAP:P1>Problem while determining receivers using interface mapping: Error while determining root tag of XML: '<!--' or '<![CDATA[' expected</SAP:P1>
    plz provide solutions
    Thanks in advance.

    Hi Mahesh,
    I understand, you are using extended Receiver Determination using Operational Mapping (which has Java Mapping). And, there is an error message u201CError while determining root tag of XMLu201D, when you are doing configuration test.
    Can you please test, the Operational Mapping (which has Java Mapping) separately in ESR, with payload which is coming now. It should produce a XML something like this [Link1|http://help.sap.com/saphelp_nwpi711/helpdata/en/48/ce53aea0d7154ee10000000a421937/frameset.htm]
    <Receivers>
    <Receiver>
      <Party agency="016" scheme="DUNS">123456789</Party>
      <Service>MyService</Service>
    </Receiver>
    <Receiver>
      <Party agency="http://sap.com/xi/XI" scheme="XIParty"></Party>
      <Service>ABC_200</Service>
    </Receiver>
    </Receivers>
    If it is not (I Think it will not), then there is some problem in Java Mapping coding. Please correct it. Last option, if your Java code is small in length; you may paste it here, so that we can have a look at the cause of issue.
    Regards,
    Raghu_Vamsee

  • LR 4 RC2 ...vexing problem, 3 sessions with support and still not able to find? With all settings re

    LR 4 RC2 ...vexing problem, 3 sessions with support and still not able to find? With all settings reset and running a test catalog a raw image when opened in develop will when imediately going back to library view show a significant color shift in red, orange and purple but only in images with significant content in those colors. at first the culprit appeared to be camera calibration default but not reproducable. The problem exists even when opening older images from months ago?  Also if second screen running in loupe mode the image is not shifted.
    Any ideas please
    Dave

    Jim01403, Geoff and others...I'm new here so I'll need a little time The thread is very interesting, populated by serious mature people, how refreshing! It clearly is part of what i'm experiencing and is answered answered here...thank you. My main problem is still the significant color shift between develope and library modules. I'll attach one from each so you and others can see. Unfortunately the library version is the bad one so printing is now very problematic...Note, this occurs in either single or with second monitor on the library version is displayed. I have reset virtually everything and wonder if a cache is not updating or color space is not matching? A symptom/detail worth noting, when switching to library mode, the correct image is displayed for about a second then it jumps to what you see in the examples. As if the library module starts to rendering from develope settings then jumps tback to the original inedited preview??
    Maybe just go back to 3.6 and tread water till 4.1 is fixed?
    Dave

  • Remove and add database in AG to enable service broker

    Hi All,
    Right now am testing in AG, I have a scenario where I created AG without enabling service broker, As per experts Service broker should be enabled first before AOAG since I did not, I remove the DB from AG enabled back service broker and the add back the DB
    it worked fine also as a point to make when i remove the DB I did not perform any backups in primary DB.
    I have 2 questions ->
    1) Is this above method correct
    2) Will removing and add a DB will affect the AG setup (though no backup will be performed)
    Thanks
    Best Regards Moug

    1. Yes you need to remove the database from the AG in order to enable service broker, so the process you've followed is fine
    2. That's no problem. If you remove the database from AG you can add it back in on the primary, then do a "Join Only" (no need for another backup and restore) and it should work fine. If it complains about the log chain not being recent enough
    you could take another tlog backup and apply it to the secondary and attempt to join again.

  • How do I find out who is attached to my sharing of my account and remove and add someone? Is 5 devices the limit?

    Devices sharing is 5?
    Where do I go to remove and add a devic

    Hey 1980justme!
    I have an article for you that can help you address this question:
    iTunes Store: Authorize or deauthorize your Mac or PC
    http://support.apple.com/kb/ht1420
    Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

  • Any Problems using SSL with Safari and the move with Internet explorer to require only TLS encryption.

    Any Problems using SSL with Safari and the move with Internet explorer to require only TLS encryption.

    Hi .
    Apple no longer supports Safari for Windows if that's what you are asking >  Apple apparently kills Windows PC support in Safari 6.0
    Microsoft has not written IE for Safari for many years.

  • How to remove and add plotted data?

    In my code below I would like to add two buttons and by clicking on a button("Remove") it will remove one by one plotted data,and plot it back by clicking on the button("Add") such as the examples:
    Full data plotted by running the class
    Now by a single click on a Remove button last data point disappear
    another click and again last data point disappear, and so on
    The inverse operation would be performed by clicking on "Add" button: each click will add back a data point
    import javafx.application.Application;
    import javafx.beans.property.SimpleDoubleProperty;
    import javafx.event.EventHandler; 
    import javafx.scene.chart.NumberAxis;
    import javafx.scene.chart.XYChart;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.chart.LineChart;
    import javafx.scene.control.Button;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.BorderPane;
    public class XYMove extends Application {
    BorderPane pane;
    XYChart.Series series1 = new XYChart.Series();
    SimpleDoubleProperty rectinitX = new SimpleDoubleProperty();
    SimpleDoubleProperty rectX = new SimpleDoubleProperty();
    SimpleDoubleProperty rectY = new SimpleDoubleProperty();
    @Override
    public void start(Stage stage) {
    final NumberAxis xAxis = new NumberAxis(12, 20, 1);
    double max = 12;
    double min = 3;
    max *= (1+((double)3/100));
    min *= (1-((double)3/100));
    final NumberAxis yAxis = new NumberAxis(min, max, 1);
    xAxis.setAnimated(false);
    yAxis.setAnimated(false);
    yAxis.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis) {
        @Override
        public String toString(Number object) {
            return String.format("%2.0f", object);
    final LineChart<Number, Number> lineChart = new LineChart<Number, Number>(xAxis, yAxis);
    lineChart.setCreateSymbols(false);
    lineChart.setAlternativeRowFillVisible(false);
    lineChart.setAnimated(false);
    lineChart.setLegendVisible(false);
    series1.getData().add(new XYChart.Data(1, 3));
    series1.getData().add(new XYChart.Data(2, 8));
    series1.getData().add(new XYChart.Data(3, 6));
    series1.getData().add(new XYChart.Data(4, 7));
    series1.getData().add(new XYChart.Data(5, 5));
    series1.getData().add(new XYChart.Data(6, 6));
    series1.getData().add(new XYChart.Data(7, 4));
    series1.getData().add(new XYChart.Data(8, 7));
    series1.getData().add(new XYChart.Data(9, 6));
    series1.getData().add(new XYChart.Data(10, 7));
    series1.getData().add(new XYChart.Data(11, 6));
    series1.getData().add(new XYChart.Data(12, 7));
    series1.getData().add(new XYChart.Data(13, 6));
    series1.getData().add(new XYChart.Data(14, 12));
    series1.getData().add(new XYChart.Data(15, 10));
    series1.getData().add(new XYChart.Data(16, 11));
    series1.getData().add(new XYChart.Data(17, 9));
    series1.getData().add(new XYChart.Data(18, 10));
    pane = new BorderPane();
    pane.setCenter(lineChart);
    Scene scene = new Scene(pane, 800, 600);
    lineChart.getData().addAll(series1);
    stage.setScene(scene);        
    scene.setOnMouseClicked(mouseHandler);
    scene.setOnMouseDragged(mouseHandler);
    scene.setOnMouseEntered(mouseHandler);
    scene.setOnMouseExited(mouseHandler);
    scene.setOnMouseMoved(mouseHandler);
    scene.setOnMousePressed(mouseHandler);
    scene.setOnMouseReleased(mouseHandler);
    stage.show();
    EventHandler<MouseEvent> mouseHandler = new EventHandler<MouseEvent>() {
    @Override
    public void handle(MouseEvent mouseEvent) {
        if (mouseEvent.getEventType() == MouseEvent.MOUSE_PRESSED) {            
            rectinitX.set(mouseEvent.getX());
        else if (mouseEvent.getEventType() == MouseEvent.MOUSE_DRAGGED || mouseEvent.getEventType() == MouseEvent.MOUSE_MOVED) {
            LineChart<Number, Number> lineChart = (LineChart<Number, Number>) pane.getCenter();
            NumberAxis xAxis = (NumberAxis) lineChart.getXAxis();
            double Tgap = xAxis.getWidth()/(xAxis.getUpperBound() - xAxis.getLowerBound());
            double newXlower=xAxis.getLowerBound(), newXupper=xAxis.getUpperBound();            
            double Delta=0.3;
            if(mouseEvent.getEventType() == MouseEvent.MOUSE_DRAGGED){
            if(rectinitX.get() < mouseEvent.getX()&& newXlower >= 0){   
                newXlower=xAxis.getLowerBound()-Delta;
                newXupper=xAxis.getUpperBound()-Delta;
        else if(rectinitX.get() > mouseEvent.getX()&& newXupper <= 22){   
                newXlower=xAxis.getLowerBound()+Delta;
                newXupper=xAxis.getUpperBound()+Delta;
            xAxis.setLowerBound( newXlower );
            xAxis.setUpperBound( newXupper );                       
            rectinitX.set(mouseEvent.getX());                                
        public static void main(String[] args) {
            launch(args);
    }Thanks!

    I would use an ObservableList (probably backed by a LinkedList) of XYChart.Data to store the collection of "deleted" data points. Create the buttons as usual; your "Remove" button's event handler should remove the last element of the series and add it to the first element of the deleted items data points. The "Add" button should remove the first element of the deleted data points and add it to the end of the series. You can bind the "disable" property of the remove and add button to Bindings.isEmpty(series1.getData()) and Bindings.isEmpty(deletedDataPoints), respectively.
    Something like
    ObservableList<XYChart.Data<Number, Number>> deletedDataPoints = FXCollections.observableList(new LinkedList<XYChart.Data<Number, Number>>());
    removeButton.setOnAction(new EventHandler<ActionEvent>() {
      @Override
      public void handle(ActionEvent event) {
        deletedDataPoints.add(0, series1.getData().remove(series1.getData().size()-1));
    addButton.setOnAction(new EventHandler<ActionEvent>() {
      @Override
      public void handle(ActionEvent event) {
        series1.getData().add(deletedDataPoints.remove(0));
    removeButton.disableProperty().bind(Bindings.isEmpty(series1.getData()));
    addButton.disableProperty().bind(Bindings.isEmpty(deletedDataPoints));The other approach would be to use a separate List for all the data points, and keep an integer variable storing the number of data points displayed. Your "remove" button would decrement the number displayed, and your "add" button would increment the number displayed. Both would also call
    series1.getData().setAll(allDataPoints.sublist(0, numberOfDisplayedPoints));You might even be able to make the numberOfDisplayedPoints an IntegerProperty and bind the data property of the series to it in a nice way. This approach probably doesn't perform as well as the previous approach (using a stack of deleted points), because you are not directly giving the chart as much detailed information about what has changed.
    Both approaches get problematic (in the sense that you need to carefully define your application logic, and then implement it) if the underlying data has the potential to change.

  • Problems updating My Adobe purchases and products information

    Im having problems updating the my products and services page on the "My Adobe" website. It says my serial numbers for CS6 arent valid!

    See in each Browser which version of Flash it thinks it has...
    http://kb2.adobe.com/cps/155/tn_15507.html
    And it should show you the latest version.
    You should first uninstall any previous version of Flash Player, using the uninstaller from here (make sure you use the correct one!):
    http://kb2.adobe.com/cps/865/cpsid_86551.html#prob1=uninst,os=m10.6,

  • To remove (and add) a panel inside a dialog.

    hello
    I would like to change the layout of one dialog.
    I thought to do it by removing one panel an adding another.
    That is the code I wrote:
    import java.awt.Component;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    public class TestForChangePanel extends JFrame {
        PanelOne panelOne;
        PanelTwo panelTwo;
        public TestForChangePanel() { // costruttore
            panelOne = new PanelOne(this);
            panelTwo = new PanelTwo(this);
            changeThePanel(panelTwo);
            setSize(200, 150);
            this.setDefaultCloseOperation(EXIT_ON_CLOSE);
            setVisible(true);
        } // costruttore
        static public void main(String[] args) {
            TestForChangePanel testForChangePanel = new TestForChangePanel();
        public void changeThePanel(Component panel) {
            System.out.println("function to changethe Panel");
            if (panel instanceof PanelTwo) {
                remove(panelTwo);
                add(panelOne);
                System.out.println("put Panel One");
            if (panel instanceof PanelOne) {
                remove(panelOne);
                add(panelTwo);
                System.out.println("put Panel Two");
             validate();
        } // changeThePanel()
    }// class TestForChangePanel
    class PanelOne extends JPanel {
        JLabel labelOne = new JLabel("LABEL ONE");
        JButton jbOne = new JButton("Change");
        TestForChangePanel owner;
        PanelOne xxx = this;
        public PanelOne(TestForChangePanel ownr) {  // costruttore
            owner = ownr;
            this.add(labelOne);
            this.add(jbOne);
            jbOne.addMouseListener(new MouseAdapter() {
                @Override
                public void mouseClicked(MouseEvent e) {
                    JOptionPane.showMessageDialog(null, "mouse panel ONE");
                    owner.changeThePanel( xxx);
        } // costruttore
    }  // class PanelOne
    class PanelTwo extends JPanel {
        JLabel labelTwo = new JLabel("LABEL TWO");
        JButton jbTwo = new JButton("Change");
        TestForChangePanel owner;
         PanelTwo xxx = this;
        public PanelTwo(TestForChangePanel ownr) { // costruttore
            owner = ownr;
            add(labelTwo);
            this.add(jbTwo);
            jbTwo.addMouseListener(new MouseAdapter() {
                @Override
                public void mouseClicked(MouseEvent e) {
                    JOptionPane.showMessageDialog(null, "mouse panel TWO");
                    owner.changeThePanel(xxx);
        } // costruttore
    }  // class PanelTwoThere is not error in the execution of the code. But the layouth of the dialog does not change.
    Please, someone can tell me why the code doesn't work how I think it should have to do ?
    thank you
    regards
    tonyMrsangelo.

    I never had any problem with revalidate.I still don't understand the difference between validate() and revalidate(). The vast majority of time they are interchangeable and a repaint() is not required. However, I have noticed a few cases where validate() works and revalidate() doesn't (and vice-versa). I have also noticed a few cases where repaint() is required. Of course I can't remember all the situations, but here are a couple of examples showing problems:
    This posting shows a repaint() is required when removing a single component:
    [http://forums.sun.com/thread.jspa?forumID=31&threadID=789317&start=8]
    And this posting shows a repaint() is required when removing and adding a component (but only if the last component in the container is removed and added)
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class ValidateTest extends JFrame implements ActionListener
         JComponent north;
         int number;
         public ValidateTest()
              north = new JPanel();
              getContentPane().add( north, BorderLayout.NORTH );
              north.add( new JButton("Button1") );
              north.add( new JButton("Button2") );
              north.add( new JButton("Button3") );
              north.add( new JButton("Button4") );
              JPanel south = new JPanel();
              getContentPane().add( south, BorderLayout.SOUTH );
              JButton validate = new JButton("Validate");
              validate.addActionListener( this );
              JButton revalidate = new JButton("Revalidate");
              revalidate.addActionListener( this );
              JButton repaint = new JButton("Repaint");
              repaint.addActionListener( this );
              south.add( validate );
              south.add( revalidate );
              south.add( repaint );
         public void actionPerformed(ActionEvent e)
              //  repaint() is needed in this case
              int position = 3;
              //  repaint is not needed in this case
    //          int position = 0;
              north.add( new JButton( "" + number++), position );
              String command = e.getActionCommand();
              if ("Validate".equals(command))
                   north.validate();
              else if ("Revalidate".equals(command))
                   north.revalidate();
              else
                   north.repaint();
         public static void main(String[] args)
              JFrame frame = new ValidateTest();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.setSize(500, 200);
              frame.setLocationRelativeTo( null );
              frame.setVisible(true);
    You can even see in the JScrollPane tutorial they use revalidate without repaint when resizing the client area. I think, the key here is the "resizing" seems to automatically cause the area to be repainted.

  • TS1702 Vtok application problems since I update my iPad 2 system to ios6, my vtok cannot open. What I need to do in order to fix this problem? I already removed and re installed the application many times, but this didn't fix the problem.

    It is any problem with the application vtok? Since I update my iPad2 system to iOS6.0 I was unable to use this application. The problem is when I tap on the vtok icon, the application opens and closes right away. I removed and reinstall the application twice, but this doesn't fix the problem. When I try to find the application on application store, it's give me a message that the vtok application is not available in USA.

    Not available in Spain either. I can't find anything googling for this problem, Vtok's page and facebook page seem to be unmaintained.
    It is strange such a widely used app doesn't show life signals.
    Good luck

  • Powershell Script to Remove and Add the user with same permission

    Hi,
    I need to remove all users within all site collection of a web application and add them back with same permission level. We have a siteminder based custom trusted identity token issuer configured in our farm. The name of the issuer will be changed
    due to some architectural decissions , hence all users which are there before will be unidentified, hence need to be removed and added again.
    Currently each user looks like :                       c:0ǹ.t|Identity Token Issuer1|user1
    Post the change the user will look like:          c:0ǹ.t|Identity Token Issuer New|user1
    I am looking for a powershell script which can handle this operation.
    Thanks, Bivsworld

    Bivsworld,
    Below link should give you a start.
    http://www.sptechlearn.com/2014/10/delete-users-from-user-information-list.html

  • In trying to update itunes to version 10.7 I get messages that older versions of "Bonjour" and "Apple Software update" cannot be removed and so the update fails. Itunes works well on my old ipod nano but not on my new ipod touch? Any ideas

    Any ideas as to how I can update an older version of iTunes to at least version 10.7 given the problems I'm having with "bonjour" and the "software update"?

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get aCode 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any Apple Software Updateentries and click "Remove", as per the following screenshot:
    Next, select any Bonjour entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install using an iTunesSetup.exe (or iTunes64Setup.exe) downloaded from the Apple Website:
    http://www.apple.com/itunes/download/
    Does it go through properly this time?

  • Exception thrown when I remove and add Tab?

    Hi,
    I use the JTabbedPane, and I made a button, when it's pressed, it will remove all tab from the JTabbedPane, and then it will recreate every tab(update them) and add it back. But sometimes there's exception thrown, why is that? the exception are:
    java.lang.ArrayIndexOutOfBoundsException: 4 <------------------- this number always change
    at javax.swing.plaf.basic.BasicTabbedPaneUI.paintTabArea(BasicTabbedPaneUI.java:535)
    at javax.swing.plaf.basic.BasicTabbedPaneUI.paint(BasicTabbedPaneUI.java:497)
    at javax.swing.plaf.metal.MetalTabbedPaneUI.paint(MetalTabbedPaneUI.java:666)
    at javax.swing.plaf.metal.MetalTabbedPaneUI.update(MetalTabbedPaneUI.java:561)
    at javax.swing.JComponent.paintComponent(JComponent.java:541)
    at javax.swing.JComponent.paint(JComponent.java:808)
    at javax.swing.JComponent.paintChildren(JComponent.java:647)
    at javax.swing.JComponent.paint(JComponent.java:817)
    at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4795)
    at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4748)
    at javax.swing.JComponent._paintImmediately(JComponent.java:4692)
    at javax.swing.JComponent.paintImmediately(JComponent.java:4495)
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
    at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    Does anyone know why? Thx
    Adrian

    Does anyone know why? I still can't solve this problem, it just keep popping up, but the strange thing is after exception thrown, nothing has happeded, everything seems to be fine, the program still running, all those tabs are added.
    Does anyone know why?

  • ADF Query Panel with Tree Table -- Add Fields

    I created ADF Query Panel with Tree Table using JDeveloper 11G. Under Advance Search, Add Fields pull down only list the fields in the master table. My questions are,
    1) Can I search fields in detail table? If yes, how can I do it?
    2) How can I customized this pull down list? Currently it just show the entire view of master table with unnecessary id type data.
    Thanks in advance.
    Edited by: kxc on Nov 9, 2009 9:21 AM

    1) Can I search fields in detail table? If yes, how can I do it?
    Are there anyway to search the second level node?You can. But you need to evaluate if the arrangement works for you.
    I assume you have a view link from the master to detail VO.
    To do so, in your master view criteria (the one which you use in the query panel), shuttle the attributes of your detail VO (in master attributes list, you'l see the detail view link accessor - on selecting this, the detail atteributes are available to you)
    In the Add Fields, it shows as student_id AND student_name. I was unable to delete the student_id field in the view since it is PKYou can set its 'display' UI hint to 'hide' in your VO.

Maybe you are looking for