Custom problem with scrollbar in kifani

Hi, I have a class that extends kifani. This class displays a JEditorPane inside a get for simple HTML display (I have try it with text, the problem persists).

The problem is that, so I put a date in the JEditorPane and the scollbars are visible, they are positioned at the end of the 'view '! I try to reproduce the problem with a simple swing application, but it works.

Any idea?

PS: I'm using Jinitiator 1.3.1.25

Here is the code:
package ch.ceg.ecoles.forms.pjc;

import java.awt.Rectangle;

import javax.swing.JEditorPane;
import javax.swing.JScrollPane;

import oracle.forms.properties.ID;
import oracle.forms.ui.VBean;

public class HtmlFrame extends VBean {

     private static final long serialVersionUID = 1L;
     // property to set the content
     public final static ID pSetContent = ID.registerProperty("SETCONTENT");
     // private variables
     private JEditorPane htmlPane;
     private String content;

     public HtmlFrame() {
          super();

          htmlPane = new JEditorPane("text/text", "Chargement en cours...");

          htmlPane.setEditable(false);
          JScrollPane scrollPane = new JScrollPane(htmlPane);
          add(scrollPane);
     }

     public boolean setProperty(ID pId, Object pValue) {

          if (pId == pSetContent) // set and display the new URL
          {
               String sValue = (String) pValue;
               content = sValue;
               htmlPane.setText(content);
               
               htmlPane.scrollRectToVisible(new Rectangle(0,0,1,1));
               System.out.println("après le scroll");

               return true;
          } else {
               return super.setProperty(pId, pValue);
          }
     }
}

Use:

htmlPane.setCaretPosition(1);

Instead of

htmlPane.scrollRectToVisible(new Rectangle(0,0,1,1));

François

Tags: Oracle Development

Similar Questions

  • How to communicate effectively with Adobe, service customer-problem with credit card authorization

    Maybe someone of you had such a problem with purchose - I bought the plan in creative cloud, but there was no e-mail coming after the purchose and what I see in my bank account information - my payment is waiting for authorization (already too long). In my profile, it seems that I have not buy aything.

    Contact customer support. Make sure that you are connected with the Adobe ID that you used to purchase the plan. I'm also moving your post on the creative forum Cloud.

    Contact the customer service

  • Small problem with scrollbars

    Hello

    I've implemented a custom Manager where I paint the scroll arrows myself.  It works fine on the touch non-ecran models, but when I try to scroll on the storm, the scroll bars are being developed faster than the screen is repainted, it looks like a big mess.

    Any ideas on how I can avoid this?

    I have attached a screenshot to illustrate the problem.

    FYI, my solution has worked.

    in the constructor:

    setScrollListener(this);
    

    Add this method in the handler:

    public void scrollChanged(Manager manager, int newHorizontalScroll, int newVerticalScroll) {
        invalidate();
    }
    

    I don't notice any effect on performance.

  • Problem with ScrollBar

    I created a form several pages, with the first page, which is used to collect data from the user that is used to fill the subsequent secondary forms and print them in the form of documents.  On the first page that is used for data entry, I created a PREVIEW button that initially, I placed at the bottom of the page. The PREVIEW button displays PDF documents that are completed once the data entry is complete.  The problem is that when the PREVIEW button is at the bottom of the page, when I display PDF documents completed, the scroll bar shows first the OVERVIEW documents to halfway to the bottom of the screen and the user must scroll to the top to see the beginning of the document.  After much trial and error, I discovered that the problem is due to the fact that the user must scroll complete data entry page and apparently the scroll position is maintained when I display the first page of the PREVIEW.  I was able to work around the problem by moving the button PREVIEW to the top of the page, but from the ergonomic point of view, it is far from ideal.

    So, the question is... are at - there a way to force the overview pages (basically just unmasking filled subforms) to display from the top of the form when the previous page has been the subject of a scrolling down?

    What happens if you programatically move the cursor from one field to the form th etop before the preview?

    xfa.host.setFocus ("FieldName to set focus in")

  • Custom problem with CFINPUT, masks and onFocus events

    I'm running into an interesting problem, I found a bug in ColdFusion MX 7.0.2 on Windows Server 2003. I have a CFINPUT field with a mask and an onFocus event. When the page is rendered, however, the resulting HTML code has two events onFocus with my called twice and the mask function, called only once. I was able to work around this problem, but it is kind of annoying. See the example below:

    It's not a bug it's a feature, depending on your point of view. Focuses on the first field with a mask using the mask attribute. Your code runs subsequently.

  • Problem with scrollbar after update with App Builder 32.4.4.

    Hey,.

    I just created an app update with the new version of the DPS App Builder (32.4.4.). After the update the scroll bar (of the Viewer - no content drop-down) moved to it of original position. (see screenshot)

    Any ideas?

    screenshot-bug.png

    The update went live Saturday. If you do not have automatic updates enabled for your devices, then you should see the update in the App Store Update tab.

  • Customer problem with graph

    Is it possible to improve graphics performance on the workstation with the RDP Protocol?

    We have HP t5540 clients (Windows CE) light with 1 GB of RAM, View4.5 and Win7x32 VMs. watching videos on Youtube for example is very hard, video and sounds are terrible. Is it possible to improve, for example on the thin client or view or vsphere VM...?

    Thanks to all the advice

    Ask your supplier for a demo of a teradici PCoIP zero client device and you will be amazed at the easy use and the speed of these devices!

  • Problem with pointstyle custom

    Hello, I want to create a pointstyle customized for my plots scattergraph. I want to create a rectangel with a black border.

    I have read the following of section http://zone.ni.com/devzone/cda/tut/p/id/10526 and that it really helps.

    But there is a little problem with the black border. The following diagram shows this problem, that the border is only on the 2 sides of my rectangel.

    This is my code in my tiny class.

    class BorderPointStyle of Ref: NationalInstruments::UI:PointStyle
    {
    public:

    BorderPointStyle (void)
    {}

    public: virtual void Draw (Object ^ context, PointStyleDrawArgs ^ args) override
    {
    Graphics ^ g = args-> graphics;

    Rectangle rect_b = Rectangle (0,0,7,7);
    Rectangle rect_i = Rectangle (0,0,6,6);

    System::drawing:pen ^ pen = New System::Drawing:Pen (Color::Black);
    g-> FillRectangle (gcnew SolidBrush (args-> Color), rect_i); Draw the innerarea

    g-> DrawRectangle (pen, rect_b) ;// draw the border

    }
    };

    Maybe someone has a resolution of my problem

    Hello-

    Your points are currently limited by the PointSize property.  You can change your code as follows:

  • Problem with window painted and scrollbars when editing (LabVIEW 8.0.1)

    I'm under LabVIEW 8.0.1 in Windows XP SP3.  For my main VI, I came across a strange problem about 5 months ago.  The front window - both in edit mode and run mode - arrested repaint itself on the right side which is no longer visible when you scroll from top to bottom, but also visible overlapping Windows.  Coinciding with the repaint problem, both bars scroll search disabled grey arrows and no boxes in the bars that you can click and drag to scroll the window.  The scroll bars work still partially if you pass the mouse over it and roll the mouse wheel but does not work by clicking and dragging.

    The façade has a lot of controls and indicators, including containers of tab control and is greater in the horizontal directions and vertical so the two scroll bars must be active.  But I deleted everything in the Panel before and everything in the schema and the problem persists.  If the problem is not directly related to a control/led display.

    I saved the simple VI to this problem (using a line of large text and a high box rounded to test), and then created a new VI and copied the two elements at the new VI.  This new VI didn't paint it and the problem of the scroll bar.  The two screws are slightly different in the memory usage and the revision number (bad is review 1785 and the good is revision 3), but otherwise the two screws are identical.  I have attached two screws at this announcement.  When you first open the bad VI, you will see the scroll bars disabled while the good VI has active scroll bars.  To replicate the repaint problem, scroll the window up and down with your mouse wheel.  If it's good when you first open the VI, click on another window, then click on the window of VI and try again the mouse wheel.  This by clicking sur-loin-and-return always causes the problem of repaint for me.  I tried the screw on two different computers, both running Windows XP SP3 and LabVIEW 8.0.1 with identical results.

    Here's what I discovered simple troubleshooting with the screws:

    always off scroll bars

    * repaint the problem in the main window for larger then 680 pixels of window widths

    * repaint the problem in the menu bar of the main window for widths of more than 646 pixels

    * entire window becomes disabled than 1348 pixels window width

    * can paint window minimize and restore, but only repaints only once

    * scrollbar boxes sometimes flicker in the display, but then disappear

    * Scroll left and right hovering mouse over the bar and horizontal scroll by using the mouse wheel

    I found something similar on this forum (thread: problem with refresh of façade)-it could be linked to the CAR on the Panel being offset internally.  I don't have access to LabVIEW 8.5 or later and do not plan to upgrade - I have not tried the trial version, as this user has done.  I could try to copy and paste my set of the block for a new VI diagram but the VI is so important I'm afraid something would break, plus I don't want to do it again in a few months.  The problem seemed to occur after a certain number of stops (or revision number).  I save copies of backup often and when the problem first happened, I was able to go to a previous version, make the missing changes and save it without any problem, but this only delayed the problem and he came later.  It is therefore perhaps the revision number.  It seems not related to a change or a particular addition in the front panel and the graph.

    The attached picture shows the repaint problems and scroll bar in bad VI.

    This raises a question I have - if this problem is a bug has been fixed in 8.5 and later, is it possible to apply bug fixes for older versions?  Or what I need to pay for an update fix these bugs?

    Seems that something got corrupted with this VI. Things to copy on a cool VI and things should be OK.

    See also this recent report of a similar problem.

  • problem with Internet connection sharing, error: connection ad - hoc has "no internet access" on the cell phone of the customer

    Original title: problem with Internet connection sharing

    my laptop running on Windows Vista Home Premium SP2 (this one has access to the internet by using the dial-up modem and will to act as a sharer of internet connection or as a host) and the client computer runs on Windows 7 Starter

    in a first step, I try internet connection sharing, I've set up an ad hoc network and I just changed my setting modem dial-up on the sharing tab, of course what I change, it of 'Allow an other network users to connect through this computer internet connection' and choose the on Home Networking connection wireless network connection , then my mobile client to connect to a special that I created and portable client connected to the internet via ICS
    then the problem came when I restart my laptop. When I tried to use ICS once again, my customer laptop really takes a long time to connect, he continues saying 'identification' side host and client. and after that "identify" is complete, it says ad - hoc connection, I create has "no network".
    so, I'm a person answer in this forum
    ' Obtain an IP address automatically is the wrong setting on the Ethernet connection. "  To return to the sharing tab and unshare the wireless connection.  Close all windows network, and then open them and re - share the wireless connection.  Who must configure IPv4 for the Ethernet connection properties for:

    IP address: 192.168.0.1
    Subnet mask: 255.255.255.0
    Default gateway: no
    "DNS server: none.

    I put this on my laptop of the host, and and I put the IP address on my laptop customer in 192.168.0.2 with the same default gateway as my portable computer host IP
    and made some progress in this case, when I try to connect host and the client is no longer to 'identify' phase, immediately connected laptop both but my mobile client can not connect to the internet and displays "No Internet access" on the ad hoc network, I have create

    I tried a lot of things but always completed my mobile client can not connect to the internet and displays the message "no Internet access.

    What makes me confuse is first, I try to share the internet connection everything works like a charm, I set up an ad hoc network, and then change the setting on my modem dial-up so he can share the internet connection, and voila, computer laptop client connected to the internet. I change even not all IP settings
    But why after I restart my PC, this problem comes...
    someone knows how to help me with this problem?

    Hey, Mimbs,

    You can try the similar thread to the next with a possible solution:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-networking/no-Internet-access-in-the-client-machine-when/77312e09-4385-41FA-A420-0c42be58e4e3

    Also for reference:

    http://Windows.Microsoft.com/en-us/Windows7/networking-home-computers-running-different-versions-of-Windows

  • Problem with download custom to CSV in APEX

    Apex: Apex 4.2

    Oracle 11g

    Listener of the apex.

    Hello I have a general problem with export to CSV using a custom process of pl/sql manual tabular.

    I can't use the native 'Download' option because it will not be exported my textbox objects to CSV

    So I have a custom download process that calls another page which has a prior to the process of the header as follows:

    
    

    HI INAMIK

    I think you need to update your code to place your fields exported with '. '.

    For column headings

    htp.prn('"Month/Year","Bonus","Actual Bonus Distributed","Date Distributed"'||chr(13));
    

    For data

    htp.prn('"' || x.MONTH_DATE|| '","' ||x.RVU_BONUS || '","' || x.SIX_MO_BONUS_ACT || '","' || x.BONUS_DIST_DTTM || '"' || chr(13));
    

    I hope that solves your problem

    Concerning

    Mahmoud

  • Problem with Microsoft account won't let me sync between desktop PC and laptop (Windows 8) custom settings

    Hello
     
    Synchronization of the custom (for example, my desktop background) settings does not work between my desktop PC and my laptop and vice versa (both running Windows 8). I use my Microsoft account (so no premises) on both devices and have already checked the relevant synchronization (which are lit) settings. In addition, I used the "microsoftaccounts.diagcab", however unsuccessfully fix tool:
     
    Troubleshooting completed, problems found:
    • Problem with the Microsoft account strategy: don't not fixed
    • Some settings have disabled sync: detected (which is false)
    • Customization have disabled synchronization (which is false)
    • You have reached the daily quota of the synchronization. The quota of synchronization fade gradually. Please try again later.
     
    However, as a matter of fact sync was working, after I had created and used a new account from Microsoft on both devices. so I suspect something to be a problem with my original Microsoft account. Could you please check this account on your site and let me know your results?
     
    PS My original Microsoft account (that I created there) is the same account that I used to connect to this forum. If you need more information, please let me know!
     
    Thanks in advance!
     
    Kind regards
    Victor Alberts.

    It worked perfectly for me:

    Follow these steps:

    1. Make sure that the synchronization of personal settings is enabled on all the PC associated with your account
    2. Go here and follow the instructions: http://skydrive.live.com/win8personalsettingsprivacy
    3. Wait a day or two
    4. Do this it fixes going in charms bar and selecting settings-> change PC settings.  On the accounts section, there is a link under your Microsoft e-mail account called 'Disconnect '.  If you click on it and follow the instructions create you a local computer account and then log off from Windows.  Once you connect with your local account, go back to the account settings and reconnect to your account.

    Solved all my problems of synchronization.

    I hope this helps for you also!

    Robin

  • Facing a problem with writing the custom for WLS identity assertion provider

    I am facing a problem with writing the custom for WLS identity assertion provider.

    Requirement:

    Asserter identity configured in WLS should get called when the following cookie is sent in a request by my application
    cookie name: OAMAuthnCookie_blr1234567.idc.oracle.com:7777

    I added the name of the cookie as a token of support and Active token in WeblogicCustomIdentityAsserter.xml

    < MBeanAttribute
    Name = "SupportedTypes.
    Type = "java.lang.String [].
    Writeable = "false".
    Default = "new String() {& quot; OAMAuthnCookie_blr1234567.idc.oracle.com:7777 & quot ;}.
    / >
    <!-ActiveTypes attribute contains the subset of your mbean SupportedTypes who are active in the area. ->
    < MBeanAttribute
    Name = "ActiveTypes".
    Type = "java.lang.String [].
    Default = "new String() {& quot; OAMAuthnCookie_blr1234567.idc.oracle.com:7777 & quot ;}.
    / >

    Problem:

    Identity asserter provider is not invoked for the request that has the cookie named OAMAuthnCookie_blr1234567.idc.oracle.com:7777.

    I did some experiments with the cookie name, to see where the problem could be

    Identity asserter provider is triggered for the following cookies:
    OAMAuthnCookie_blr1234567.idc.oracle.com7777.
    blr1234567. IDC. Oracle
    blr12_XXX. IDC. Oracle.com

    and it does not work for cookie name - OAMAuthnCookie_blr1234567.idc.oracle.com:7777

    I think that the name of the token supports not the colon. I don't have control over the name of the cookie, two points will always be

    Tried it with giving the name of the cookie after the encoding of the colon

    < MBeanAttribute

    Name = "SupportedTypes.

    Type = "java.lang.String [].

    Writeable = "false".

    Default = "new String() {& quot; OAMAuthnCookie_blr2211441.idc.oracle.com & #58;. 7777 & quot ;} »

    / >


    But still does not work
    Am I missing something? Any help will be appreciated.
    Help, please!

    colon ': ' is an illegal character in the name of the cookie.

    RFC 2616, Section 2.2 says:

    token = 1 *.

    separators = "(" | ")" | " <" |="" "="">" | " @"

    | "," | ";" | ":" | " \" |<">

    | "/" | "[" | "]" | "?" | "="

    | "{" | "}" | SP | HT

    It is clear ":" a "separator" and thus not allowed in a token or a cookie name.

  • Hi, I have a problem with the download trial version of adobe after effect cc. When I want to download instad of download there are massage: we are experiencing some problems, please try again later. If the problem persists, contact customer support

    Hi, I have a problem with the download trial version of adobe after effects cc. When I want to download instad of download there are massage: we are experiencing some problems, please try again later. If the problem persists, contact customer support. What seems to be a problem? Thank you

    Please try after effects configuration required for Mac OS and Windows

    Concerning

  • Problem with edit &gt; Define Custom Shape

    I have a dialog box that appears and indicates "unable to complete the command set of custom shape because of a program error". Does anyone have the same problem?

    Thank you

    VB

    HI, I had the same problem with the latest version of PS. I fixed it in this way:

    1. familiarize yourself with the tool Panel.

    2. click hold in the lower part of it, when there is an icon with 3 points, and choose edit toolbar

    3 TheCustomize toolbar appears. In the column of Extra search tools the shape tool customized and drag and drop it into the column of toolbar

    3, tap done.

Maybe you are looking for