Facing problem in using JEditorPane as renderer for JList

I am trying to use JEditorPane as renderer for a list. But I am facing some problems. First problem is the output in the editorpane is not shown properly. I want to show a html file, but only portion of the first line that is viewable in the editorpane is shown. I, of course, need to show the total content of the file. Again sometimes the editorpane looks blank. If I click on the list then some text are shown in the editor pane. Please help me to overcome these problems.
Here goes the code for the renderer.
list.setCellRenderer(new ListCellRenderer() {
            private JEditorPane editor = new JEditorPane();
            public Component getListCellRendererComponent(JList mList, Object value, int index,
                                                        boolean isSelected, boolean hasFocus) {
                try {
                    editor.setPage("file://localhost/C:/networks/network1/description.html");
                    editor.setBackground(isSelected ? mList.getSelectionBackground() : mList.getBackground());
                    editor.setForeground(isSelected ? mList.getSelectionForeground() : mList.getForeground());
                    editor.setBorder(BorderFactory.createRaisedBevelBorder());
                    editor.setOpaque(true);
                } catch(Exception e) {
                    e.printStackTrace();
                return editor;
        });

hai ahmad,
it could be bcoz of the size of the pane.... the size content might be too large to fit in that pane....... y dont u increase the width of the pane..
or set the size of the pane..... its surely bcoz of the size only....
hope this helps u...... or else revert back for further clarifications...
Regards,
Ciya.

Similar Messages

  • Facing problem in using webutil

    hello,
    i have oracle developer suite 10g (9.0.4), which have not webutil capabilities,
    i download the webutil 1.0.6, and manually made all the required chages,but facing problem in using all the fuctions, firstly it return value or string exception (ora-06502) and after that it always return NO_data_found(01403) exception,
    Please! help on this
    regards,
    sidharth

    In order for us to help you will need to provide a lot more information. However, I would start with this:
    1. Have you compile the webutil.pll file in to a .plx?
    2. Is the PLX included in the FORMSxx_PATH?
    3. Have you attached the WebUtil objects (from the Object Library) to your form?
    4. If you are developing your form on Windows and trying to run it on Unix, have you recompiled the PLL and FMB?
    5. If you sub-classed the WebUtil objects in to your form, the webutil OLB will need to be in the FORMSxx_PATH
    Try using the WebUtil Demo form:
    http://www.oracle.com/technology/products/forms/htdocs/webutil/Webutil_demo.zip
    Read the WebUtil doc. It may be necessary to detach and reattach the WebUtil Library. Then execute a COMPILE_ALL. Refer to the WebUtil doc Section 5.1 "Adding The Required Objects"
    http://www.oracle.com/technology/products/forms/htdocs/webutil/web_util.pdf

  • I am facing problem in using viber...can not receive  any call from Viber whn keypad is locked and whn i unlock phone thn on opening viber i can see the missed call notification... kindly guide me there is any setting so0 tht i can receive viber calls

    I am facing problem in using viber...can not receive  any call from Viber whn keypad is locked and whn i unlock phone thn on opening viber i can see the missed call notification... kindly guide me there is any setting so0 tht i can receive viber calls whn my phone is locked even as i can receive calls on HTC

    Hi,
    This is an official representative of Viber Media.
    Unfortunately we cannot change this feature due to Apple's restrictions. :/
    For more questions or technical support, please visit our official HelpDesk.
    Thanks,
    Viber

  • Facing problem in using webutil functions

    hi,
    i have developer suite 10g(9.0.4),
    i download web util 1.0.6, update all the required changes,
    i also download the template, which shows the
    but still i am facing problem in using any function,
    when i am using get_system_property method then it return exception (06502) value or string error, and all the other functions return no_data_found exception
    please help me!!!
    with regards,
    sidharth

    Sidharth,
    unfortunately your question doesn't provide enough details to help you out of this. Please provide the code that you use in the function call that causes the exception. If you have error messages to share, the better it is.
    Frank

  • Facing Problem in Config Archieve through SSH for ASA

    HI ,
    I am facing problem in Ciscoworks in Fetching config Archieve from Cisco ASA-5510 Adaptive Security Appliance . I am using LMS 3.2 and RME 4.3.1
    SSH is enable in the device, and from LMS server I am able to connect through Putty. Also from Management station to Device it showing SSH is up for both version. But from RME its failing Its giving below mentioned error
      Device: COGINHYDGCBDFHRTF1       Status:   Failed
    *** Device Details for COGINHYDGCBDFHRTF1 ***
    Protocol ==> Unknown / Not Applicable
    Selected Protocols with order ==> SSH,Telnet,TFTP,RCP,SCP,HTTPS
    Execution Result:
    RUNNING
    CM0151 PRIMARY RUNNING Config fetch failed for COGINHYDGCBDFHRTF1 Cause: Couldnot enter ENABLE Mode from USER Mode on 10.241.44.220.TELNET: Failed to establish TELNET connection to 10.241.44.220 - Cause: Connection refused.
    Action: Check if protocol is supported by device and required device package is installed. Check device credentials. Increase timeout value, if required.
    I have tried from LMS server by telneting to port 22, its giving below output------SSH-1.99-Cisco-1.25
    When I have tried to test device credentials for SSH and SSH Enable mode, then below output I am getting. SSH remains blank status.
    Device Name
    SSH
    Enable
    by SSH
    1.
    COGINHYDGCBDFHRTF1
    Did Not Try
    Pls help to resolve this.

    Hi,
    Take a look at the code you are running on the ASA and see if this bug fits. http://tools.cisco.com/Support/BugToolKit/search/getBugDetails.do?method=fetchBugDetails&bugId=CSCtd67173
    Thanks.

  • Facing problem in loading masterdata from PSA for 0cust_sales

    Hi,
    I am facing problem while loading Masterdata for 0cust_sales in PSA. data is coming from KNVV table but there is no duplicate record in the KNVV Table but while loading data to SAP BI, Its showing error message in PSA for few customers - duplicate records being created.
    Kindly please help me with this issue
    Regards,
    Swapnil

    Switch on Indicator: Handling Duplicate Data Records
    Use
    If this indicator is set, duplicate data records (that is, records with the same key) are handled during an update in the order in which they occur in a data package.
    For time-independent attributes of a characteristic, the last data record with the corresponding key within a data package defines the valid attribute value for the update for a given data record key.
    For time-dependent attributes, the validity ranges of the data record values are calculated according to their order (see example).
    If the indicator is not set and error handling is deactivated, the request terminates once data records with the same key are detected. If error handling is activated, data records that have the same key are written to the error stack of the DTP.
    Note:
    If during your data quality measures you want to make sure that the data packages delivered by the DTP are not modified by the master data update, you must not set this indicator.

  • HELP :  BAPI_BUS1077_CREATE (  facing problem in using this Bapi )

    Hi
    I am facing a problem in using this Bapi.
    I already have a Data record for the Property Say FAT under a property tree say XXYYZZ. Suppose I want to create a new value for one of its Characteristic of the existing record, I am able to do that. For example. Suppose FAT has a Characteristic called Min = 1  , Max = ' ' , I am able to create a value for this  say Max = 5..   at the same time i am able to change the value of Min = 2 if I use the Bapi_Bus1077_Change..
    But my problem comes when I am trying to create a new records for the FAT.  with Min = 6  and Max = 10.. ( I am creating a new instance ).
    I see in the documentation that something has to be done with the Primarykey and Foreighkey.  But when I look into my import parameter table, all have the 000000000000000 in my primary key and in foreignkey.. 
    Can someone help me out?
    Thanks.
    David
    Message was edited by:
            Kirubakaran David

    As you want to create a new instant, you need to pass PROP_VAL and PROP_DATA
    First call GetDetails and then use it as follows.
    prop_val-function = '009'. "NEW
    prop_val-primarykey = '000000000000001'. "Temporary key that you need to assign
    prop_val-flgprimkey = 'X'. "As the key does not exist
    prop_val-foreignkey = prop_header-record_no. "From GetDetail
    prop_val-flgfrgnkey = ' '. "As key exists
    APPEND prop_val.
    prop_data-function = '009'. "NEW
    prop_data-primarykey = ''000000000000002'. "Temporary key that you need to assign
    prop_data-flgprimkey = 'X'. "As the key does not exist
    prop_data-foreignkey = prop_val-primarykey. "This is the value assigned above
    prop_data-flgfrgnkey = 'X'. "As the key does not exist
    prop_data-name_char = 'MIN_CHAR'.
    prop_data-char_value = '6'.
    APPEND prop_data.
    prop_data-function = '009'. "NEW
    prop_data-primarykey = ''000000000000003'. "Temporary key that you need to assign
    prop_data-flgprimkey = 'X'. "As the key does not exist
    prop_data-foreignkey = prop_val-primarykey. "This is the value assigned above
    prop_data-flgfrgnkey = 'X'. "As the key does not exist
    prop_data-name_char = 'MAX_CHAR'.
    prop_data-char_value = '10'.
    APPEND prop_data.
    CALL FUNCTION 'BAPI_BUS1077_CREATE'
    Note how primary key from PROP_VAL (000000000000001) is used as foreign key for PROP_DATA (000000000000002 and 000000000000003)

  • Connection Problem When Using Oracle Developer Tools for Visual Studio

    I tried to create an Oracle Connection in my Visual Studio 2008 after installing Oracle 11g, Oracle Data Access Components (ODAC) with Oracle Devleoper Tools for Vissual Studio version 11.1.0.6.20.
    I followed the directions according to "Building .NET Applications Using Oracle Developer Tools for Visual Studio, when I click Test Connection, I keep getting the error message below.
    Microsoft Visual Studio
    ORA-12170: TNS:Connect timeout occurred
    OK
    ---------------------------

    I solved the problem.
    This is what I did for the benefit of the embryonic newbe like me.
    On the Add Connection Dialog
    1.     For Data source name I selected Local Database
    2.     I clicked on the specific User Name and I typed SYSTEM
    3.     For Password, I typed orcl (the password I setup during the installation) (HR did not work for me for User name and Password according to the tutorial instructions)
    4.     For Role, I selected Default
    5.     Connection Name, I selected Local Database
    6.     Before proceeding any further went to Windows XP SP3 where I was operating from, under Start Menu, I selected Administrative Tools then Services
    a.     On the Windows Services (Local) Dialog, under name, I selected OracleServiceORCL and OracleOraDb11g_home1TNSListener. I clicked on them one at a time
    b.     On the presented Dialog, under Service Status, I Clicked on the Start Button to start the Services
    c.     Then I went back to the Add Connection Dialog. I clicked on Test Connection, it connected okay. I finally clicked on Okay to connect.

  • Facing problem while using Thread analyzer in Sunstudio 12

    Hello all
    I am new in Sunstudio 12. I am using Linux RedHat enterprise 5 (*Hardware configuration: Intel Pentium 4 , 2.40GHz, 1GB RAM*)
    I am trying run a sample program for deadlock detection as described in [http://docs.sun.com/app/docs/doc/820-0619/6ncbk8g78?a=view|http://docs.sun.com/app/docs/doc/820-0619/6ncbk8g78?a=view]
    I used the following commands:
    *./cc din_Philo.c -mt -g*
    *./collect -r deadlock a.out*
    But I got the following message:
    WARNING: Linux-32-bit, 1 CPUs, RH_Server_5 system localhost is not supported by the Performance tools.
    WARNING: Data collection may fail: system is not properly configured or is unsupported.
    Creating experiment database tha.1.er ...
    execvp of a.out failed: No such file or directory
    What is the problem?? Is it related to operating system?? or Is it related hardware??
    Any idea??
    Thanks in advance
    Nasif

    Sun Studio 12 is supported on RedHat Enterprise 4, but you have version 5. So yes, it is related to the operating system.
    Some (or even all) components on Sun Studio might work on an unsupported system, but they are not guaranteed to and besides, might fail in some situations. Collector and dbx are most OS-sensitive components on Sun Studio, so I'd expect you are likely to run into compatibility problems when using collector on RHat 5.
    From the other hand, your immediate problem might not be related to OS compatibility. It looks like the system simply refuses to look for a.out in current directory.
    Try changing the second command to
    ./collect -r deadlock ./a.out(BTW, do you really keep a.out inside Sun Studio's installation directory? It must be really inconvenient as you might accidentally delete some parts of Sun Studio instead of your build's scratch files).

  • I'm having a problem with using an external drive for my iTunes media

    I recently switched to using an external drive for my iTunes library and I was able to switch everything fine. I was able to get iTunes to download and new TV shows, videos, and music that I purchased from the iTunes store to the iTunes folder on my external drive but I can't get it to do the same for applications. All my applications are still being used through the iTunes folder on my internal drive and new ones that I download get put in that folder too. How can I set it to get iTunes to put new applications and use the existing application files from my external drive?

    There is a Windows based utility that will allow one to change the location of the 'My Music' folder, but you appear to be running a Mac.
    You may find more appropriate help in the iTunes for Mac Discussions.
    If you are running Windows, post back and some info can be provided.
    Best of Luck

  • Facing problem when using SYNC and ASYNC bridge in ID

    Hi all,
    In BPM i am using SYNC/ASYNC bridge for that Outbound Interface and BPM Sync Interface has the same structure is it mapping necessary for that intercaces.
    In interface determination it is showing error duplicate interfaces in ID test configuration , when i loading the Interface mapping for the same.
    In the Receiver determination i am sending the message based on the conditions to the particular receives through different receivers Business Systems from the Sync interface showing error.
    Give me solution how should i do the Interface determination and receiver determination.
    Please help me any one .
    Thanks in advance,
    Manohar.
    Edited by: Manohar S on Feb 28, 2008 9:50 AM

    Sorry for delay.
    Tough question.
    Oracle® Database High Availability Best Practices 11g Release 2 (11.2) E10803-01 August 2011
    Under "5.1.8 Set LOG_BUFFER Initialization Parameter to a Minimum 8 MB"
    States :
    "If you are using Oracle Data Guard with asynchronous redo transport, you may need to increase the value of the
    LOG_BUFFER parameter to avoid disk I/Os to online redo logs."
    Nothing about "Synchronous".
    I agree with you on Oracle Support Note 951152.1, its vague.
    Additional links on the subject
    This also seems to imply :
    http://joordsblog.vandenoord.eu/2010/08/data-guard-optimizing-async-redo.html
    So does this ( With ASYNC, increase log buffer size if necessary )
    http://www.oracle.com/technetwork/database/features/availability/316925-175283.pdf
    This one has a very nice Synchronous and Asynchronous compare.
    http://www.datadisk.co.uk/html_docs/oracle_dg/architecture.htm
    New Zealand, Someday I may have to travel there.
    Best Regards
    mseberg

  • Problem in using the enhancement SAPLV01Z for batch no assignment

    Hi,
    i am using the enhancement SAPLV01Z for using the user defined batch number.
    In which i am allowing the system to generate the internal batch number if it is newly created batch for that particular material,site and MRP combination.For this i am using the function module EXIT_SAPLV01Z_001 and if the batch is already available in ztable suppress the internal batch number generation.
    And by using the function module exit EXIT_SAPLV01Z_002 i am copying the already available batch and passing to the variable new_charge in that function module.
    every thing is OK. But the prob is system checking the availability of the batch for combination of materila and site in batch master table MCHA and throwing an error saying that no batch is found,enter batch.
    Now i want to skip the checking of MCHA table if it is already there in my ztable.For that i am implemented the OSS Note 1035372 but it is not working.
    And one variable call_vb_create i need to pass X for that i need access key.
    Can any body have solution with out using the access key..
    Thanks and regards
    anil

    Sorry I hadn't seen this question.
    I got the same issue today and used EXIT_SAPMM07M_010. It works fine.
    This user exit fix the issue

  • Problem in using the enhancement SAPLV01Z for batch no assignement in MIGO

    Hi,
    i am using the enhancement SAPLV01Z for using the user defined batch number.
    In which i am allowing the system to generate the internal batch number if it is newly created batch for that particular material,site and MRP combination.For this i am using the function module EXIT_SAPLV01Z_001 and if the batch is already available in ztable suppress the internal batch number generation.
    And by using the function module exit EXIT_SAPLV01Z_002 i am copying the already available batch and passing to the variable new_charge in that function module.
    every thing is OK. But the prob is system checking the availability of the batch for combination of materila and site in batch master table MCHA and throwing an error saying that no batch is found,enter batch.
    Now i want to skip the checking of MCHA table if it is already there in my ztable.For that i am implemented the OSS Note 1035372 but it is not working.
    And one variable call_vb_create i need to pass X for that i need access key.
    Can any body have solution with out using the access key..
    Thanks and regards
    anil

    Sorry I hadn't seen this question.
    I got the same issue today and used EXIT_SAPMM07M_010. It works fine.
    This user exit fix the issue

  • JTree as cell renderer for JList

    I have an application that requires to display a list of tree-structured data.
    So I've used JTree a the cell renderer for the JList, and I can see a list of trees with that data in.
    However, the Jtree doesn't respond to Mouse messages, even if I dispatch the to it manually. So the tree is essentially dead.
    Does anybody know how to fix this?

    I'm not sure if they have the same thing for lists though.Yes, it is so - a cellrenderer or celleditor is a component, that is only there during it is used - a cellrenderer is there as long as it needs to paint the contents, a celleditor is there, if an edit-process is invoked and it will get messages as long as the editing process continues - after finishing editing, the component is no longer there - normally the renderer is called after that, to render the new contents into the rectangle of that cell, because the contents in its non-editing state may look other than that from the editor during the editing-state.
    greetings Marsian

  • Problem to use RF front-end for 13.56 MHz application

    Hi,
    I developed an ASK transceiver using 5640R. It worked well when I directly connected the AI and AO ports. Then I tried communications between two antennas. I cascaded the niTuner VI and RF Upconverter Only Mode VI to control the PXI-5600 and PXI-5610 as separate modules. I connected the two antennas to 5600 RF downconverter input and 5610 RF upconverter output respectively. But when I ran it, all I received was noise. I checked the upconverter Only Mode Vi, and I found out that the 13.56 MHz RF frequency might be a problem. The error would occur that the IF carrier frequency is an invalid value. And the smallest value for IF should be 14 MHz. So it seems that for 13.56 MHz, I cannot set an IF to satisfy the minimum IF value requirement.
    I think I should be able to use this box for 13.56 MHz applications. So does anyone know the solution for this problem?
    Thanks for help!
    Danlu

    Hi Danlu,
    The PXI-5610 can only tune in 1 and 5 MHz step sizes based on bandwidth. For BWs larger than 10 MHz, the 5610 will tune in 1 MHz steps, and for BWs smaller than 10 MHz the 5610 will tune in 5 MHz steps. Thus, a center frequency of 13.56 MHz will not be immediately possible with th 5610 since it is not divisible by 1 or 5 MHz.
    To compensate for this, I would suggest that you tune to 15 MHz (if you are selecting a narrow) or 13 MHz (if you are selecting a wide bandwidth). For the remaining frequeny offset, you can adjust the NCO of the 5640R.
    For example » tune the 5610 to 15 MHz, and tune the NCO 25 MHz - 1.54 MHz = 23.56 MHz. This will place you at the correct center frequency when combining the two devices. This is how we perform fine tuning with respect tof frequency for our PXI-5661 and PXI-567x products.
    Regards,
    Chris Behnke
    Sr. RF Engineer
    High Frequency Measurements

Maybe you are looking for

  • Summary report treats a currency fields as text

    In the summary report I have three charts with the currency field. The two charts show 'average' and 'total' but the other chart shows 'percentage' of responses - in other words the report treats that field not as a number but as text. The filed is d

  • Export Appleworks to Pages

    I thought I could export a mailing list set up for labels in AppleWorks to Pages but everytime I try to import the AppleWorks file I get the message that it's "not a word processing document". Thanks for any help.

  • Help for checkbox display

    Hi good souls, I have 8 check boxes and when i want to insert the record in my table and check any of checkboxes the required field gets updated. but the problem is coming when i want to display the values. the check boxes are not marked when i displ

  • Problems with planning function in Web Application Designer in 2004s

    Hi All, I have a problem in WAD 2004s with planning function. I created a web template that includes a query. It runs on the enterprise portal, and I can edit this query. The problem is: I don't know how to save this edited query, because when I use

  • Setting gmail to see only new email on iPhone 3gs

    Hi I only want to see new email when I access gmail on my iPhone, but I see every email that has ever been sent. I need to keep what I have on my computer, but don't need anything but new to come thru on iPhone. Everytime I start to delete what I don