jscrollpane

Wrong JTableHeader component orientation with RIGHT_TO_LEFT + AUTO_RESIZE_OFF in JScrollPane

Using Swing on Java 6u16, WinXP SP3 Hello to all. I need some help, please, with the following case. Basically I use a JTable inside a JScrollPane, that on the scrollPane I apply component orientation of right-to-left. The final result that I get is such that the table is indeed is attached to the right, but the header is placed to the ...

Jscrollpane and wordpress - why won't they work together for me?

I try to impliment the jScrollPane in to a wordpressblogg, so I can make the content be contained in a nice scroll-area that fits my design, the key thing is that I want to style the scrollbar also. I've tried following the instruction given her with the change that I try to use the Jquery library implimented (I call directly to Jquery i...

Initializing a Java Swing JScrollPane to the bottom

I am trying to initialize a JScrollPane to start life at the bottom. I do not want it to scroll automatically after it is initially shown. The scroll pane does not contain a subclass of JTextComponent, but rather a JPanel(GridLayout(0, 1)) containing many JPanels. I tried using JViewport.scrollRectToVisible() inside an event handler on ...

JScrollPane in a popup window does not scroll up programmatically

I have a popup menu that displays dynamically created custom JPanel objects in a JPanel in a JScrollPane. The popup menu displays recommendations to the user and the topmost element is the most relevant recommendation. I am using JPopupMenu to display the window: JPanelTemplatePopup jptep = new JPanelTemplatePopup(); JPopupMenu popup = ...

Java: getting the absolute position of the mouse in a JPanel given the coordinate the user clicked on.

For example, suppose I have a drawing in a JPanel subclass with JScrollPanes, and I want to capture the points the user clicks on. Suppose, for example, the drawing area inside the JPanel goes from 0 to 10000, while the screen size isn't known a priori. Given the mouse coordinates in the click event thing, is it possible to determine whe...

Java: Multiple JScrollPanes show view on 1 common component

Hi, how (if at all) can I make multiple JScrollPanes have different views on 1 common component (a JTable in this case). Every time I set the viewport of a scrollpane, the previous scrollpane's view disappears... Cheers, Max ...

Java Swing - ImageIcon in Jtable within a JScrollPane

I have a JTable inside a JScrollPane. In one of the columns in the JTable, I have ImageIcons being displayed. Everything works fine, however, I have that in windows XP, when you scroll the rendering messes up and images become distorted. This only happens when you scroll. Screenshot: http://i.imgur.com/NKqYT.png Any help much apprecia...

Java - Transparent JScrollPane

I have a JTextArea and it's riding ontop of a JScrollPane. Anyways, I know I can use the getViewPort() method to set the opaque of of the view port... but I cannot seem to find any sign of how to do that... anywhere. :S Here is what I have so far: if (e.getKeyCode() == KeyEvent.VK_F) { if (sp.isVisible()) { sp.setVisib...

Problem while scrolling a JScrollPane - Threads

Hello, The situation is like this: Upon clicking on a menu item, some components are added to a JScrollPane, the components are resized, then setVisible method of JScrollPane is called. Resizing of components are out of my control. (TextAreas getting resized according to their contents. Caret updates are disabled.) I want to scroll th...

JTextArea in JScrollPane, view coordinate translation

I'm trying to translate between view and viewport coordinates. But the JViewport/JScrollpane doesn't seem to work as documented. JViewport.toViewCoordinates() thinks the view is always at the top left of the component, even though that's clearly not the case. String text = "blahblahblah\nblahblah\nblah"; JFrame frame = new JFrame("titl...

java scrollpane with flowlayout

For some reason, I cannot this working. It should be simple really. I've having a JFrame with a BorderLayout, which contains a JPanel (SOUTH) and a (CENTER) JPanel (itemPanel). itemPanel should be wrapped in a scrollpane. Its width = x, and all of its children shares its length, so it basically works like a table with only 1 column. ...

When first time enter the arrangement of items is OK, but if I refresh it it will screw up

Please refer to * When first time enter the arrangement of items is OK(three items as a row), but if I refresh it it will screw up Can someone point me any direction ? Thanks in advance ! Edit: Is there any differences between refresh and using the link to enter ? Edit: This problem only happen in Chrome browser ...

How do I incorporate jScrollPane into a Wordpress PHP header file?

Can anyone give me a hand? This is for a charity event and coding clearly isn't my day job. The site is www.gingertown.org/wp I don't understand where to put this line: $(function() { $('.scroll-pane').jScrollPane(); }); I also have a feeling I'm not calling the js correctly. From digging into wordpress I modified my file to loo...

Why does jScrollPane work in every 'modern' browser except IE8?

I have put in the new jScrollPane, and I've gotten my scrollbars to work on every browser except IE8! Same thing happened with the old version as well. I keep getting this error: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0) Timestamp: Wed, 22 Sep 2010 14:14:38 UTC Message: Invalid ...

Jquery JscrollPane Only formatting vertical scrollbar on pane1

I have a multi-tabbed ppanels whose content contains details that need scrolling. I have it all working with the ugly standard vertical scrollbar. But when I try jScrollPane the first panel is formatted, but all the other panels stay as the standard scrollbar, with a Invalid Argument Error. If i only use 1 Panel I do not get the Invlaid...

jscrollpane plugin seems to remove DIV from the DOM.

I've seen this same issue posted in this forum as well as others ... unfortunately none of the responses in those places has helped me. So I broach the subject yet again ... On my test site hompepage (http://www.crucean.com/testSite/index.html), I have a DIV with the ID #bodyText ... when jscrollpane is called on this DIV, it has an eff...

Issue with jScrollPane, updating from v1 to v2?

Hello there, I have recently bugged Kelvin Luck about an issue I was having with v1 and the scoller not loading due to images appearing after the scroller had initialised: 'scrollpane contains images and needs to reinitialise after the images have loaded'. After upgrading to v2 the scroller disappeared: http://sugarhut.janddmedia.com/t...

resize child panel when resizing parent JFrame

I have a JFrame which contains a JPanel. The frame can be resized by the user using the mouse. When the width of the frame is > 400, the jpanel inside's width is set to 10; otherwise 1080. In between the frame and the panel, there is also a JScrollBar. Here is my code: import java.awt.BorderLayout; import java.awt.Color; import java.a...

JScrollPane always clears my Panel

Hy.. I have a JPanel, and in this contentPanel I added some other custom panels and give them locations etc. So now I added a JScrollPane to the contentPanel and always when I scroll down it clears my contentPanel, but the panels are still there but not visible... How can I make them visible again? That's my code to add the Panel into ...

jscrollpane in a jpanel

i want to have a scrollpane inside a panel which the scrollpane cover the whole panel. how can i do that? ...