Problems with the RichEditableText component

Hi all

I use a component RichEditableText to display the text. The application is similar to a forum page, with messages and responses. All of these responses/messages are displayed in a component RichEditableText. The problem that I am facing this is:

After authenticating the user, the application retrieves all messages and responses on the screen. The user is provided with options to search the forums or through the different categories of forums. When I perform these actions "WITHOUT" clicking any RichEditableText existing components, I can see the results on the page without any problem.

But if I perform these actions after you have clicked on a posted positions (which are essentially the RichEditableText components), when the results are returned, the component on which I would have clicked doesn't show any text. He just see the empty space. But when I click on the empty space, the text is displayed. I have no idea why this is happening. I have not messed with its visible property at all.

Forward your suggestions/ideas.

Thank you

Found the solution for this problem

EU set the property 'select' to 'false '.

Tags: Flex

Similar Questions

  • Problem with the ExtranetLook component

    Hi all

    I installed component in my content server ExtranetLook but still I don't get the Disconnect feature. Is there anything else as I have to do.

    See you soon

    Hello

    What config entries added in the config.cfg? Is the IsWebServerPagesOnly = true was resolved here? If it isn't then put the variable IsWebServerPagesOnly = false and then test to see if the problem persists.

    Hope this helps

    Thank you
    Srinath

  • Rendering html with the webview component problem

    Hello

    I have a big problem to render this page html with the webview component:

    < html >
    < head lang = "en" >
    < meta charset = ' UTF-8 ' >
    < title > Rotation PB< / title >
    < style type = "text/css" >
    { #myDivRotate }

    color: violet;
    background-color: #d8da3d;
       height: 200px;
       width: 300px;
    top of the margin: 20px;
    margin left:20px;
    -webkit-transform:perspective(400px) rotateX(30degrees)
    -webkit-backface-visibility:visible;
       }

    < / style >
    < / head >
    < body >
    < div id= "myDivRotate" >
    Cuckoo

    < / div >
    < / body >
    < / html >


    The problem comes from the "perspective" in - webkit-transform. No it's ok. But with this one, the result is different from a standard browser like chrome or safari.


    Could you help me?


    Thank you.


    PS: I can not download from Jpeg file...

    attributes css - webkit are not supported by JavaFX WebView.

    attributes css - webkit are not standard (for example, they are unlikely to work either in IE or Firefox).

    CSS transformations are currently experimental technology, usage that is not normalized in user agents.

    You can request this experimental technology by creating a feature request.

    If support for css transforms has been added to the Web format, he would use standardized for attributes and not names - webkit prefix names.

  • Problems with the Windows and Windows Update problem of Installation of KB2416472 component.

    Original title: I use SFC. EXE

    Error detected

    How can I fix this, or I have to re - install window again.

    CSI 0000015a [SR] cannot repair the military record [l:24 {12}] "settings.ini" Microsoft-Windows-Sidebar, Version = 6.0.6002.18005, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, type neutral, TypeName neutral, neutral to the public key in the store, hash mismatch "

    The same with 0000015c detail above.

    00000309 [SR] cannot repair the military record [l:24 {12}] "settings.ini" Microsoft-Windows-Sidebar, Version = 6.0.6002.18005, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, type neutral, TypeName neutral, neutral to the public key in the store, hash mismatch "
    2010-10-08 12:35:51, CSI Info 0000030b [SR] cannot repair the military record [l:24 {12}] "settings.ini" Microsoft-Windows-Sidebar, Version = 6.0.6002.18005, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, type neutral, TypeName neutral, neutral to the public key in the store, hash mismatch "
    2010-10-08 12:35:51, CSI Info 0000030 c [SR] this element is referenced by [l:158 {79}] "' Package_16_for_KB948465 ~ 31bf3856ad364e35 ~ x 86 ~ ~ 6.0.1.18005.948465 - 49_neutral_GDR" "

    00000367 [SR] cannot repair the military record [l:24 {12}] "settings.ini" Microsoft-Windows-Sidebar, Version = 6.0.6002.18005, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, type neutral, TypeName neutral, neutral to the public key in the store, hash mismatch "
    2010-10-08 12:38:13, Info CSI 00000369 [SR] cannot repair the military record [l:24 {12}] "settings.ini" Microsoft-Windows-Sidebar, Version = 6.0.6002.18005, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, type neutral, TypeName neutral, neutral to the public key in the store, hash mismatch "
    2010-10-08 12:38:13, CSI Info 0000036 [SR] a the item is referenced by [l:158 {79}] "' Package_16_for_KB948465 ~ 31bf3856ad364e35 ~ x 86 ~ ~ 6.0.1.18005.948465 - 49_neutral_GDR" "
    2010-10-08 12:38:13, CSI Info 0000036 c [SR] full repair

    Having a problem with the Update window for

    Update of security for Microsoft .NET Framework 4 on Windows XP, Windows Server 2003, Windows Vista, Windows 7, Windows Server 2008 x 86 (KB2416472)

    I followed the recommendation, that nothing has changed.

    Download size: 4.7 MB

    You may have to restart your computer for this update is taken into account.

    Update type: Important

    A security issue has been identified that could allow a malicious user to compromise your Windows system that is running the Microsoft .NET Framework and gain access to information. You can protect your computer by installing this update from Microsoft. After you install this item, you may have to restart your computer.

    Thank you

    Hello

    Problems with the Windows Sidebar?

    It seems that the problem is related to the Windows Sidebar. Remove all third-party sidebar gadgets if

    Follow these steps and check if it helps.

    Logon as administrator-

    a. If the sidebar is running - make a right click on the sidebar near the lower clock icon right in and out

    b. Click Start - Type "CMD" in the search box - find top - right click it and run as administrator.

    c. replace C:\Program Files\Windows Sidebar by copying and pasting this command->

    CD C:\Program Files\Windows Sidebar
     
    d. press enter (this is assuming that your sidebar is on C:, otherwise use the letter of the drive is on)

    Guest should be--> C:\Program Files\Windows Sidebar >

    e. then copy and paste each of them following their tour to enter

    regsvr32-u sbdrop.dll

    regsvr32-u wlsrvc.dll

    regsvr32 atl.dll

    regsvr32 sbdrop.dll

    regsvr32 wlsrvc.dll

    Sidebar should now work.

    Also if you scan SFC does not fix a corrupted system file, you can follow the steps from the link below.

    Look under "'If the System File Checker tool can not repair a file, proceed as follows :" "

    As with regard to the installation of KB2416472, to install this hotfix, you must have Windows Installer 3.1 or a later version installed on the computer. To get the latest version of Windows Installer, see the following Microsoft Web site.

    For maore information, see: http://support.microsoft.com/kb/2416472

    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • Problem with the HP G62 recovery disks

    Hello

    I'm having a problem with the restoration of the operating system on your laptop HP G-62. When I first bought the laptop, I was unable to make the recovery discs, so I ordered recently a few new HP. Because I have installed Ubuntu on the laptop, I wiped it from the disk hard drive used Wipedrive to remove the old Ubuntu operating system I had installed.

    Laptop computer reads the first disc ok and installs the component of windows, but when the screen lights up asking the two disc number it freezes and never installs anything when you try to move anything that used to screen it doesn't matter what and he used to install the second disk. He repeats just 'Please wait '.

    Thank you, Robert

    Hi, Robert:

    I can't help you get the recovery disks to work, but if you can read all 25 characters of the product key 7 windows on the bottom of your PC, you can do your own installation disc 7 windows to reinstall the operating system.

    Here's how:

    If you can read the Microsoft windows 7 25-character product key, you can download simple Windows 7 ISO files to burn on a DVD for the version of windows that is installed on your PC, and which is listed on the Microsoft COA sticker on your PC case.

    Burn the ISO with the option to burn the ISO on your DVD burning program and burn it at the slowest possible speed that will allow your program. This will create a bootable DVD.

    Or use the installation of Windows 7 USB/DVD tool to compile the ISO file that you download from Digital River. Link and instructions below. You need a 4 GB flash drive to use the USB compilation method.

    http://www.microsoftstore.com/store/msstore/HTML/pbPage.Help_Win7_usbdvd_dwnTool

    Use 25 characters on the PC product key to activate the installation.

    The key will activate a 32 or 64 bit installation.

    Then go to the support of the PC and driver page to install the drivers you need.

    Link to downloads ISO of W7 is below.

    http://www.mydigitallife.info/official-Windows-7-SP1-ISO-from-Digital-River/

    Paul

  • Problem with the generation of multi-sinus wavefrom of random phase using PXI-5412

    Hello

    I am trying to generate random phase multi-sine waveform using the PXI-5412 14 bits 100 M/s AWG on LabVIEW8.0.

    The version of LabVIEW8.0 for the PXI-5412 comes with a sample VI on multi-tone waveform generation. When I tried with a different combination of frequency and amplitude, there is no problem with the sample VI.

    Because I need the phase to be random for each frequency component, I had tore the tone cluster containing 3 elements, i.e. frequency, amplitude and phase, which feeds the generator of signals, and rebundle the cluster with elements of reading a CSV file by using a loop, a fixed value amplititude and a number of random phase of the frequency generated by a random number (formula lournies elements (: pi - 2pi x r). When the waveform multi-sinusoidale generated on the PXI-5112 100 MHz Digital Oscilloscope, it was pointed out that the waveform would change with the tested frequency range.  However, the amplitude of the wave is always ~1.4V (guess that's always default to 1 V x sqrt (2)).  There is no question also when testing the same combination of frequency and amplitude by using sample VI without modification.

    Please find attached the VI of the sample, snatching up to the version and the CSV file I used. Is there something wrong with the table 1 d of the cluster of 3 elements that I built and assembled causing the signal generator to ignore the value of input amplitude and, possibly, the input value of the same phase (as it seems that the amplititude is always set to the default)?

    The other question that I found on the two sample VI and ripped version is on the news of sampling.  The waveforms appear on digital Oscilloscope PXI-5112 always default to 10 cycles no matter how changed the sampling frequency and the number of samples.  For example, if the frequency is 10 Hz, sampling frequency is 1000 Hz, and I put the number of samples to 10000.  I'm supposed to get 10000/100 = 100 cycles.  However, I could see 10 cycles no matter how, I changed.  What should be the correct way to change the number of cycles?

    Really appreiciate your help and advice. Thank you.

    1 phase unit is in degrees (-180 to 180), no - pi pi.
    2 standardize Waveform.vi always normalize your amplitude of the signal. You can remove it to use your desired amplitue, but must make sure that it is not above 5412 spec.

  • Problems with the Eclipse Update site

    Hello

    I try to install the component pack v6.0.0. I'm just following the instructions here

    http://NA.BlackBerry.com/eng/developers/javaappdev/javaupdate.jsp

    and installation just hangs (or I get the Exception of transfer). I found many messages of forum on the problems with the update site but no solutions. Is this one? Or y at - it another way to install the component pack in eclipse?

    Thank you

    Sarah

    Hi Mark,

    Apologies that I was on vacation and never had to deal with that. I just tried to update the software development kits using the same procedure. It must have been a problem with the update site before that it worked well this time.

    Thank you

    Sarah

  • Problem with the Polycom endpoint dial string via VCS

    Greetings,

    Currently I have an environment using a set of standalone Polycom endpoints (mixture of VSX/HDX units).  We have recently installed VCS - c / VCS-e / TMS and despite a few problems with the SIP registration on some of the older endpoints and management through TMS, all support works well.  The only remaining problem is when there are a number of business partners using the extensions in their chains of H.323 dialing that works very well for the Polycoms during the use not VCS - c as a guard in the numbering of the format #.  When you use this same dial string and endpoints are registered in VCS - c then the only thing it is indicated in the call history is a number of , which fails.

    I am aware that different manufacturers have historically managed extension dialing differently since ISDN only and has apparently been perpetuated until today.  However, it's a pretty critical need still at this stage and I am looking for input on chipboard VCS supports the use of extension component in the dial string (or did once the call is connected to a gateway is the host).  If so, is there a specific format for this connection string which can support both the end points of Polycom and VCS able to interpret correctly?  Does anyone have this working?

    Latest versions of software are on all components.

    Thank you in advance for any thoughts you may have!

    Hi Readamson,

    using the syntax of "device-IP-address ##extension" to compose a H323 device isn't a way standard of doing things, it is approach of Polycom extension numbering that VCS does not understand without changing the alias of a '[email protected] / * /' format.

    Assuming that the address-IP-receives the message SETUP H225 VCS-E, he does the SETUP message? Is there a way that you can configure this device to end to remove the [email protected]/ * /' part of the route the call to the post and the dialed number?

    Visit this link:

    https://supportforums.Cisco.com/thread/2129307

    Best regards, Ahmad

  • Problem with the display of the icon in the interactive report

    Hello

    for several days I am looking for a solution on the web, but I have not found the right article.

    I can't display images in the display of the icon of interactive report.

    I tried to understand with an example of implementation of the SUMMIT.

    I work with the same component without success.

    IN MY PAGE:

    first region

    P1O_IMG1: File Explorer to download image

    P10_TITRE: text box: title

    P10_LIBELLE: area of tex: topic

    P10_CANCEL: button cancel

    P10_submit: button to submit

    in this area, I upload a picture and create a row in the CG63_IMG table

    ID_IMGNUMBER
    FILE NAMEVARCHAR2 (400 BYTE)
    MIME_TYPEVARCHAR2 (50 BYTE)
    CHAR_SETVARCHAR2 (128 BYTE)
    IMAGE_CONTENTBLOB OBJECT
    DATE_MAJDATE
    LIB_IMGVARCHAR2 (400 BYTE)
    THE TITLEVARCHAR2 (100 BYTE)

    and everything is OK

    second region with interactive report

    Select

    cg63_IMG.ID_IMG ID,

    CG63_IMG.ID_IMG as ID_IMG,

    CG63_IMG. Name of the FILE as FILENAME,

    CG63_IMG. Mime_type like MIME_TYPE,

    CG63_IMG. CHAR_SET as CHAR_SET

    CG63_IMG. DATE_MAJ as DATE_MAJ,

    CG63_IMG. LIB_IMG as LIB_IMG,

    CG63_IMG.titre,

    Decode (NVL (DBMS_LOB. GetLength (IMAGE_CONTENT), 0), 0, NULL, apex_util.get_blob_file_src (ID_IMG, NULL, 'P10_PHOTO', 'inline')) detail_img_no_style;

    apex_util.prepare_url ('f? p ='|: APP_ID |) » : 20 :'|| : APP_SESSION |': P20_ID_IMG :'|| ID_IMG) icon_link

    of CG63_IMG CG63_IMG

    in my report, detail_img_no_style, icon_link are hidden


    in attributes of reports

    the normal display mode is ok

    the detail view is ok

    display the icon: problem no picture

    I would like this (in the order of the lines of the "icon view" attribute)

    YES,

    NO,

    ICON_LINK,

    DETAIL_IMG_NO_STYLE,

    TITLE,

    HEIGHT = "140" WIDTH = "140"

    #TITRE #.

    '',

    ""


    third region

    I defined a P10_PHOTO point: File Explorer, hidden

    Like this

    Parameters:

    NO,

    BLOB type column specifies in the attribute of the source point,

    MIME_TYPE,

    FILE NAME,

    ' ',

    DATE_MAJ,

    YES,

    ' ',

    Inline


    Source:

    Still, replacing everything,.

    Databas column,

    Per session.

    Value of source = IMAGE_CONTENT,

    ' ',

    ' '


    It is difficult to get information: how the element such as P10_PHOTO must be created.


    APEX 4.2.5 WITH ORACLE HTTP SERVER


    Concerning


    MARC







    user_fr_cg63 wrote:

    Hello

    for several days I am looking for a solution on the web, but I have not found the right article.

    I can't display images in the display of the icon of interactive report.

    I tried to understand with an example of implementation of the SUMMIT.

    I work with the same component without success.

    IN MY PAGE:

    first region

    P1O_IMG1: File Explorer to download image

    P10_TITRE: text box: title

    P10_LIBELLE: area of tex: topic

    P10_CANCEL: button cancel

    P10_submit: button to submit

    in this area, I upload a picture and create a row in the CG63_IMG table

    ID_IMG NUMBER
    FILE NAME VARCHAR2 (400 BYTE)
    MIME_TYPE VARCHAR2 (50 BYTE)
    CHAR_SET VARCHAR2 (128 BYTE)
    IMAGE_CONTENT BLOB OBJECT
    DATE_MAJ DATE
    LIB_IMG VARCHAR2 (400 BYTE)
    THE TITLE VARCHAR2 (100 BYTE)

    and everything is OK

    second region with interactive report

    Select

    cg63_IMG.ID_IMG ID,

    CG63_IMG.ID_IMG as ID_IMG,

    CG63_IMG. Name of the FILE as FILENAME,

    CG63_IMG. Mime_type like MIME_TYPE,

    CG63_IMG. CHAR_SET as CHAR_SET

    CG63_IMG. DATE_MAJ as DATE_MAJ,

    CG63_IMG. LIB_IMG as LIB_IMG,

    CG63_IMG.titre,

    Decode (NVL (DBMS_LOB. GetLength (IMAGE_CONTENT), 0), 0, NULL, apex_util.get_blob_file_src (ID_IMG, NULL, 'P10_PHOTO', 'inline')) detail_img_no_style;

    apex_util.prepare_url ('f? p ='|: APP_ID |) » : 20 :'|| : APP_SESSION |': P20_ID_IMG :'|| ID_IMG) icon_link

    of CG63_IMG CG63_IMG

    in my report, detail_img_no_style, icon_link are hidden


    in attributes of reports

    the normal display mode is ok

    the detail view is ok

    display the icon: problem no picture

    I would like this (in the order of the lines of the "icon view" attribute)

    YES,

    NO,

    ICON_LINK,

    DETAIL_IMG_NO_STYLE,

    TITLE,

    HEIGHT = "140" WIDTH = "140"

    #TITRE #.

    '',

    ""


    third region

    I defined a P10_PHOTO point: File Explorer, hidden

    Like this

    Parameters:

    NO,

    BLOB type column specifies in the attribute of the source point,

    MIME_TYPE,

    FILE NAME,

    ' ',

    DATE_MAJ,

    YES,

    ' ',

    Inline

    Source:

    Still, replacing everything,.

    Databas column,

    Per session.

    Value of source = IMAGE_CONTENT,

    ' ',

    ' '


    It is difficult to get information: how the element such as P10_PHOTO must be created.


    APEX 4.2.5 WITH ORACLE HTTP SERVER

    Instead of all that typing it would have been easier to download the application at apex.oracle.com and share the problem here...

    Why does P10_PHOTO exist when there is already an article for the download of files in P10_IMG1?

    Is there a process to look for automatic line (ARF) DML defined to fill the first area? If not, create one and its the Nevervalue condition.

  • Problem with the mobile Flex list control

    Hello world.

    I have a problem with the list control in Flex mobile.  I need create list in "Flex mobile" and I need that list items must have following structure. a single image, text and then another picture. How do I do this?

    Concerning

    Include a component with a custom converter.

    See the documentation for Flex: http://help.adobe.com/en_US/flex/using/WS03d33b8076db57b9-23c04461124bbeca597-8000.html for more details.

  • Problem with the rendering of JProgressBar in JTable

    I have some problems with the rendering of JProgressBar in JTable. In the case of several lines, when a progress bar is updated, and its text is changing, then he painted all the progress bars in this column.

    Here is my code I used to create the table:
    --------------------------------------------------------------------------------------
    JTable convertTable = new JTable(convertTableModel) {
    
                public Component prepareRenderer(TableCellRenderer renderer,
                        int rowIndex, int vColIndex) {
                    Component c = null;
                    if (renderer != null) {
                        c = super.prepareRenderer(renderer, rowIndex, vColIndex);
    
                        if (vColIndex == INDEX_CONVERT_STATUS) {
                            //System.out.println("c = "+c.getClass());
                            if(c instanceof JProgressBar) {
                                //System.out.println("inside = ");
                                c.setBackground(Color.BLUE);
                            }
                        }
                    }
                    return c;
                }
    
                public boolean isCellEditable(int rowIndex, int mColIndex) {
                    if (mColIndex == INDEX_CONVERT_SELECT) {
                        return true;
                    } else if (mColIndex == INDEX_CONVERT_STATUS) {
                        return false;
                    } else {
                        return false;
                    }
                }
    
                /*
                 * JTable uses this method to determine the default renderer/
                 * editor for each cell.  If we didn't implement this method,
                 * then the last column would contain text ("true"/"false"),
                 * rather than a check box.
                 */
                public Class getColumnClass(int c) {
                    if (getValueAt(0, c) != null) {
                        return getValueAt(0, c).getClass();
                    }
                    return null;
                }
            };
    --------------------------------------------------------------------------------------

    Then I applied on this table rendering engine

    ---------------------------------------------------------------------------------------
    // Applying JProgressBar Renderer for convert table
            TableColumn col = convertTable.getColumnModel().getColumn(INDEX_CONVERT_STATUS);
            ProgressBarRenderer progressBarRenderer = new ProgressBarRenderer();
            col.setCellRenderer(progressBarRenderer);
    ---------------------------------------------------------------------------------------

    Class code ProgressBarRenderer is as follows:
    ---------------------------------------------------------------------------------------
    public class ProgressBarRenderer extends JProgressBar implements TableCellRenderer {
    
        private Hashtable ht = new Hashtable();
    
        public ProgressBarRenderer() {
            super(0);
            this.setMinimum(0);
            this.setMaximum(100);
            this.setStringPainted(true);
            this.setBorderPainted(true);
    
            UIDefaults defaults = UIManager.getDefaults();
            Font font = new Font("Arial", Font.BOLD, 12);
            defaults.put("ProgressBar.font", font);
        }
    
        public void setRowEnabled(int row, boolean enabled) {
            ht.put(row, enabled);
        }
    
        public void setForeground(Color c, int row) {
            //System.out.println("setString ht = " + ht.size() + "  row= " + row + "  Selected= " + (Boolean) ht.get(row) + " color= " + c);
            if (ht.isEmpty()) {
                this.setForeground(c);
            } else if (ht.size() == 1) {
                this.setForeground(c);
            } else if ((Boolean) ht.get(row)) {
                this.setForeground(c);            
            } else {
                this.setForeground(c);
            }
        }
    
        public void setString(String s, int row) {
    
            //System.out.println("setString ht = " + ht.size() + "  row= " + row + " text= " + s);
            if (ht.isEmpty()) {
                this.setString(s);
            } else if (ht.size() == 1) {
                this.setString(s);
            } else if ((Boolean) ht.get(row)) {
                this.setString(s);
            } else {
                this.setString(s);
            }
    
        }
    
        @Override
        public Component getTableCellRendererComponent(JTable table,
                Object value, boolean isSelected, boolean hasFocus, int row, int column) {
            
            //System.out.println("getTableCellRendererComponent = " + table);
            //System.out.println("Renderer ht = " + ht.size() + "  row= " + row + "  Selected= " + (Boolean) ht.get(row));
            
            if (ht.isEmpty()) {
                return this;
            } else if (ht.size() == 1) {
                return this;
            } else if ((Boolean) ht.get(row)) {
                return this;
            } else {
                return null;
            }
        }
    }
    ---------------------------------------------------------------------------------------

    I add the next line and rendered the progress column is follows:
       convertTableModel.addRow(new Vector());
       ((ProgressBarRenderer) convertTable.getCellRenderer(row, INDEX_CONVERT_STATUS)).setRowEnabled(row, false);
    ---------------------------------------------------------------------------------------

    When I add the first row, it works fine, but when I add the second row, he painted the entire column.

    Naturally, you will have problems if you set a string or a color of a table cell value when the class of the column is declared as integer. As I have already said, you need to spend some time with the tutorials.

    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.Random;
    import javax.swing.*;
    import javax.swing.table.DefaultTableCellRenderer;
    import javax.swing.table.TableCellRenderer;
    
    public class ProgressBarTableCellRendererExample {
    
      Random random = new Random();
      JTable table;
    
      public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
    
          public void run() {
            new ProgressBarTableCellRendererExample().makeUI();
          }
        });
      }
    
      public void makeUI() {
        table = new JTable(10, 1) {
    
          @Override
          public boolean isCellEditable(int row, int column) {
            return false;
          }
        };
        for (int i = 0; i < table.getRowCount(); i++) {
          table.setValueAt(0, i, 0);
        }
        table.getColumnModel().getColumn(0).
                setCellRenderer(new ProgressBarTableCellRenderer());
    
        JButton button = new JButton("Increment");
        button.addActionListener(new ActionListener() {
    
          public void actionPerformed(ActionEvent e) {
            increment();
          }
        });
    
        JFrame frame = new JFrame();
        frame.add(new JScrollPane(table), BorderLayout.CENTER);
        frame.add(button, BorderLayout.SOUTH);
    
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(400, 400);
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
      }
    
      private void increment() {
        for (int i = 0; i < table.getRowCount(); i++) {
          Object value = table.getValueAt(i, 0);
          if (value instanceof Integer) {
            Integer oldValue = (Integer) table.getValueAt(i, 0);
            int newValue = Math.min(100, oldValue + random.nextInt(25));
            switch (newValue) {
              case 13: // and its multiples
              case 26:
              case 39:
              case 52:
              case 65:
              case 78:
              case 91:
                table.setValueAt("Failed", i, 0);
                break;
              case 100:
                table.setValueAt("Completed", i, 0);
                break;
              default:
                table.setValueAt(newValue, i, 0);
            }
          }
        }
      }
    
      private class ProgressBarTableCellRenderer
              extends JProgressBar implements TableCellRenderer {
    
        private TableCellRenderer stringRenderer =
                new DefaultTableCellRenderer();
    
        public Component getTableCellRendererComponent(JTable table,
                Object value, boolean isSelected, boolean hasFocus,
                int row, int column) {
          if (value instanceof Integer) {
            setValue((Integer) value);
            return this;
          } else {
            return stringRenderer.getTableCellRendererComponent(table,
                    value, isSelected, hasFocus, row, column);
          }
        }
        // Override void validate(), invalidate(), revalidate(), repaint()
        // and all overloads of firePropertyChange(...) as no-ops
        // for efficiency
      }
    }
    

    DB

  • Problem with the packages

    Hello friends

    I am facing a problem with the creation of Packages.
    I am running Oracle 10 g on my side.

    I have an alias defined in my system which is having two accounts, lets say it is A and the other is B.

    I have two packages running on a single account. Now what I did, I tried to reproduce the two packages on the other account that is B I have functions defined in both packages.

    What I see, it's one of the packages is now properly respected (Spec & body). But I am facing the problem with the other.

    The problem is

    "PLS-00302 of the body: component 'get_segment' must be declared '.

    Here's a function "get_segment".

    If someone see what would attribute the possible with these packages, maybe I missed something.

    Thanks in advance :)

    user12280955 wrote:
    No, I am what you say...

    in fact, I just copied the source of the original schema packets and executed in the second diagram.

    Actually I m using Toad who had perfect where I can replicate packages from a pattern of other schemes. I used.

    I don't use Toad, so can't help you there...

    Apart from that, I have a dump (.dmp) for the two schemas. I'd get a decrypted version of the package source code from there.

    No, you can't.

    If not where can I get a simplified version of the package source code?

    If you do not have it in a separate file, so you do not have it. Ask the creator of the package to give you no packaged version.

  • problems with the date picker

    I found some problems with the date picker to make my first presentation of object BPM.

    I created a group with a datetimestamp it contains. When I click on it in run mode, it will bring a new tab in the browser. This behavior is different from that of a date picker outside a group where there just a small javascript popup.

    Anyway around this problem?

    Also, would be nice if could be set by default to the current date. is there a way to who?

    For the component "time" it seems impossible to define the default value - at least on the tab object structure.

    Thank you

    Try to set the property "DHTML" to control date Yes. This option is under the Properties tab-> the calendar section. This will force it to use the popup javascript on screen instead of opening a new browser window/tab.

    To set a default value for a date/time, you can simply set the value in the constructor of the BPM object in which the property is located.

  • Anyone having problems with the new iPhone LTE connection 7 on Verizon?

    I am now on my iPhone second 7 with Verizon. I had four phones for me and my family. I have now had issues where I have no signal in the same areas where my signal allows to be strong. I can't solve the problem with the activation/deactivation of the airplane and then mode again in normal mode. My phone will rest with no signal for 5 minutes, then going to LTE with three bars. I also had the problem where I had only 1 x signal, while my son standing right next to me has LTE. And he had the same questions, where I'm on LTE and it gets no signal. I use to have LTE where I live and work all the time, now it's spotty at best. Apple has replaced me and my sons iPhones but not luck. Still do. Any ideas or an any other suffering?

    (1) go to settings/cell phone/cellular data Options/enable LTE and select ONLY the DATA. This seems to solve the problem (as a temporary solution) for most of the people affected by this problem. The bad part is your request might not be as clear (since they cannot use the highest LTE signals) and you can make calls and data at the same time. But it does not solve the issue.

    (2) there are rumors (but you didn't hear that from me that we only are not supposed to discuss beta software program Apple in this forum) that the new version of Apple Beta for iOS (which also includes an update of the software carrier Verizon to 26.0) seems to solve this problem. So, there's a light at the end of the tunnel.

  • Sierra Siri, «I have some problems with the connection...» »

    Guys,

    I just installed Sierra on my MacBook Pro (retina, 13 inches, early 2015) version 10.12. I can't get Siri at work, the app tracks, he hears what I'm saying, but after awhile, he returns with two messages, both on the screen and verbally "I have some problems with the internet connection. Please try again in a moment. "&"Sorry, I'm having problems with the connection. Please try again in a moment. »

    Any ideas?

    Thank you

    N

    It's a network problem.

    Check the proxy settings that blocks maybe, or a firewall.

    System Preferences > network > Advanced (for your current connection) > Proxies

    Something there?

Maybe you are looking for