ComponentView does not redraw component in JTextPane Cell Rend

We have created a JTable implementation that uses JTextPanes as cell renderers/editors so that text styles and the like are available. We want insert a component, such as a JButton, into the JTextPane. However, the component is only visible when the cell is in an editable state. In the renderer, the ComponentView looks like it has set aside the space where the component is to be, but the component is not visible.
I have looked at this problem for several days now, and have only determined that this seems to be occuring at a low level. What I have found is that the ButtonUI's update method is not called when the document is in the cell renderer, while it seems called continuously in the cell editor (on each caret blink).
Does anybody have any insight as to the problem? I have submitted this as a bug to Sun but wanted to find out if anybody else has come across anything similar to this.
Thank for any help.
Steve Feveile
Here is sample code to reproduce the problem:
// Main Class
* Main frame for the testing of the component not painting. This simplifies
* an issue we have come across when trying to set up using a JTextPane as a
* renderer/editor as the cells in a table.
* Under these conditions we have found that a component inserted into the JTextPanes document
* only appears in the editing state of the cell, whereas the rendering state leaves
* the spacing for the component but does not make it visible.
* Note that creating a JTextPane with the one of these documents will show the component,
* even when not editing.
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.*;
import javax.swing.text.*;
import javax.swing.table.*;
public class tableFrame extends JFrame
     public tableFrame()
          //set up frame
          getContentPane().setLayout(new BorderLayout());
          setSize(500,300);
          setTitle("Table Missing Component Test");
addWindowListener(
     new WindowAdapter() {
          public void windowClosing(WindowEvent e) {
                         setVisible(false);                         
               System.exit(0);     
          //set up components the table
          JTable table = new JTable(createDocumentTableModel(2,2));
          table.setRowHeight(60);
          //set the default renderer/editor to use the JTextPane implementation
          for (int x = 0; x < table.getColumnCount(); x++) {
               table.setDefaultEditor(table.getColumnClass(x), new TextPaneCellEditor());
               table.setDefaultRenderer(table.getColumnClass(x), new TextPaneRenderer());
          JScrollPane pane = new JScrollPane(table);
          getContentPane().add(pane, BorderLayout.CENTER);
          //this adds a textpane without the table involved
          //uising the same way of inserting a document
          JTextPane tPane = new JTextPane();
          DefaultStyledDocument doc = new DefaultStyledDocument();
          try
               doc.insertString(0, "Some text in a JTextPane", null);
               JButton b = new JButton("Button");
     SimpleAttributeSet inputAttributes = new SimpleAttributeSet();
          StyleConstants.setComponent(inputAttributes, b);
          doc.insertString(0 , " ", inputAttributes);
          catch (Throwable t)
               System.out.println("createDocumentTableModel error: " + t.getMessage());
          tPane.setDocument(doc);
          tPane.setSize(490, 60);
          JScrollPane pane2 = new JScrollPane(tPane);
          getContentPane().add(pane2, BorderLayout.SOUTH);
     * this creates a table model where the documents are the value
     * in each cell, and the cell renderer/editor can use this instead
     * of a string value
     private TableModel createDocumentTableModel(int row, int col)
          Vector headerData = new Vector();
          Vector tableData = new Vector();
          for (int i=0;i<row;i++)
               headerData.add("Column" + i);
               Vector rowData = new Vector();
               for (int j=0;j<col;j++)
                    DefaultStyledDocument doc = new DefaultStyledDocument();
                    try
                         //this inserts some string to see that this is visible
                         //when editing and rendering
                         doc.insertString(0, ("Row: " + i + ", Column: " + j), null);
                         //this button will only be visible when the cell is in
                         //an editing state
                         JButton b = new JButton("Button" + i + "-" + j);
               SimpleAttributeSet inputAttributes = new SimpleAttributeSet();
                    StyleConstants.setComponent(inputAttributes, b);
                    doc.insertString(0 , " ", inputAttributes);
                    catch (Throwable t)
                         System.out.println("createDocumentTableModel error: " + t.getMessage());
                    rowData.add(doc);
               tableData.add(rowData);
          return new DefaultTableModel(tableData, headerData);
     //starts the ball rolling
     static public void main(String args[])
          (new tableFrame()).setVisible(true);
// Custom Cell Editor
* Sets the editor to use a JTextPane implementation
import java.awt.*;
import java.awt.event.*;
import javax.swing.table.*;
import javax.swing.event.*;
import java.util.EventObject;
import java.io.Serializable;
import javax.swing.*;
import javax.swing.text.*;
public class TextPaneCellEditor implements TableCellEditor
/** Event listeners */
protected EventListenerList listenerList = new EventListenerList();
transient protected ChangeEvent changeEvent = null;
protected JTextPane editorComponent;
protected EditorDelegate delegate;
protected int clickCountToStart = 1;
     * constructor.
public TextPaneCellEditor() {
          editorComponent = new JTextPane();
          //use 1 click count to edit a cell
          clickCountToStart = 1;
          * controls the values of the editor
          delegate = new EditorDelegate() {
               * sets the text value cell.
               * @param value - value to set in the document
               public void setValue(Object value) {
                    if (value instanceof Document)
                         editorComponent.setDocument((Document) value);
                    else
                         editorComponent.setText("");
               * gets the text value cell.
               * @return the document in the textpane
               public Object getCellEditorValue() {
                    return editorComponent.getDocument();
     // implements the setting the value for the editor
     public Component getTableCellEditorComponent(JTable table, Object value,
               boolean isSelected, int row, int column) {
          if (value != null)          
               delegate.setValue(value);
          else
               delegate.setValue("");
          return editorComponent;
// Implementing the CellEditor Interface
     // implements javax.swing.CellEditor
     public Object getCellEditorValue() {
          return delegate.getCellEditorValue();
     // implements javax.swing.CellEditor
     public boolean isCellEditable(EventObject anEvent) {
          if (anEvent instanceof MouseEvent) {
               return ((MouseEvent)anEvent).getClickCount() >= clickCountToStart;
          return true;
// implements javax.swing.CellEditor
     public boolean shouldSelectCell(EventObject anEvent) {
          return delegate.shouldSelectCell(anEvent);
     // implements javax.swing.CellEditor
     public boolean stopCellEditing() {
          fireEditingStopped();
          return true;
     // implements javax.swing.CellEditor
     public void cancelCellEditing() {
          fireEditingCanceled();
// Handle the event listener bookkeeping
     // implements javax.swing.CellEditor
     public void addCellEditorListener(CellEditorListener l) {
          listenerList.add(CellEditorListener.class, l);
     // implements javax.swing.CellEditor
     public void removeCellEditorListener(CellEditorListener l) {
          listenerList.remove(CellEditorListener.class, l);
     * Notify all listeners that have registered interest for
     * notification on this event type. The event instance
     * is lazily created using the parameters passed into
     * the fire method.
     * @see EventListenerList
     protected void fireEditingStopped() {
          // Guaranteed to return a non-null array
          Object[] listeners = listenerList.getListenerList();
          // Process the listeners last to first, notifying
          // those that are interested in this event
          for (int i = listeners.length-2; i>=0; i-=2) {
               if (listeners==CellEditorListener.class) {
                    // Lazily create the event:
                    if (changeEvent == null)
                         changeEvent = new ChangeEvent(this);
                    ((CellEditorListener)listeners[i+1]).editingStopped(changeEvent);
     * Notify all listeners that have registered interest for
     * notification on this event type. The event instance
     * is lazily created using the parameters passed into
     * the fire method.
     * @see EventListenerList
     protected void fireEditingCanceled() {
          // Guaranteed to return a non-null array
          Object[] listeners = listenerList.getListenerList();
          // Process the listeners last to first, notifying
          // those that are interested in this event
          for (int i = listeners.length-2; i>=0; i-=2) {
               if (listeners[i]==CellEditorListener.class) {
                    // Lazily create the event:
                    if (changeEvent == null)
                         changeEvent = new ChangeEvent(this);
                    ((CellEditorListener)listeners[i+1]).editingCanceled(changeEvent);
// Protected EditorDelegate class
protected class EditorDelegate implements ActionListener, ItemListener, Serializable {
          //made up of unimplemented methods
          protected Object value;
          public Object getCellEditorValue() {
               return null;
          public void setValue(Object x) {}
          public void setDocument(Object x) {}
          public Document getDocument() {
               return null;
          public boolean isCellEditable(EventObject anEvent) {
               return true;
          /** Unfortunately, restrictions on API changes force us to
          * declare this method package private.
          boolean shouldSelectCell(EventObject anEvent) {
               return true;
          public boolean startCellEditing(EventObject anEvent) {
               return true;
          public boolean stopCellEditing() {
               return true;
               public void cancelCellEditing() {
          public void actionPerformed(ActionEvent e) {
               fireEditingStopped();
          public void itemStateChanged(ItemEvent e) {
               fireEditingStopped();
// Custom Cell Renderer
* renders a table cell as a JTextPane.
import java.awt.*;
import javax.swing.*;
import javax.swing.text.*;
import javax.swing.table.*;
public class TextPaneRenderer extends JTextPane implements TableCellRenderer                                                  
     * Constructor - just set to noneditable
     public TextPaneRenderer() {
          setEditable(false);
     * implementation of table cell renderer. If the value is a document
     * the, the text panes setDocument is used, otherwise a string value
     * is set
     public Component getTableCellRendererComponent(JTable table, Object value,
               boolean isSelected, boolean hasFocus, int row, int column) {
          if (value != null)
               if (value instanceof Document)
                    //set the value to a document
                    setDocument((Document) value);
               else
                    //convert the value to a string
                    setText(value.toString());
          else
               //set text to an empty string
               setText("");
          return this;

Hi, I came across the forum and found your problem is very similar to what I am having now. Your post has been a year old, I just wonder if you come up anything productive to what you had? Could you let us know what you (or Sun) find out if you do have one? Thanks.

Similar Messages

  • Image blanks when clicking with Polygon Lasso - does not redraw

    When I am in an image, selecting an area with the polygon lasso tool, every time I click a point, the image blanks out and does not redraw. I am left with my pologon selection lines and a white image where the photo should be.
    The only way to get the image back is to force it to scroll. I have to extend the tool off one side of the image or another to make it scroll.  Otherwise the screen does not redraw.  I am forced to work with my images in a window instead of fullscreen to ensure that I have part of the image to scroll to when the image blanks out.  It is doing this with every click of the polygon lasso tool.
    Needless to say, this is maddening!  Has anyone seen this behavior before? 
    I am running Adobe Photoshop CS3 on Windows XP and the program is up to date.  I have two gigs of ram and have moved up the memory allocated to Photoshop from half to two thirds.  I have stopped having other programs opened.  I also tried turning off the preference for the 3D graphics acceleration. So far nothing has worked to fix the problem.
    I have about 1100 product photos to clip out - HELP!
    Many thanks,
    Lynne

    I have reset the prefs, first for the polygon tool, which did not fix the problem.  Then I held down the keys on startup and told it to delete the prefs file.  I am still having the problem, although not on every single click.  It has become intermittant, which is bizarre!
    This laptop was recently completely reformatted and reloaded with everything when they passed it down to me.
    I checked my video driver and it is up to date.  I am on a Dell XPS Gen2 laptop running NVIDIA Gforce Go 6800 Ultra.  Unfortunately the NVIDIA site is referring me back to Dell for the driver, and the Dell driver has not been updated since 2005.  Oh, the joys of running on older equipement!
    Lynne

  • JD12 JSF designer does not redraw

    I am having many issues in JD12 JSF designer.
    One is that when I for example select a navigation button's spacer and change it's Width property, the space between buttons does not change until file is closed and re-opened. Is that expected behaviour? Dropping an operation onto the navigation button is very tricky as well. Even when selected is 'Panel group layout', sometimes a rebinding window comes up. The space where a button has to be dropped is so narrow and volatile, that dropping a button becomes a torture that I have to repeat 2-3 times before it actually drops exactly one button (and does not rebind or drop 3 copies of it).
    Another is that when I am changing table column Sortable and Filterable properties, they take 2 times to change the selected values from default to true or vice versa. The green dot does appear in front of property name, but drop down reverts to default (or previous value whatever it was). Suppose I changed Sortable from default to true - it did not change. Then I am changing Filterable in the sam manner and it does not redraw, but Sortable now does. Then I have to change sortable to the same new value again and Filterable now changes. Very annoying. Is there a fix?
    Selecting the controls is bugged as well.  Suppose I selected a table column and changed its Row header property to true, then went on to change another one. When I click another column, it does not select, but a baloon pops up which contains a binding for that column. To close it I have to click elsewhere and re-click the column again. Why is that happening?
    Suppose I dropped a panel border layout onto a facet. Undoing that does not visually remove the border layout from a form. Only closing a file and re-opening will re-draw. Similarly, I am adding a navigation button from Operations, but the buttons do not re-draw to show that a new button was added. Same as previous, only closing/re-opening a file shows a new button. Royal PITA. Is there a fix?
    Suppose I am changing initial size of a table. The number by the right corner changes showing the new size, but after the bottom border is released, the size does not re-draw. Only closing and re-opening a file shows the new size.
    Resizing table columns is painful. When a column is shrinking, the columns to the right of it do not move accordingly - they stay put and the width of the very next column is increasing. Thus it is absolutely impossible to arrange the columns that are beyond visible width of the table. When the column is growing, the columns to the right of it behave erratically - often they suddenly increase their width and disappear beyond the right table border. This is simply infuriating.
    The last is that if the data controls dropped onto the page contain columns from more than one table, then resulting application will throw runtime exceptions (null pointer). But if I deleted all columns but that very object's own columns, and dropped it onto the page, then it will work. After that I can add any columns from that object and it will work fine. The Create Table wizard clearly creates defective code.
    I am running JDEVADF_12.1.2.0.0_GENERIC_130608.2330.6668 under Windows 7 32bit. Are these issues fixed in a more recent build or going to be fixed soon?

    You are not understanding the term 'narrow space' I've used. It does not equal 'width of spacer between the buttons. It equals the area of display monitor where an orange drop indicator appears that supports dropping a new button in between the existing ones. I.e. where JD12 is allowing me to drop a new operation without rebinding the existing buttons.
    The JDK version is the one that JD12 itself installed - 1.7.0_15. As that's the JDK that was shipped with JD12, I contend it has to be sufficient.
    There is no Mcaffee on this machine. They are using Symantec AV. There is about 300-500 MB free RAM when these issues are occurring and CPU load is about 0%.
    Another issue I just noticed is that javadocs are not loading. Doc Path for JDK 1.7.0_15 that came with JD12 is set to http://docs.oracle.com/javase7docs/api/ and there is no doc under the folder where JD installed its JDK. I don't know how to fish docs for an older JDK out of Oracle web site.
    As you contend that it is my system that is a root cause, I looked up the system requirements for JD12 and found that my system exceeds them.
    Oracle&amp;#174; Fusion Middleware System Requirements and Specifications
    Resource
    Recommended Minimum
    Value
    CPU
    Intel Core 2 i5 or equivalent
    Memory
    3 GB of RAM on 32-bit systems
    4 GB of RAM on 64-bit systems
    Display
    65536 colors, set to at least 1024 X 768 resolution
    Hard Drive Space
    3 GB for Studio Edition
    90 MB for Java Edition

  • "Layer 1 does not start with a new cell" replicator error

    Hi All,
    I recently sent a dual layer +R DVD off to our replication house and their system is returning a message that says: "Layer 1 of DVD-Video does not start with a new cell".
    I know from reading that the dual-layer breakpoint must be set to the end of a cell, but what does the word "cell" translate into for DVDSP4?
    I had the DVD DL+R set to Automatic and Non-Seamless for output for the break point. Should I just try setting the break point manually at the beginning or ending of a track that would be dubbed as just a little more than half the size of the content? (I know in OTP, the Layer 0 has to be bigger than Layer 1)
    Please Help!
    Cheers,
    Dusty

    Thanks both of you for your replies.
    Eric, I am currently exporting DDPs to send in to the replicator. I also emailed them asking if they accept this format for delivery. (Which I would hope they would, as it is, an answer to DLT of sorts) Thanks for bringing this up, DDP is new to me, as this is our first DL project for replication.
    Drew, to answer your reply, yes I have two viable markers (chapter markers) that show up in black, not grayed out, in the tab you mentioned under formatting. I chose manual break point selection for this last disc I burned and chose chapter 4 of that track. (chapter 4 and chapter 5 of track 6 are only options) I have to assume that the "automatic" setting was selecting chapter 5, as it had to see that as the last viable marker available to select, as described in the DVDSP4 manual.
    DVDSP4 says that all markers are considered cells- Or actually that tracks are cells and that the markers within them make up more cells. So my question, outside of DDP option, would be, "what truly constitutes a cell boundary in DVDSP4?" Is it the markers within the tracks or the beginning or ends of the tracks themselves?
    As a side note, I burned the disc that received the error, "Layer 1 doesn't start with a new cell" from an IMG i created from DVDSP4 through Disk Utility. Word is that IMG's somehow don't include breakpoint information.
    So at this point I don't know if it is the IMG or the fact that DVDSP4 wants the break at one of two possible chapter markers in track 6.
    (Some more background- this is a TV show season DVD, with thirteen tracks of video, each with 12-14 chapter markers a piece.)
    Any more thoughts to help clear the air on what constitutes a true new cell boundary?
    Thanks sooo much Eric and Drew, I know this a long read.
    Cheers,
    Dusty

  • Firefox window sometimes does not redraw after I close a tab

    This started a while ago and has persisted through multiple updates of Firefox and my display drivers. It's straightforward: sometimes when I close a tab (via keyboard or mouse) Firefox does not redraw its window and I am left looking at a "ghost" version of the tab.
    If I move my mouse over the window I can see it responding to links in the tab that Firefox has switched to, but the display will not update until I do something to trigger the browser to redraw its whole window (e.g. resizing it).
    I am using Firefox 36 beta and have a GTX 560 Ti graphics card with the latest Nvidia drivers. As I mentioned above though, this issue has been around for a while and is not specific to the version of Firefox (I don't normally use betas) or drivers I am currently using. I don't have problems in any other program.
    Has anyone else experienced this?

    You can try to disable OMTC and leave hardware acceleration in Firefox enabled.
    *<b>about:config</b> page: <b>layers.offmainthreadcomposition.enabled</b> = false
    You can open the <b>about:config</b> page via the location/address bar.
    You can accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    See also:
    *https://support.mozilla.org/kb/upgrade-graphics-drivers-use-hardware-acceleration

  • Does not match component version

    Hi,
    We have four system landscape. We have already upgrade our DEV and ITT to EHP5.We still have to upgrade our UAT and prod to EHP5. When I see the transport queue on ITT system.I see all the transport that was imported on ITT before the upgrade is showing as "Does not match component version".
    I can understand that the version before the upgrade was different so it should show that message.
    I just wanted to check if this is normal or I need to make changes to TMS?
    Regards!
    Ravi

    Hi,
    You can do as follows:
    Switch it off with parameter : SP_TRANS_SYNC = OFF
    Procedure:
    Call transaction STMS
    Goto 'Systems Overview'
    Double click <SID> you wish to add the parameter to
    Goto 'Transport Tool' tab
    Goto 'change mode'
    Add  SP_TRANS_SYNC  to parameter column and OFF to value column
    Save, activate and distribute
    With Version SAP_BASIS 702 a new feature was added to the TMS system,
    tp is now checking the component version of the transport which was
    released and the component version of the system where the transport is
    going to be imported. If there is a difference, this difference is
    highlighted in the import queue (transaction stms_import) and if you try
    to import the transport, the import will stop with a warning message
    about the difference in the SAPCOMPONENT versions.
    If you wish to by-pass with warning then you can choose 'Ignore invalid
    Component version'.
    Regards,
    Aidan

  • Pages "Track Changes" does not work when working in cells in a document

    While attempting to edit a WORD file (converted to Pages for my macbook) it was discovered that the Track Changes feature will not register if the changes are inside a "cell" in the file.  The RFP I am trying to respond to is made up of multiple columns and rows.  Anytime you make a change inside the columns or rows the "Track Changes" does not record the change.  Outside of the columns/rows it works perfectly.
    I download the most recent OS and Pages file last week.  The issue started then.
    Has anyone had this issue before?

    Yes.

  • X230 bluetooth does not work - unable to use cell phone as personal hotspot

    I am trying to use the bluetooth in my X230 to pair my laptop with my cell phone. I want to be able to use my cell phone as a personal hotspot, in case I am in an area with no secure wi-fi. I would have thought that this would be standard feature in a laptop that is touted as a business device, but apparently this is not the case.
    I installed both the bluetooth driver and the latest system update, as suggested by Sarbin...
    http://support.lenovo.com/en_US/research/hints-or-tips/detail.page?&DocID=HT073834
    and
    http://support.lenovo.com/en_US/downloads/detail.page?DocID=DS012808
    ... but it is still not working for me. I am now able to connect my cell phone to my X230, but instead of enabling me to access the internet via bluetooth, a dialogue box appears enabling me to play songs that are on my cell phone using the laptop speakers.
    I am disappointed that the bluetooth driver did not come pre-installed on the x230, and I am disappointed that I am not able to use my cell phone as a personal hotspot for my x230.
    Solved!
    Go to Solution.

    There is a key step missing from the prior post, but is shown on the link.
    After the steps described in the prior post (e.g., disabling all services on the Bluetooth device except NAP), go to <Control Panel<, <Devices and Printers>, right click on the Bluetooth device (e.g., iPhone) that you want to connect to for your internet hotspot access point, and then click on <Connect Using> and then <Access Point>.
    Using this method, the Lenovo's Access Connections program does NOT control this internet connection, thus the icon in the system tray will show NO connection in the Lenovo wireless access icon (even though the computer is connected via the Bluetooth connection to the iPhone).
    Disconnecting requires going back into Control Panel and disconnecting from the Access Point.
    Kinda clunky in my opinion, but I could never get a connection to the internet via a Bluetooth/iPhone Hotspot combination using the Lenovo Access Connections software despite claims in that software's help section saying that such a connection was possible.  (The Lenovo Access Connections Help section even gives instructions to use tabs that don't exist in the software.)

  • KDE does not redraw window content

    hi everyone,
    i am currently on testing and kde-unstable and have the latest packages. on my thinkpad t430 with ivybrigde graphics windows to not redraw properly anymore. sometimes it gets updated after some time or just partially. i still can click into windows and they react, just not visually. they get redrawn when i move them around or maximize them. it also seems to be a qt-only issue, since chromium works like a charm.
    is anyone able to reproduce this?
    greetings and thanks in advance for any help :-)

    I'm having the same problem, but i had it in kde 4.10 too.
    Ati hd5650 here, with opensource driver.

  • JTextField does not redraw properly

    Hi,
    I have a JPanel that displays some buttons amongst some textfields and labels. One of my buttons is labeled Add Customer. When the user clicks on Add Customer he is presented with a number of JTextFields and JLabels which are all displayed fine.
    However, when the user clicks on Cancel or closes the InternalFrame in which the JTextFields and JLabels are displayed and then clicks on Add Customer again, then the JTextFields are not redrawn properly. I image of this behavior can be seen at
    http://www.grosslers.com/totals.07.png
    As soon as I start to type text into the textfield then the whole textfield redraws itself as it should, but when it looses focus then the textfield becomes invisible once again.
         // Some textfields
         private     JTextField textField_customerEditCompanyName = new JTextField(10);
         private     JTextField textField_customerEditContactName = new JTextField(10);
          * Panel that will hold all the buttons for the quote request details tabbed panel
         public JPanel createQuoteRequestDetailsButtons() {
              // Panel to act as a container for the buttons
              JPanel panel_quoteRequestDetailsButtons = new JPanel();
              // Create, register action listeners and add buttons to the panel
              JButton button_addCustomer = new JButton("Add Customer");
              button_addCustomer.addActionListener(new ActionListener() {
                   public void actionPerformed (ActionEvent actionEvent) {
                        // Add a new customer
                        addCustomerListener();
              panel_quoteRequestDetailsButtons.add(button_addCustomer);
              return panel_quoteRequestDetailsButtons;
          * Display a new internal frame when the user wants to add a new customer
         public void addCustomerListener() {
              // Master panel for the add customer details
              JPanel panel_addCustomerMaster = new JPanel();
              // Add the customer details panel to the master panel     
              panel_addCustomerMaster.add(customerDetailsPanel());
              // Ensure that all the textfields are blank
              resetCustomerDetailsPanelTextFields();
              // Add the buttons panel to the master panel          
              panel_addCustomerMaster.add(addCustomerButtons());
              // Add the master panel to the internal frame
              internalFrame_addCustomer.add(panel_addCustomerMaster);
              // Add the internal frame to the desktop pane
              JupiterMainGUI.desktopPane.add(internalFrame_addCustomer);
              // Set the size of the internal frame
              internalFrame_addCustomer.setSize(500,420);
              // Set other properties of the internal frame
              internalFrame_addCustomer.setClosable(true);
              internalFrame_addCustomer.setIconifiable(false);
              internalFrame_addCustomer.setMaximizable(false);
              // Set the location of the internal frame to the upper left corner
              // of the current container
              internalFrame_addCustomer.setLocation(0,0);
              // Set the internal frame resizable
              internalFrame_addCustomer.setResizable(false);
              // Show the internal frame
              internalFrame_addCustomer.setVisible(true);
          * Panel that displays the textfields and labels when the user clicks on
          * add or view customer details
         public JPanel customerDetailsPanel() {
              // Create master container for this panel
              JPanel panel_customerDetailsMaster = new JPanel();
              // Create the container that will hold all the textfields/labels for
              // the creation of a new customer          
              JPanel panel_customerDetails = new JPanel(new SpringLayout());
              // Add the details panel to the master panel
              panel_customerDetailsMaster.add(panel_customerDetails);
              // Set the border for the panel
              panel_customerDetails.setBorder(BorderFactory.createTitledBorder("Customer Details"));
              // Create textfields/labels, add them to the internalFrame
              JLabel label_customerCompanyName = new JLabel("Company Name : ");
              JLabel label_customerContactName = new JLabel("Contact Name : ");
              panel_customerDetails.add(label_customerCompanyName);
              panel_customerDetails.add(textField_customerEditCompanyName);
              panel_customerDetails.add(label_customerContactName);
              panel_customerDetails.add(textField_customerEditContactName);
              //Lay out the panel.
              SpringUtilities.makeCompactGrid(panel_customerDetails,
                                    2, 2, //rows, cols
                                    5, 5,        //initX, initY
                                    5, 5);       //xPad, yPad
              return panel_customerDetailsMaster;
          * Panel holding the buttons when the user clicks on add customer
         public JPanel addCustomerButtons() {
              // Container for the buttons
              JPanel panel_addCustomerButtons = new JPanel();
              // Create the buttons for the panel
              JButton button_customerOk = new JButton("Ok");
              JButton button_customerCancel = new JButton("Cancel");
              button_customerOk.addActionListener(new ActionListener() {
                   public void actionPerformed (ActionEvent actionEvent) {
              // Closing the internal frame. When i re-open this internal frame again
                  // the labels are re-drawn properly but not the textfields.
              button_customerCancel.addActionListener(new ActionListener() {
                   public void actionPerformed (ActionEvent actionEvent) {
                        try {
                             // close and remove the internal frame from the desktop pane     
                             internalFrame_addCustomer.setClosed(true);
                        } catch (PropertyVetoException exception) {
                        JupiterMainGUI.desktopPane.remove(internalFrame_addCustomer);
              panel_addCustomerButtons.add(button_customerOk);
              panel_addCustomerButtons.add(button_customerCancel);          
              return panel_addCustomerButtons;
         }So far I have a solution, and that is to use the GTK look and feel, but it is not really an option. Another way that I have managed to get the textfields to display properly is to create them in the same method, where I create the labels. Again, this is not really an option as i need to access the textfields outside the method scope.
    Any help would be greatly appreciated
    -- Pokkie

    I added the following :
         * Panel that displays the textfields and labels when the user clicks on
         * add or view customer details
         public JPanel customerDetailsPanel() {
              // Create master container for this panel
              JPanel panel_customerDetailsMaster = new JPanel();
              // Create the container that will hold all the textfields/labels for
              // the creation of a new customer          
              JPanel panel_customerDetails = new JPanel(new SpringLayout());
              // Add the details panel to the master panel
              panel_customerDetailsMaster.add(panel_customerDetails);
              // Set the border for the panel
              panel_customerDetails.setBorder(BorderFactory.createTitledBorder("Customer Details"));
              // Create textfields/labels, add them to the internalFrame
              JLabel label_customerCompanyName = new JLabel("Company Name : ");
              JLabel label_customerContactName = new JLabel("Contact Name : ");
              panel_customerDetails.add(label_customerCompanyName);
              panel_customerDetails.add(textField_customerEditCompanyName);
              panel_customerDetails.add(label_customerContactName);
              panel_customerDetails.add(textField_customerEditContactName);
    // Added this line , but doesn't seem to make a difference. also called revalidate() on the
    // internalFrame in which this panel is displayed but no luck either. Called revalidate()
    // on panel_customerDetailsMaster but nothing :(
              panel_customerDetails.revalidate();
              //Lay out the panel.
              SpringUtilities.makeCompactGrid(panel_customerDetails,
    2, 2, //rows, cols
    5, 5, //initX, initY
    5, 5); //xPad, yPad
              return panel_customerDetailsMaster;
    Thanks for the response thou, much appreciated

  • IOS 6 showFeedbackCaptionAndDoAction() javascript method does not draw consistently

    Hi!
    The issue describe below seem to only appear in iOS 6
    CPlayerLib.js judge() -> showFeedbackCaptionAndDoAction() javascript method does not draw the Feedback Caption consistently
    sometime the feedback does not appear, I see it in the dom tree but the canvas is not drawn, the Div capturing the click is always present. Strangely when I scroll the page a bit it shows up.
    Thanks

    Ok I found a way to fix it.
    In CPlayerLib.js cp.show method in the for loop within the if (htmlItem) I added a setTimeout(function() { htmlItem.style.webkitTransform = "scale3d(1,1,1)"},100) and it now force the canvas to repaint.
    Related issue:
    http://stackoverflow.com/questions/11002195/chrome-does-not-redraw-div-after-it-is-hidden

  • I have a old excel file that does not show hiding cell boxes on my Mac.

    I have a old excel file that has some hiding info. in some of the cell boxes.  I can not see them on my Mac computers.  When I click on the cells to see the hidden info. it does not show up.

    Are you using Mac OSX version of Excel or the Windows version of Excel?  Regardless being specific to Excel, it would be best to ask in the Microsoft Office forums.
    Microsoft Office for Mac forums
    http://www.officeformac.com/productforums/
    Microsoft Office for Windows forums
    http://answers.microsoft.com/en-us/office

  • How can I do live streaming with a Mac Book Pro 2011, using a new model of Sony HD camcorder which does not have firewire out/input? it comes only with a component video output, USB, HDMI and composite RCA output?

    I need to do live streaming with a Mac Book Pro 2011, using a new model of Sony HD camcorder (http://store.sony.co...ber=HDRAX2000/H) ..this camcorder model does not have firewire out/input ..it comes only with a component video output, USB, HDMI and composite A/V video output..
    I wonder how can I plug this camcorder to the firewire port of my laptop? Browsing on internet I found that Grass Valley Company produces this converter http://www.amazon.co...=A17MC6HOH9AVE6 ..but I am not sure -not even after checking the amazon reviews- if this device will send the video signal through firewire to my laptop, in order to live streaming properly? ..anyone in this forum could help me please?
    Thanx

    I can't broadcast with the built in iSight webcam... how would I zoom in or zoom out? or how would I pan? I've seem people doing it walking with their laptops but that's not an option for me... there's nothing wrong with my USB ports but that's neither an option to stream video because as far as I know through USB you can't connect video in apple operating systems ..you can for sure plug any video cam or photo camera through usb but as a drive to transfer data not as a live video camera...  is by firewire an old interface developed by apple that you can connect all sorts of cameras to apple computers... unfortunately my new sony HDR-AX2000 camcorder doesn't have firewire output...
    thanx

  • Software component with Key ID does not exist

    Hi Friends,
               Here I am in need of your help. I got involved in an upgrade from XI 3.0 to PI 7.1. The Basis has imported all the SWC & Business systems from XI 3.0. When I am trying to activate the objects imported from IR of XI3.0 then It is triggering an error as
    data retrieving failed from Adapter Metadata  | RFC http://sap.com/xi/XI/System. /// ROA_MOA_NOTCOMPLETED.
                Because of this I am unable to activate the imported objects in ID by showing the message as Software component with key ID XXXXXXXXXXXXXXXXXXXXX  does not exist.
                when I went there to ESR then under a software component I found a message under underlying components  like             " XXXXXXXXXXXXXXXXXXXXX not exist"  but I am not aware of the object related to that Key ID.
    Please help me out in this . Thanking you in Advance.
    Regards,
    Sridhar

    Hi Neeetesh,
             I got the alternative solution for my problem. All credit goes to you. I recreated the communication channels instead of using the same ones after Upgrad. Any way we need to change the communication channels after importing the channels but the system is giving the above error message as   "Adapter Software component with Key ID XXXXXXXX......  does not exist".
             But its allowing me to create a new channel. Then based on the neetesh suggestion, I went through and create the new comm channels instead of wasting so much time on the same issue.
            Thanks a lot Neetesh.     
             I am really sorry for not giving your  points.  I am assigning points  now with great pleasure. Here you go.
    Regards,
    Dasari.

  • Komp does not have a component "SERVICE_PARAM2"- Runtime error in VA01

    When Creating a Sales order(Standard order typeu201D ORu201D and standard pricing procedure u201C) using VA01, System is giving following dump.
    "The current ABAP Program "SAPFV45P" had to be terminated because it has come across a statement that unfortunately cannot be executed.
    The following Syntax error occured in Program "SAPLV61A" in include "RV63A630" in line 9:
    The data object "komp" does not have a component called "SERVICE_PARAM2". "
    On analyzing the include "RV63A630" mentioned, the following error message is seen.
    u201CNo field KOMP-SERVICE_PARAM2 exists in the latest version of KOMP in the ABAP/4 Dictionary.u201D
    Can anyone suggest any possible solutions ?

    "The data object "KOMP" does not have a component called "TRI_OBJ_TYPE".
    You may check any of the following notes
    a)  339726
    b)  601986
    c)  783962
    d)  798902
    e)  1007550
    If the above notes are of no use, then what I would suggest you is that you post this issue in ABAP forum so that you will get swift response.
    thanks
    G. Lakshmipathi

Maybe you are looking for

  • NoClassDefFound error oracle/sql/opaque

    Hi There, [Using Java 1.4.2, BEA WebLogic 8.1, Oracle 9i Db] We're having a bit of trouble with the above error. In our java code, we are referencing xdb.jar and odbc14.jar but when we try to create an XMLTYPE object from an OPAQUE object we receive

  • BPC 10.0 - Hierarchy Issue

    Hi Experts, I am trying to load a hierarchy to BPC 10.0 and I am having issues. I am getting the error: "HIERARCHY DATA SOURCE: An exception with the type CX_SY_RANGE_OUT_OF_BOUNDS occurred, but was neither handled locally, nor declared in a RAISING

  • HP Pavilion Laptop: Unable to open files, error message and "Recovery" drive appeared

    My fairly new HP Pavilion AR5B1425 laptop suddenly displays a big red x and an error message "documents.library-ms (or whatever file I'm trying to access) is no longer working" and is displaying a "recovery" drive listed as "D."  My kids were using m

  • Installed Java, GarageBand, and Quicktime updates...

    ... and now not internet connection. My MP has been working fine since I received it almost two weeks ago. After these updates... I can get to the Apple welcome site when I open Safari, but after that single page, I get nowhere. Wazzup wid dat? Thank

  • Alerts are not sending mails

    Hi All, Alerts are not sending any mails in my oracle applications 11i. Wf test mails are working fine.Periodic Alert Scheduler also scheduled and run smoothly. I am not understand where we missed any setups. any one can help me... Regards Raghu