1. GridLayout in ScrolledForm not showing scrollBar stackoverflow.comI have components in a View and adding them in a ScrolledForm. But as soon as I use GridLayout, it is not showing the scroll Bars any of the sides. |
2. JScrollPanes scrollbars not showing up stackoverflow.comSo, I have a grid layout which stores JScrollPane's in each cell. These are also put into an array for other purposes. The "View" extends "JPanel" so it's just a regular ... |
3. positioning scrollbar coderanch.comHi I am tryng to position scrollbar at a particular position other than the default position. I designed an applet in which I have a scrollpane.. to that scrollpane I'm adding a panel that is child to the above said scrollpane. The problem I'm facing is the size of the child panel is around 1900. I want to place my scrollbar ... |
5. Layout ,scrollbar problem coderanch.com |
6. how to restore scrollbar position ???? coderanch.comHi All getToolPanel().setLayout(new FlowLayout(FlowLayout.LEFT)); getToolPanel().add(toolbar); getContentPane().removeAll(); getContentPane().setLayout(new BorderLayout()); scrollPane = new JScrollPane(container); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); getContentPane().add(scrollPane, BorderLayout.CENTER); scrollPane.getHorizontalScrollBar().setVisibleAmount(0); scrollPane.getHorizontalScrollBar().setValue(scrollPane.getHorizontalScrollBar().getMaximum()); scrollPane.getHorizontalScrollBar().setValue(mapModel.getHXValue()); log.debug("hx : " + mapModel.getHXValue()); log.debug("Horizontal : " + scrollPane.getHorizontalScrollBar().getValue()); scrollPane.getVerticalScrollBar().setValue(scrollPane.getVerticalScrollBar().getMaximum()); scrollPane.getVerticalScrollBar().setValue(mapModel.getVYValue()); pack(); log.debug("VY :" + mapModel.getVYValue()); log.debug("verti height :" + scrollPane.getVerticalScrollBar().getHeight()); log.debug("hori height :" + scrollPane.getHorizontalScrollBar().getHeight()); log.debug("hhh :" + scrollPane.getHorizontalScrollBar().getValue()); output : Hori : 383 hx : 383 2007-07-23 11:38:31,444 DEBUG ... |
7. Post Back Scrollbar Position coderanch.com |
8. add scrollbar in JFrame with null Layout java-forums.orgI am using following code to create a frame. I want to add scrollbar on it. jobConfFrame=new JFrame("Resource Configuration Panel"); jobConfFrame.setLocationRelativeTo(null); jobConfFrame.setDefaultCloseOperation(jobConfFrame .DISPOSE_ON_CLOSE); jobConfFrame.setSize(400,400); jobConfFrame.setResizable(false); jobConfFrame.setVisible(true); jobConfFrame.getContentPane().setLayout(null); I tried to add a scrollbar, but for some reason it was not visible on the frame (may be for the null layout). If you have any idea to solve the problem, please send ... |