Problem withJMEDesktop and textures

Hi, I am experimenting with JMEDesktop.

I added a JTable to the desktop. When 2 or more rows are selected a box is created for each row and added to the scene. But as you can see the texture from the font is added to the box, too. Why? How can I avoid this? I think it has something to do with the editible cell in the JTable when i click on them to select them???

I'm adding a MouseListener to the table and when the mouse is pressed, I create the boxes:



public void mouseClicked(MouseEvent e) {
      System.out.println("mouse pressed");
      if (e.getButton() == 1) {
         int[] selectedRows = ((JTable) e.getComponent()).getSelectedRows();
         if (selectedRows.length >= 2)
            this.bc.compareSelection(selectedRows); //here the boxes are created
      }
   }



http://www.pictureupload.de/pictures/010707084245_desktop.jpg

Another problem is, that the table is always shown on top of the boxes. I would like to have the object in front which is closer to the camera (like in a normal scene).

I solved the problem myself…i forgot to call updateRenderState after creating the boxes  :stuck_out_tongue: