Add Component to JTextPane

Hi all . .
I want to create a java code Editor that (like Visual Studio) create a list of methods when the user press
( objectName. )
any one have Ideas ??
Thanx in advance ..
Ahmad

Read up on the Reflection API, java.lang.reflect
this has excellent methods by which you can inspect the internals of a class file or an object.
K

Similar Messages

  • Add component in task list

    Hello All,
    I have an issue with adding component in task list (for example task list number EIMN-68) via transaction IA05.
    When I try to add component to operation, I get the message *
    Standard BOM PAEIMN-68  4 already exists
    Message no. 29771
    Diagnosis
    You want to create a standard BOM for standard object PAEIMN-68 with usage .
    A BOM already exists for this standard object and usage. You cannot extend a standard a standard BOM.
    Procedure
    Check whether the standard BOM is suitable for standard object PAEIMN-68 and usage . If it is not, you need to create the BOM for another standard object.
    Is there any special way to create material master for such components.Whats the solution.
    Please help
    Cheers
    Sunny

    Hi Pithan, how are you..
    I want to add components.
    Just now I was able to add components. I explain how:
    When i added component number in operation, and press enter, system gave me the error that standard bom already exist. In the same screen I changed the BOM usage to 3 as universal usage. After this usage only, system allowed me to add components. No other bom usage allowed me to do so.
    Also, why system took me to BOM screen if I just want to add components.
    I wait for your reply.
    thanks and regards
    Sunny

  • Facing problem to add component in a panel dynamically

    I face serious problem to add component dynamically on a jpanel. can any one help me?
    I have one panel inside a frame. And I have another 3 or 4 panel. dynamically i want to change the panel inside the frame with the other panel.
    can anybody help me with source code?
    Your earliest response is highly appreciated.

    remove is reflected immediately without calling
    validate() but it does not work for adding. please
    give me some code.Post a small demo code that is generally compilable, runnable and could reproduce your problem. See: http://homepage1.nifty.com/algafield/sscce.html and http://www.yoda.arachsys.com/java/newsgroups.html

  • Dynamic add component to panel, it does't work

    I want to add a label in a panel when you click button.
    I used revalidate() and revalidate() method, but it didn't appear in panel.
    HELP ME?? WHAT'S WRONG!
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
    jPanel1.add(new JLabel("Hello"));
    jPanel1.revalidate();
    jPanel1.repaint();
    }

    i add Layout manager to panel. It works. Thanks,
    So tricky things for dynamic adding component:
    1, setup layout manager to container (such as panel),
    2, add component to container
    3, call revalidate() method to relayout these components in container
    You can't miss any one of those.
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
    jPanel1.setLayout(new FlowLayout());
    jPanel1.add(new JButton("Hello"));
    jPanel1.revalidate();
    }

  • Able to add component in approved Purchase Req from PM

    Hello,
    I have scenario where I create Purchase requisition from Plant Maintenance Work order and I have collective functionality turn on, means if I add component in the work order it will be added in the Purchase requisition created against that work order. now my requirement is if my purchase requisition is approved system should not allow me to add the component to same purchase requisition from PM work order.
    any help would be highly appreciated.
    Regards
    Shailendra

    Dear shailendra soni,
    Have you tried Changeability of Purchasing Document During/After Release.
    Path is :SPRO->MM->Purchasing->PR-Rel.Str.Procedure W/Classification->Setup Procedure with Classification-Release indicator
    Here as per your release code - select required option which suits you - (1- cannot be changed)
    Refer Image
    reg,
    Bhg

  • Unable to add component palette in jdeveloper

    Hi,
    Im unable to add component palette in jdeveloper, it is giving exception and the stack trace is here below, pls let me know the solution.
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    java.lang.NullPointerException
         at oracle.ideimpl.palette.PaletteImpl.populate(PaletteImpl.java:240)
         at oracle.ideimpl.palette.PaletteWindowImpl.checkIfPopulated(PaletteWindowImpl.java:323)
         at oracle.ideimpl.palette.PaletteWindowImpl.show(PaletteWindowImpl.java:364)
         at oracle.ideimpl.palette.PaletteManagerImpl.handleEvent(PaletteManagerImpl.java:174)
         at oracle.ide.IdeAction$1.run(IdeAction.java:579)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:337)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)

    Try copying the palette.xml file from jdev\multi\system to your system directory( jdev\system(9....). Also, what system are you using?

  • Cannot add component with id '_id0' and path

    Hello together!
    Thanks for your help so far you really helped me a lot.
    Now most of the time my application is working fine, but I get sometimes the error:
    javax.servlet.ServletException: cannot add component with id '_id0' and path : {Component-Path : [Class: javax.faces.component.html.HtmlOutputText,Id: _id0]} to its parent component. This might be a problem due to duplicate ids.
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:121)
         org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
    What can I do to prevent that?
    Thanks a lot.

    I don't know if the html could would help, but I post it anyways as I am really going crazy:
    This is the code at the begining:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <link rel="stylesheet" href="style.css" type="text/css">
    <title>Guardar Rayos X</title>
    <script src="/Webprojekt/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11302665/JSCookMenu.js" type="text/javascript"><!--
    //--></script>
    <script src="/Webprojekt/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11302665/MyFacesHack.js" type="text/javascript"><!--
    //--></script>
    <script type="text/javascript"><!--
    myThemeOfficeBase='/Webprojekt/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11302665/ThemeOffice/';
    //--></script>
    <script src="/Webprojekt/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11302665/ThemeOffice/theme.js" type="text/javascript"><!--
    //--></script>
    <link rel="stylesheet" href="/Webprojekt/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11302665/ThemeOffice/theme.css" type="text/css" /></head>
    <body>
       <link rel="stylesheet" href="style.css" type="text/css">
            <table>
              <tr>
                   <td>
                           <h1>
                                Rayos X
                           </h1>
                      </td>
                 </tr>
            </table>
    <script language="JavaScript" src="jscookmenu/JSCookMenu.js" type="text/javascript"></script>
    <script language="JavaScript" src="jscookmenu/ThemeOffice/theme.js"></script>
    <link rel="stylesheet" href="jscookmenu/ThemeOffice/theme.css" type="text/css">
    <script language="JavaScript" src="jscookmenu/ThemeMiniBlack/theme.js"></script>
    <link rel="stylesheet" href="jscookmenu/ThemeMiniBlack/theme.css" type="text/css">
    <script language="JavaScript" src="jscookmenu/ThemeIE/theme.js"></script>
    <link rel="stylesheet" href="jscookmenu/ThemeIE/theme.css" type="text/css">
    <script language="JavaScript" src="jscookmenu/ThemePanel/theme.js"></script>
    <link rel="stylesheet" href="jscookmenu/ThemePanel/theme.css" type="text/css">
         <table>
              <tr>
                   <td>
                        <table id="header_group2" border="0"><tbody><tr><td><script type="text/javascript"><!--
    var id3_menu =
    [[null, 'Salir', 'id3_menu:#{user.logout}', 'linkDummyForm', null],
    [null, 'Persona', null, 'linkDummyForm', null,[null, 'Buscar persona', 'id3_menu:searchPerson', 'linkDummyForm', null],
    [null, 'Modificar persona', 'id3_menu:modifyPerson', 'linkDummyForm', null]],
    [null, 'Consulta', null, 'linkDummyForm', null,[null, 'Buscar por consulta', 'id3_menu:searchVisit', 'linkDummyForm', null],
    [null, 'Modificar consulta', 'id3_menu:modifyVisit', 'linkDummyForm', null]],
    [null, 'Exportar', null, 'linkDummyForm', null,[null, 'Paciente', 'id3_menu:patientExport', 'linkDummyForm', null]],
    [null, 'Preferencias', null, 'linkDummyForm', null,[null, 'Idioma', null, 'linkDummyForm', null,[null, 'Espa�ol', 'id3_menu:#{message.setLanguageToSpanish}', 'linkDummyForm', null],
    [null, 'Ingles', 'id3_menu:#{message.setLanguageToEnglish}', 'linkDummyForm', null]]]];
    //--></script><div id="id3_menu"></div>
    <script type="text/javascript"><!--
         cmDraw ('id3_menu', id3_menu, 'hbr', cmThemeOffice, 'ThemeOffice');
    //--></script></td></tr>
    </tbody></table>
                   </td>
                 </tr>
            </table>
         <form id="visitForm" name="visitForm" method="post" action="/Webprojekt/modifyVisit.faces" enctype="multipart/form-data">
             <table>
                   <tr>
                        <td>
                             <label for="visitForm:patient">
                                  <span id="visitForm:lPatient">Paciente: </span>
                             </label>
                        </td>
                        <td><input id="visitForm:patient" name="visitForm:patient" type="text" value="" />
                             <input id="visitForm:btnPatient" name="visitForm:btnPatient" type="submit" value="..." onclick="clear_visitForm();" />
                        </td>               
                   </tr>
                   <tr>
                        <td>
                             <label for="visitForm:doctor">
                                  <span id="visitForm:lDoctor">Doctor: </span>
                             </label>
                        </td>
                        <td><input id="visitForm:doctor" name="visitForm:doctor" type="text" value="" />
                             <input id="visitForm:btnDoctor" name="visitForm:btnDoctor" type="submit" value="..." onclick="clear_visitForm();" />
                        </td>               
                   </tr>
                   <tr>
                        <td>
                             <label for="visitForm:type">
                                  <span id="visitForm:lType">Estudio: </span>
                             </label>
                        </td>
                        <td>
                             <select id="visitForm:selectOneType" name="visitForm:selectOneType" size="1">     <option value="X-Ray Full">X-Ray Full</option>     <option value="X-Ray Arm">X-Ray Arm</option>     <option value="X-Ray Leg">X-Ray Leg</option>     <option value="X-Ray Foot">X-Ray Foot</option></select>
                        </td>                         
                   </tr>
                   <tr>
                        <td>
                             <label for="visitForm:location">
                                  <span id="visitForm:lLocation">Lugar: </span>
                             </label>
                        </td>
                        <td>
                             <select id="visitForm:selectOneLocation" name="visitForm:selectOneLocation" size="1">     <option value="Mexico City">Mexico City</option>     <option value="Hermosillo">Hermosillo</option></select>
                        </td>                         
                   </tr>
                   <tr>
                        <td>
                             <input type="checkbox" name="visitForm:nextVisit" id="visitForm:nextVisit" value="true" />
                        </td>
                        <td>
                             <label for="visitForm:nextVisit">
                                  <span id="visitForm:lNextVisit">Requiere otra consulta.</span>
                             </label>
                        </td>
                   </tr>
                   <tr>
                        <td>
                             <hr width=100%>
                        </td>
                        <td>
                             <hr width=100%>
                        </td>
                   </tr>
                   <tr>
                       <td>
                             <label for="visitForm:fileUpload">
                                  <span id="visitForm:lFileUploas">Rayos X: </span>
                             </label>
                        </td>
                       <td>
                            <input type="file" id="visitForm:upload" name="visitForm:upload" />
                            <!--
                             <input type="file" id="visitForm:_id25" name="visitForm:_id25" />-->     
                       </td>
                  </tr>
                  <tr>
                       <td>
                             <label for="visitForm:diagnostic">
                                  <span id="visitForm:lDiagnistic">Diagnostico: </span>
                             </label>
                        </td>
                       <td><textarea name="visitForm:diagnostic" id="visitForm:diagnostic"></textarea></td>
                  </tr>
                  <tr>
                       <td>
                            <input id="visitForm:btnAdd" name="visitForm:btnAdd" type="submit" value="A�adir" onclick="clear_visitForm();" />
                            <input id="visitForm:btnSearch" name="visitForm:btnSearch" type="submit" value="Buscar" onclick="clear_visitForm();" />
                       </td>
                  </tr>
                  <tr>
                   </tr>
             </table>
        <input type="hidden" name="visitForm_SUBMIT" value="1" /><input type="hidden" name="visitForm:_link_hidden_" /><script type="text/javascript"><!--
    function clear_visitForm() {
      var f = document.forms['visitForm'];
      f.elements['visitForm:_link_hidden_'].value='';
      f.target='';
    clear_visitForm();
    //--></script></form>
        <p>
        <div>
    <table id="diagnostics" class="list-background">
    <thead>
    <tr><th>Imagen</th><th>Diagnostico</th><th></th><th></th><th></th></tr></thead>
    <tbody id="diagnostics:tbody_element"></tbody></table>
              </div>
              <form id="_id42" name="_id42" method="post" action="/Webprojekt/modifyVisit.faces" enctype="application/x-www-form-urlencoded">
                   <table>
                        <tr>
                             <td>
                                  <input id="_id42:btnAddVisit" name="_id42:btnAddVisit" type="submit" value="A�adir" onclick="clear__5Fid42();" />
                             </td>
                             <td>
                                  <input id="_id42:btnUpdateVisit" name="_id42:btnUpdateVisit" type="submit" value="Grabar" onclick="clear__5Fid42();" />
                             </td>
                             <td>
                                  <input id="_id42:btnAllToWord" name="_id42:btnAllToWord" type="submit" value="Pasar todo a Word." onclick="clear__5Fid42();" />
                             </td>
                        </tr>
                   </table>
              <input type="hidden" name="_id42_SUBMIT" value="1" /><input type="hidden" name="_id42:_link_hidden_" /><script type="text/javascript"><!--
    function clear__5Fid42() {
      var f = document.forms['_id42'];
      f.elements['_id42:_link_hidden_'].value='';
      f.target='';
    clear__5Fid42();
    //--></script></form>
         <p>
    <link rel="stylesheet" href="style.css" type="text/css">
    <table>
         <tr>
              <td>
                X-Ray, Copyright (c) 2006  Markus Sz�ky
            </td>
            </tr>
    </table>
    </body>
    <form id="linkDummyForm" name="linkDummyForm" style="display:inline" method="post" action="/Webprojekt/modifyVisit.faces"><input type="hidden" name="jscook_action" /><script type="text/javascript"><!--
    function clear_linkDummyForm() {
      var f = document.forms['linkDummyForm'];
      f.elements['jscook_action'].value='';
      f.target='';
    clear_linkDummyForm();
    //--></script></form>
    </html>and this is the code after I press a button, without any functionality, but the footer is already wrong.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <link rel="stylesheet" href="style.css" type="text/css">
    <title>Guardar Rayos X</title>
    <script src="/Webprojekt/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11302665/JSCookMenu.js" type="text/javascript"><!--
    //--></script>
    <script src="/Webprojekt/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11302665/MyFacesHack.js" type="text/javascript"><!--
    //--></script>
    <script type="text/javascript"><!--
    myThemeOfficeBase='/Webprojekt/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11302665/ThemeOffice/';
    //--></script>
    <script src="/Webprojekt/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11302665/ThemeOffice/theme.js" type="text/javascript"><!--
    //--></script>
    <link rel="stylesheet" href="/Webprojekt/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11302665/ThemeOffice/theme.css" type="text/css" /></head>
    <body>
       <link rel="stylesheet" href="style.css" type="text/css">
            <table>
              <tr>
                   <td>
                           <h1>
                                Rayos X
                           </h1>
                      </td>
                 </tr>
            </table>
    <script language="JavaScript" src="jscookmenu/JSCookMenu.js" type="text/javascript"></script>
    <script language="JavaScript" src="jscookmenu/ThemeOffice/theme.js"></script>
    <link rel="stylesheet" href="jscookmenu/ThemeOffice/theme.css" type="text/css">
    <script language="JavaScript" src="jscookmenu/ThemeMiniBlack/theme.js"></script>
    <link rel="stylesheet" href="jscookmenu/ThemeMiniBlack/theme.css" type="text/css">
    <script language="JavaScript" src="jscookmenu/ThemeIE/theme.js"></script>
    <link rel="stylesheet" href="jscookmenu/ThemeIE/theme.css" type="text/css">
    <script language="JavaScript" src="jscookmenu/ThemePanel/theme.js"></script>
    <link rel="stylesheet" href="jscookmenu/ThemePanel/theme.css" type="text/css">
         <table>
              <tr>
                   <td>
                        <table id="header_group2" border="0"><tbody><tr><td><script type="text/javascript"><!--
    var id3_menu =
    [[null, 'Salir', 'id3_menu:#{user.logout}', 'linkDummyForm', null],
    [null, 'Persona', null, 'linkDummyForm', null,[null, 'Buscar persona', 'id3_menu:searchPerson', 'linkDummyForm', null],
    [null, 'Modificar persona', 'id3_menu:modifyPerson', 'linkDummyForm', null]],
    [null, 'Consulta', null, 'linkDummyForm', null,[null, 'Buscar por consulta', 'id3_menu:searchVisit', 'linkDummyForm', null],
    [null, 'Modificar consulta', 'id3_menu:modifyVisit', 'linkDummyForm', null]],
    [null, 'Exportar', null, 'linkDummyForm', null,[null, 'Paciente', 'id3_menu:patientExport', 'linkDummyForm', null]],
    [null, 'Preferencias', null, 'linkDummyForm', null,[null, 'Idioma', null, 'linkDummyForm', null,[null, 'Espa�ol', 'id3_menu:#{message.setLanguageToSpanish}', 'linkDummyForm', null],
    [null, 'Ingles', 'id3_menu:#{message.setLanguageToEnglish}', 'linkDummyForm', null]]]];
    //--></script><div id="id3_menu"></div>
    <script type="text/javascript"><!--
         cmDraw ('id3_menu', id3_menu, 'hbr', cmThemeOffice, 'ThemeOffice');
    //--></script></td></tr>
    </tbody></table>
                   </td>
                 </tr>
            </table>
         <form id="visitForm" name="visitForm" method="post" action="/Webprojekt/modifyVisit.faces" enctype="multipart/form-data">
             <table>
                   <tr>
                        <td>
                             <label for="visitForm:patient">
                                  <span id="visitForm:lPatient">Paciente: </span>
                             </label>
                        </td>
                        <td><input id="visitForm:patient" name="visitForm:patient" type="text" value="" />
                             <input id="visitForm:btnPatient" name="visitForm:btnPatient" type="submit" value="..." onclick="clear_visitForm();" />
                        </td>               
                   </tr>
                   <tr>
                        <td>
                             <label for="visitForm:doctor">
                                  <span id="visitForm:lDoctor">Doctor: </span>
                             </label>
                        </td>
                        <td><input id="visitForm:doctor" name="visitForm:doctor" type="text" value="" />
                             <input id="visitForm:btnDoctor" name="visitForm:btnDoctor" type="submit" value="..." onclick="clear_visitForm();" />
                        </td>               
                   </tr>
                   <tr>
                        <td>
                             <label for="visitForm:type">
                                  <span id="visitForm:lType">Estudio: </span>
                             </label>
                        </td>
                        <td>
                             <select id="visitForm:selectOneType" name="visitForm:selectOneType" size="1">     <option value="X-Ray Full" selected="selected">X-Ray Full</option>     <option value="X-Ray Arm">X-Ray Arm</option>     <option value="X-Ray Leg">X-Ray Leg</option>     <option value="X-Ray Foot">X-Ray Foot</option></select>
                        </td>                         
                   </tr>
                   <tr>
                        <td>
                             <label for="visitForm:location">
                                  <span id="visitForm:lLocation">Lugar: </span>
                             </label>
                        </td>
                        <td>
                             <select id="visitForm:selectOneLocation" name="visitForm:selectOneLocation" size="1">     <option value="Mexico City" selected="selected">Mexico City</option>     <option value="Hermosillo">Hermosillo</option></select>
                        </td>                         
                   </tr>
                   <tr>
                        <td>
                             <input type="checkbox" name="visitForm:nextVisit" id="visitForm:nextVisit" value="true" />
                        </td>
                        <td>
                             <label for="visitForm:nextVisit">
                                  <span id="visitForm:lNextVisit">Requiere otra consulta.</span>
                             </label>
                        </td>
                   </tr>
                   <tr>
                        <td>
                             <hr width=100%>
                        </td>
                        <td>
                             <hr width=100%>
                        </td>
                   </tr>
                   <tr>
                       <td>
                             <label for="visitForm:fileUpload">
                                  <span id="visitForm:lFileUploas">Rayos X: </span>
                             </label>
                        </td>
                       <td>
                            <input type="file" id="visitForm:upload" name="visitForm:upload" />
                            <!--
                             <input type="file" id="visitForm:_id25" name="visitForm:_id25" />-->     
                       </td>
                  </tr>
                  <tr>
                       <td>
                             <label for="visitForm:diagnostic">
                                  <span id="visitForm:lDiagnistic">Diagnostico: </span>
                             </label>
                        </td>
                       <td><textarea name="visitForm:diagnostic" id="visitForm:diagnostic"></textarea></td>
                  </tr>
                  <tr>
                       <td>
                            <input id="visitForm:btnAdd" name="visitForm:btnAdd" type="submit" value="A�adir" onclick="clear_visitForm();" />
                            <input id="visitForm:btnSearch" name="visitForm:btnSearch" type="submit" value="Buscar" onclick="clear_visitForm();" />
                       </td>
                  </tr>
                  <tr>
                   </tr>
             </table>
        <input type="hidden" name="visitForm_SUBMIT" value="1" /><input type="hidden" name="visitForm:_link_hidden_" /><script type="text/javascript"><!--
    function clear_visitForm() {
      var f = document.forms['visitForm'];
      f.elements['visitForm:_link_hidden_'].value='';
      f.target='';
    clear_visitForm();
    //--></script></form>
        <p>
        <div>
    <table id="diagnostics" class="list-background">
    <thead>
    <tr><th>Imagen</th><th>Diagnostico</th><th></th><th></th><th></th></tr></thead>
    <tbody id="diagnostics:tbody_element"></tbody></table>
              </div>
                   <table>
                        <tr>
                             <td>
                                  <input id="btnAddVisit" name="btnAddVisit" type="submit" value="A�adir" onclick="clear_linkDummyForm();" />
                             </td>
                             <td>
                                  <input id="btnUpdateVisit" name="btnUpdateVisit" type="submit" value="Grabar" onclick="clear_linkDummyForm();" />
                             </td>
                             <td>
                                  <input id="btnAllToWord" name="btnAllToWord" type="submit" value="Pasar todo a Word." onclick="clear_linkDummyForm();" />
                             </td>
                        </tr>
                   </table>
         <p>
    <link rel="stylesheet" href="style.css" type="text/css">
    <table>
         <tr>
              <td>
                Guardar Rayos X
            </td>
            </tr>
    </table>
    </body>
    <form id="linkDummyForm" name="linkDummyForm" style="display:inline" method="post" action="/Webprojekt/modifyVisit.faces"><input type="hidden" name="linkDummyForm:_link_hidden_" /><input type="hidden" name="jscook_action" /><script type="text/javascript"><!--
    function clear_linkDummyForm() {
      var f = document.forms['linkDummyForm'];
      f.elements['linkDummyForm:_link_hidden_'].value='';
      f.elements['jscook_action'].value='';
      f.target='';
    clear_linkDummyForm();
    //--></script></form>
    </html>

  • I receive "Database access denied" when trying to add component 4543BD

    I receive "Database access denied" when trying to add component 4543BD to my schematic. This component was added from a previous version. I'm using Multisim version 12.0.0  Student edition.
    Solved!
    Go to Solution.

    Hi Diarra,
    I checked my database and  the  4543 is not in the Student Edition. If you opened a schematic that was created in a higher version such as the Educaiton Edition and copied the part to your database, when you place this part you will get the access denied message. 
    Attached is a schematic with the part, you can open it and build you circuit around it.
    Tien P.
    National Instruments
    Attachments:
    4543.ms12 ‏62 KB

  • Runtime add component inconsistency

    Hi All,
    When I add component (hyperlink) at run time on integrated server I see different dialog than when I do it on stand alone WLS. On WLS I have no short desk and show component has no option to enter expression but just check box which is critical. Does anybody know what update should be done to add the capability to WLS that I can enjoy on integrated server (Documentation, links)?
    JDeveloper 11.1.1.5.0, WLS 10.3.5
    Thanks,
    SNikiforov

    ALWAYS execute the following if you add or remove components from an already visible container:
    container.revalidate();
    container.repaint();

  • Example for add(component,object)

    Hi,
    I have a program and am trying to understand that. it is constructing a jpanel. I need to know what this means.
    panel.add(panelA,"4,4,4,10");
    what is 4,4,4,10
    could any one give me a small example of how to use add(component,objet)
    Appreciate all your help
    Thanks

    Not sure what that is about. Its not normal syntax.
    Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html]How to Use Layout Managers for better examples and explanations of adding Components to Containers.

  • Illegal component position when add JLabel to JtextPane

    Hi all,
    I want to add a JLabel to a JTextPane, the label shoud be put in the lines of text just like the normal text. I have some questions:
    1. How can I put the label in the position we want, when I use the method add(label, textPane.getStyledDocument().getLength()), it generates exception :"illegal component position"
    2. How can I set the width and the height of the label so that user cannot know that I used the label. I mean the text on label and the normal text on JTextPane must look the same. Of course I know the length of the caption of the label
    Thank you very much

    How can I put the label in the position we want, I'm not sure you can add a component using that method. I think there is an insertComponent(...) method to use. Also you may need to make the text pane uneditable first if I remember correctly. Something like:
    textPane.setEditable(false);
    textPane.insertComponent(...);
    textPane.setEditable(true);
    How can I put the label in the position we want, label.setFont(textPane.getFont());

  • Add text after a component in JTextPane

    Hi all,
    I insert a JLabel to JTextPane, after that I want to insert a string by the method Jtextpane.getStyledDocument().insertString(pos,string,attrSet). However, I dont know how to decide pos parameter. I tried to add the position where I put JLabel with the length of the text in JLabel but I got BadLocationException. The problem will be solved if I know how to decide the length of the label according to the length of the text on it. Pls help me with this. In that case, how can I set the height of the Label so that the text in label look the same as the normal text in JTextPane
    Pls help me
    Thank you very much

    how can I set the height of the Label so that the text in label look the same as the normal text in JTextPaneWeren't you given an answer to this question in one of your earlier postings?

  • 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.

  • Add scroll to JTextPane in JTable

    Hello,
    I create JTable that her cells is JTextPane.
    The problem is that i need that the JTextPane will have scroll.
    I tried to add but the scroll isn't show.
    Advices with examples are welcome
    Thanks in advance
    Shimon

    hi
    try compile and run the code and watch behaivour, hope this is will help u...
    cheers and good luck
    gkr
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.table.*;
    import java.awt.*;
    import java.awt.event.*;
    public class JTableExample extends JFrame
    JScrollPane jScrollPane1 = new JScrollPane();
    JTextPaneCell JTPC = new JTextPaneCell();
    DefaultTableModel dtm = new DefaultTableModel(new Object[]{"Col1", "Col2",
    "JTextPane", "Col4"}, 10);
    String v = "Hello, \nI create JTable that her cells is JTextPane.\n" +
    "The problem is that i need that the JTextPane will have scroll.\n"
    + "I tried to add but the scroll isn't show.\n" +
    "Advices with examples are welcome.\n\nThanks in advance\n\n" +
    "Shimon.";
    JTable jTable1 = new JTable(dtm)
    public int getRowHeight()
    return super.getRowHeight() * 4;
    public TableCellRenderer getCellRenderer(int row, int column)
    if(super.convertColumnIndexToModel(column) == 2)
    return JTPC;
    return super.getCellRenderer(row, column);
    public TableCellEditor getCellEditor(int row, int column)
    if(super.convertColumnIndexToModel(column) == 2)
    return JTPC;
    return super.getCellEditor(row, column);
    public JTableExample()
    try
    jbInit();
    for(int i = 0; i < dtm.getRowCount(); i++)
    dtm.setValueAt("\n" + i + v, i, 2);
    pack();
    catch(Exception e)
    e.printStackTrace();
    public static void main(String[] args)
    JTableExample JTableExample1 = new JTableExample();
    JTableExample1.show();
    private void jbInit() throws Exception
    jScrollPane1.getViewport().add(jTable1);
    getContentPane().add(jScrollPane1, BorderLayout.CENTER);
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    SwingUtilities.updateComponentTreeUI(JTPC.spane);
    SwingUtilities.updateComponentTreeUI(this);
    class JTextPaneCell extends AbstractCellEditor implements
    TableCellRenderer, TableCellEditor
    JScrollPane spane;
    JTextPane tpane;
    Border noFocusBorder;
    public JTextPaneCell()
    super();
    noFocusBorder = new EmptyBorder(1, 1, 1, 1);
    spane = new JScrollPane();
    tpane = new JTextPane();
    spane.getViewport().add(tpane);
    public Component getTableCellEditorComponent(JTable table, Object value,
    boolean isSelected,
    int row, int column)
    return spane;
    public Object getCellEditorValue()
    return tpane.getText();
    public Component getTableCellRendererComponent(JTable table, Object value,
    boolean isSelected, boolean hasFocus,
    int row, int column)
    if(isSelected)
    tpane.setForeground(table.getSelectionForeground());
    tpane.setBackground(table.getSelectionBackground());
    else
    tpane.setForeground(table.getForeground());
    tpane.setBackground(table.getBackground());
    tpane.setFont(table.getFont());
    if(hasFocus)
    spane.setBorder(UIManager.getBorder("Table.focusCellHighlightBorder"));
    if(table.isCellEditable(row, column))
    tpane.setForeground(UIManager.getColor("Table.focusCellForeground") );
    tpane.setBackground(UIManager.getColor("Table.focusCellBackground") );
    else
    spane.setBorder(noFocusBorder);
    if(value == null)
    value = "";
    tpane.setText((String)value);
    return spane;
    }

  • Add component to cluster

    Hi,
    I have a cluster X of 6 controls (different types). I have an other one (Y) of 7 indicators. The first 6 of them correspond to the ones of X, and I need to put a numeric constant in the seventh. I did not find any other way than unbundle X, rebundle all its components with a seventh input and wire it to my output cluster Y. Can I jump the unbundle of X step by just adding a component, as, for example, when we build an array with to inputs: 2D array and single column. We don't have to separate each column of the 2D array before adding the other one... Thanks.
    Phil

    AFAIK, clusters are static structures, but you have other possibilities, e.g.:
    * Add the seventh item also to cluster X, but hide it in the display there (right-click..advanced..hide control) or slip it under the border.
    * Make the cluster Y as a cluster of [cluster X + indicator #7], this way you don't need to unbundle X.
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • Epson R1800 Borderless Problem

    I've searched the forum and tried (I think) all recommendations. Despite that, I'm still having a problem with a 1/8" border that is printing at the top of my 4x6 borderless pictures. The following is the dialogue I've had with Epson support. Note th

  • How to disable trackpad when mouse attached?

    I used to be able to disable the trackpad when i was using a mouse by going into trackpad system prefs. With the new version of trackpad, I can't seem to do that. Is there a way to disable the trackpad when my mouse is attached?

  • Thumbnails are there, but no full size pictures......

    I can see the thumbnail image in the organize tab, but when I click on the image to edit, I have a blank edit window. I noticed that the pictures have file names such as: 674, 675 but, without the .jpg extension. Any help out there? ibook G4   Mac OS

  • Setting items and branching to a different app via a report column link

    Hi, I'm figuring out how to branch to another application by using a URL redirect and contructing the target URL with items and item values to pass to the target app. So far, so good. But I'm now trying to branch to another app via a column link from

  • Swaps in ST02

    Hi all, We just increased the program buffer from 850 MB to 950 MB 3 weeks back and then to 1050 MB a week back.The system looks normal for a few days and then again i can see the swpas increaing.We already have 16 GB of memory on a 64bit Win NT plat