Customizing the scrollbar for jScrollpane Component

Hi,
Am trying to customize my jScrollpane scrollbars. Would like to at least customize colors.
Anyone know how to do this? Or know anywhere to read up about this. I am using the Sun One Studio and can't seem to do this at all.
thanks

I have the same problem.
So far I have only managed to change the background of the scrollbars.
jScrollPane.getVerticalScrollBar().setBackground(color);
Does anyone know how to further customize the scrollbar?

Similar Messages

  • How to change the size of the scrollbar in JScrollPane?

    I set a jtable in the jscrollpane,but the table is very small,so I want to change the size of the scrollbar in the jscrollpane.How can i do?Please help me,Thanks.

    Dropping and re-creating the table is by far the best way (of course you need to unload the table's data to a flat file with ttBulkCp first and then reload it again afterwards).
    a second option is to drop the column and re-add it with the new size but you still need to preserve the data first and put it back afterwards and this is harder for a single column than for a whole table. Also, if you are using replication you should exercise care when using ALTER TABLE to ensure iall replicated copies of the table maintain the same physical structure.
    Chris

  • How to override the renderer for ADF component?

    I want to overide the renderer for ADF components, without using <default-render-kit>, I defined every render class. But It does not work.
    Always told me: Could not find renderer for CoreOutputText[UIXFacesBeanImpl, id=_id0], rendererType = oracle.adf.Text
    How can I config custom renderer for exsiting component or new components?
    Thanks a lot!
    <render-kit>
    <render-kit-id>oracle.adf.core</render-kit-id>
    <renderer>
    <component-family>oracle.adf.Output</component-family>
    <renderer-type>oracle.adf.Formatted</renderer-type>
    <renderer-class>oracle.adfinternal.view.faces.renderkit.core.xhtml.OutputFormattedRenderer</renderer-class>
    </renderer>
    <renderer>
    <component-family>oracle.adf.Choose</component-family>
    <renderer-type>oracle.adf.Date</renderer-type>
    <renderer-class>oracle.adfinternal.view.faces.renderkit.core.xhtml.ChooseDateRenderer</renderer-class>
    </renderer>
    <renderer>
    <component-family>oracle.adf.Input</component-family>
    <renderer-type>oracle.adf.Text</renderer-type>
    <renderer-class>oracle.adfinternal.view.faces.renderkit.core.xhtml.InputTextRenderer</renderer-class>
    </renderer>
    <renderer>
    <component-family>oracle.adf.SelectInput</component-family>
    <renderer-type>oracle.adf.Date</renderer-type>
    <renderer-class>oracle.adfinternal.view.faces.renderkit.core.xhtml.SelectInputDateRenderer</renderer-class>
    </renderer>
    <renderer>
    <component-family>oracle.adf.Object</component-family>
    <renderer-type>oracle.adf.Separator</renderer-type>
    <renderer-class>oracle.adfinternal.view.faces.uinode.UINodeRendererBase</renderer-class>
    </renderer>
    <renderer>
    <component-family>oracle.adf.Command</component-family>
    <renderer-type>oracle.adf.Link</renderer-type>
    <renderer-class>oracle.adfinternal.view.faces.renderkit.core.xhtml.CommandLinkRenderer</renderer-class>
    </renderer>
    <renderer>
    <component-family>oracle.adf.Panel</component-family>
    <renderer-type>oracle.adf.Group</renderer-type>
    <renderer-class>oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelGroupRenderer</renderer-class>
    </renderer>
    </render-kit>

    Seems I need override the encodeSelectItem() method.
    But not sure which class is the renderer for af:selectManyCheckbox. And how to set below
    <component-family>???</component-family>
    <renderer-type>???</renderer-type>
    Edited by: Leon Zeng on Jul 19, 2012 2:18 PM

  • Customizing the Logo for xmlpserver in obiee 11g publisher.

    Hi Everyone,
    Can you guys suggest the steps to change the login logo for Publisher window?
    as per the oracle documentation I succeeded in Analytics UI customization.But this customization not reflecting in xmlpserver UI.
    Thanks
    Arvnd

    Hi Arvnd,
    The logos for BI Publisher are not in the same location then Answers and Dashboards.(s_oracle, sk_oracle)
    In your case the logo is:
    OracleBI\oc4j_bi\j2ee\home\applications\xmlpserver\xmlpserver\xdo\images\oracle.gif
    You can replace the image restart your application server and normaly you will see your new logo
    Regards
    Adil
    PS: Please don't forget to close the thread and assign points when your question is answered

  • Customizing the DataSource for my media player application

    Hi,
    I am trying to build a j2me player which is fed from a list of files (e.g. providing few mp3 files and having playing it as one continues stream).
    I understand that DataSource can be customized for such needs but I don't really know how to do that and I can't find good and simple explanation.
    Please let me know what are the steps, or point me to good source.
    Thank in advance

    Hello,
    I think that maybe there's nothing wrong with your jar. If you don't install jmf, it will not find the codecs.
    "Q: What is JMF Registry?
    JMF 2.1.1 maintains a registry of available plugins, package prefixes and other settings in a file called jmf.properties. This is a binary file and should only be modified using the provided JMFRegistry application. This application is a part of the JMF 2.1.1 jmf.jar file and can be run as "java JMFRegistry". It requires that you have Swing-1.1 in your CLASSPATH (or you can use JDK 1.2 or later). "
    I suppose JMF searchs for the codecs in the jmf.properties. If you don't want to install JMF, try to add only the jmf.properties to your classpath, or keep it in the same directory of your jar.
    Hope it helps.
    ANeto

  • How can I edit in the middle of the video for FLV component

    I have a video which my client wants me to cut in pieces. I see that I can set up starting and ending points in Media Encoder, i.e. cut out the part from beginning and end. Is there an option to cut out parts in the middle?
    I am familiar with After Effects but my client doesn't want to invest in this program. Are there any smaller/cheaper programs which allow more video editing that AME if AME indeed can not do it?
    Is there any other way to go about it?

    Remember that an flv file is an already compressed video file, so you do not want to re-render (run the compression process) again unless you really know what you are doing..... the quality will only degrade.
    Here is a FREE little utility that I use if I have to join several flvs together or slice one up into section. It does this all without re-rendering!
    http://download.cnet.com/Moyea-FLV-Editor-Lite/3000-2168_4-10912717.html
    But because it's free, you are not getting a full fledged digital video editing program, but it works GREAT for the limited job of joining multiple flvs or slicing up a single into multiple section... then saving each section as a separate file.
    Best wishes,
    Adninjastrator

  • Customizing the HTML for a Report from SQL Query

    Hello
    I have created a Report from a SQL query that outputs a list of items from a single table column. There are 65 rows returned by the report. I would like to display all the results on one page but the length of the list prevents this. Is there any way of presenting the results as multiple columns on the same page?
    ie
    Res1 Res2 Res3
    Res4 Res5 Res6
    or
    Res1 Res3 Res5
    Res2 Res4 Res6
    I thought about using a 3 column portlet region and attempting to customise the report displayed via each of the portlets but I would prefer to avoid this as it would require the development and maintenance of an additional template.
    Thanks
    Lisa

    Problem solved...
    I have used my SQL query as a cursor in a dynamic page and then used the cursor and htp.p statements to tabulate my results as per my requirements.
    Lisa

  • Scrollbar for the datatable

    Hello Friends,
    I need the scrollbar for datatable.
    I would like to explain my pbm with code.
    <h:form>
    <div style="overflow:auto;width:55%;height:45px;top:235px;left:219px;position:absolute;">
    <h:datatable>...</h:datatable>
    </div>
    </h:form>
    The above works fine but if the same is put in a panelgrid I get scrollbar anad table in a different locations and scrollbar doesnt scroll..ie
    <h:form>
    <h:panelGrid>
    <div style="overflow:auto;width:55%;height:45px;top:235px;left:219px;position:absolute;">
    <h:datatable>...</h:datatable>
    </div></h:panelGrid>
    </h:form>
    I wanted the datatable with scrollbar to be placed inside a panelgrid...
    can anyone help me out to get datatable with scrollbar.
    Thanks and Regards,
    Sonara.

    With all your help I got a scrollbar to work around the datatable just fine. But I got another problem now. Since I have the DIV tag's style's height and width fixed, when the number of rows in my table is less than I expected, I get a blank area below the table in the scroll area. This happens because you hardcode the DIV tag's width and height. Is there any way of avoiding this area that appears. Is a JSF scroll bar custom component my only option?

  • Update the scrollbars of a JScrollPane

    Hi,
    I have a component in a JScrollPane. But when it changes its preferredSize the scrollbars of JScrollPane aren't updated automatically.
    I've tried:
    myComponent.getParent().repaint(); // JViewPort
    myComponent.getParent().getParent().repaint(); // JScrollPaneneither had the desired effect :-(
    Can anybody help?
    Thanks!
    Greez
    Puce

    It worked with revalidate(), but thanks, it led me on the right path.
    But why isn't it called automatically as stated in the Javadoc of JComponent?
    A bug?
    - Puce

  • Update JScrollBar Extent when JScrollPane Component Changes Preferred Size

    Hi folks,
    I have an interesting, but concise problem that I've been working on for a few days but haven't had any luck.
    In Java 1.5 or Java6, I have a JScrollPane which contains a JPanel. The settings of the scrollbar (for example, the Extent [the width of the "thumb" or "slider" on the scrollbar]) are determined based on the dimension of the underlying contained component, in particular, the Preferred Size.
    My problem is this. The underlying component has a "zoom" capability, such that the actual size of the component can and does change (i.e., zooming out reduces its preferred size).
    Happily, the consequence of this design is that the "size" or extent of the scrollbar sliders/thumbs adjusts to give visual indication of the proportion of the current view (ViewPort View dimension) to the underlying component's dimension.
    The problem is, the scrollbar sliders do NOT automatically update their size in response to programatically changing the JScrollPane's contained component's PreferredSize. They WILL be updated if I RESIZE the parent JFrame manually.
    But for the life of me, I can't get those sliders to update programatically. I've tried repaint(), update, validate(), etc. on the JScrollPane but no luck.
    I've done a debug to get into the stack trace of the Sun code during run time, and there's a lot going on... there's a doLayout(), a reshape() (deprecated), firing various property changes, but I just can't seem to find a good hook into getting the scrollbar to update its internal Bounds model and repaint accordingly. Calling setBounds() on the JScrollPane I think would trigger it, however, looking at the code.. it seems to ignore firing property events and repainting of the bounds themselves didn't actually change (i.e. no action happens if the current dimension and specified dimension in the argument to setBounds() are the same).
    Any ideas here on how to this to get those sliders to update programatically with a new value for the extent?
    Thanks,
    --Mike                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Understood! It was my intention to give credit and now I'm happy to do so! I've now assigned the Duke Points. Minor usability issue, it was not obvious how to do this the first time (and I did poke around a little before I gave up earlier in the day, reverting to just assigning him the correct question). I've got it now though! Thanks again--definitely knocked out an issue I was having today and allowed me to move on to add'l development work today.
    All the best!
    --Mike                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to change the width for af:selectManyShuttle by skins

    i need to change the width for selectManyShuttle by skin i can do that by change the width for .AFFieldText but this method change the all select* and textfiled width,so i just want to change the width for selectManyShuttle component.
    and i hope to know how to change the header color for selectManyShuttle ,the default color for it is green.

    Thanks ,It is working
    Could you please tell me how to change the header text color for af:selectManyShuttle
    Regards
    Wish79

  • Problems resetting the model for a JTable

    Hello,
    My scenario sounds like this: from one separate thread I'm listening for users that log into the network. Those users have to be displayed in an interface that I chose to be a JTable.
    When a user/users are found the view is notified. It seems simple in principle.
    However, I receive from time to time some execeptions from the Event Dispatch Thread. The errors seem very very simple and intuitive but coming from a different thread I can't tell why they come. Another big problem is that those errors are indeterminate. I can't tell when or if they arise at all. Below is the code with the problems along with the exceptions.
    // reconstructing the model here from the peers ArrayList
    String[] columnNames = theTable.getColumnNames();          
    Object[][] data = new Object[peers.size()][columnNames.length];
    for (int i = 0; i < peers.size(); i++) {                    
         for (int j = 0; j < Constants.userColumns; j++) {
                   if (j == 0)
                        data[i][j] = peers.get(i);
                   else
                        data[i][j] = "";
    // resetting the model for my component; when I comment this part everything works ok
    theTable.setModel(new DefaultTableModel(data, columnNames) {
         private static final long serialVersionUID = 1L;
         public boolean isCellEditable(int row, int column) {
                     return false;
    Exception in thread "AWT-EventQueue-0" java.util.NoSuchElementException: Vector Enumeration
         at java.util.Vector$1.nextElement(Unknown Source)
         at javax.swing.plaf.basic.BasicTableUI.getPreferredSize(Unknown Source)
         at javax.swing.JComponent.getPreferredSize(Unknown Source)
         at javax.swing.JTable.getScrollableTracksViewportHeight(Unknown Source)
         at javax.swing.ScrollPaneLayout.layoutContainer(Unknown Source)
         at java.awt.Container.layout(Unknown Source)
         at java.awt.Container.doLayout(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validate(Unknown Source)
         at javax.swing.RepaintManager.validateInvalidComponents(Unknown Source)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)or sometimes I get:
    Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
         at java.util.Vector.elementAt(Unknown Source)
         at javax.swing.table.DefaultTableColumnModel.getColumn(Unknown Source)
         at javax.swing.JTable.convertColumnIndexToModel(Unknown Source)
         at javax.swing.JTable.isCellEditable(Unknown Source)
         at javax.swing.table.DefaultTableCellRenderer.getTableCellRendererComponent(Unknown Source)
         at javax.swing.JTable.prepareRenderer(Unknown Source)
         at javax.swing.plaf.basic.BasicTableUI.paintCell(Unknown Source)
         at javax.swing.plaf.basic.BasicTableUI.paintCells(Unknown Source)
         at javax.swing.plaf.basic.BasicTableUI.paint(Unknown Source)
         at javax.swing.plaf.ComponentUI.update(Unknown Source)
         at javax.swing.JComponent.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintToOffscreen(Unknown Source)
         at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
         at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
         at javax.swing.RepaintManager.paint(Unknown Source)
         at javax.swing.JComponent._paintImmediately(Unknown Source)
         at javax.swing.JComponent.paintImmediately(Unknown Source)
         at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
         at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
         at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source) It seems that the resetting part is the one that causes the errors to arise because when I comment it out everything works smooth so I'm guessing it might have to do with the layout manager(I tried to use several even without any LM and still nothing).
    Meanwhile I switched to JList and things are ok. Still I'm very curios why this is happening and how I could fix it.
    Any idea will be highly appreciated!
    Thank you,
    Ariel

    After wrapping setModel with SwingUtilities.invokeLater() (as Darryl sugested), it seems to work fine.
    I haven't received those random errors up to now (it's been two days). Hope they won't appear anymore.
    Thanks, Darryl.

  • 3rd party- SD cost in billing not carrying the price for vendor

    Hi all,
    in SD billing VF01(to customer),the cost for buying the material form vendor is prompted. The cost will take the price in the PO for vendor. Example there is 2 item. A -price 1, B - price 2. Both of the materials are being GR PO on the same date, but the invoice verification (MIRO) sometimes is posted partially- item A first, then item B.
    The problem is here, when the partial invoice verification is done, the cost in SD billing will only take price of item A while the qty is a summation of item A & B.
    Can anybody explain why is this happening and how can we avoid this..
    Thank you.

    hi
    i just want to know  what item catagory u assigned to sales doc, and in that item catagory, in billing relavance wchih valuve u maintained just chek (it should be 'F' order realted billing but quantity will pick form invoice(MIRO) )
    then when ever u do the billing to customer system will for only deliverd quantity and pick the cost form mat-master for that quantity only.
    if helps reward me
    kranthi

  • How do I address the scrollbar's updateDisplayList properties if I do not instatiate the scrollBar component?

    Is there an easier route?
    My issue is that I am not attaching the scrollbar via
    <mx:HScrollBar or mx:VScrollBar, rather it is being
    automatically attached to a container. Therefore my only means of
    addressing this particular scrollbar seems to be from within the
    condainer's script, and the container's properties do not make
    provision for it's child scrollBar's height/width.
    Is it a matter of re-writing the default scroll component?
    For example, I've skinned a scrollBar using the examples at
    Narciso Jaramillo's
    http://www.adobe.com/devnet/flex/articles/flex_skins.html
    (using Flash) but this article does not explain how to
    override the default scaling.
    Next I've applied the skins to the Adobe example,
    http://examples.adobe.com/flex2/inproduct/sdk/photoviewer/srcview/index.html
    within the ThumbnailView.mxml file there is a Vbox containing
    a HorizonalList container with the id of photoList , that when
    loaded, adds a HorizontalScrollBar, like this..
    <mx:HorizontalList id="photoList"
    dataProvider="{gallery.photos}"
    width="98%" height="135" selectedIndex="0"
    itemRenderer="Thumbnail"
    styleName="thumbnailList" />
    I understand that the scope of this matter may be small in
    comparison to other issues but as a designer these otherwise simple
    tasks are terribly frustrating and time consuming.
    I would appreciate any insight.
    Thank You,
    Key.

    First this forum is intended for questions about Flex
    Builder. Flex language questions should be posted in the Flex
    General Discussion forum.
    That is why you are not getting any response.
    There is a yahoo group called flexcomponents that is devoted
    to issues around customizing/extending/creating components. The
    folks that hang out there are top notch, give it a look.
    http://tech.groups.yahoo.com/group/flexcomponents/
    Tracy

  • Can I create a custom scrollbar for my spark datagrid

    Basically I'm trying to customize the look of my spark datagrid.
    I'd like to change the header appearance and I'd also like to create a custom scrollbar.
    If only Catalyst would implement a custom datagrid component. I mean the datagrid is a very popular component, isn't it?
    Thanks
    kristin

    You need the password for free apps as well as for paid apps. The only ways that you can control what your child downloads is for you to supervise while the downloading is taking place or by totally restricting download apps with restrictions.
    When you enter your password and download content, you have 15 more minutes to continue downloading before you have to enter the password again. So if you download and app - then give the iPad to your child - he or she can continue downloading apps or music or any content for the next 15 minutes without any restrictions. IF you sign out of your account, then the child can no longer download. IMHO - You should NOT give your password to your child. That really is not a good practice.
    You can set restrictions on the iPad so that the child cannot download any apps at all. Go to Settings>General>Restrictions>On. Then you will have to enter a passcode for the device which you do not want to forget (if you do, you have to restore the device) so if you do this remember your passcode. You can then go to the apps settings within the restrictions and Enable Restrictions and turn off Installing Apps.
    This article will provide more information for you.
    http://netsecurity.about.com/od/frequentlyaskedquestions/a/How-To-Setup-Parental -Controls-On-An-Ipad-Ipod-Touch-Or-Iphone.htm

Maybe you are looking for