1. Incorrect sizing of a JPanel in a JScrollPane In Java 1.5 stackoverflow.comI am making an image loading component which consists of a JPanel containing a JScrollPane, which in turn contains another JPanel. What this component does is allows images to be ... |
2. How to modify a JPanel's size inside a JScrollPane? stackoverflow.comI just can't get this right. I have a slider to increase my JPanel's size (used as a canvas to draw on). Whenever the JPanel receives the event, I resize it with ... |
3. Change side of a jScrollPane & change size stackoverflow.comI want to change the side of my |
4. JPanel expanded to JScrollPane size when smaller? stackoverflow.comSo I am trying to have a JPanel inside a JScrollPane, which is located directly inside a JFrame, resize so that it is sometimes smaller than the JScrollPane. Problem is that ... |
5. Trying to create a JPanel of fixed size in a JScrollPane forums.netbeans.orgHi, I'm trying to do a bit like Paint. Having a drawing pane of a fixed size and If I change the size of the application window to be smaller than the drawing pane, I want to have scrolling bars. I had the following settings for the JPanel: preferredSize, MinimumSize et MaximumSize = 800x600 When I try the layout below, the ... |
6. How to change the size of scrollbar coderanch.com |
7. How to change the size of scrollbar coderanch.comRose, What do you mean by "set the size"? Do you mean the way that the scrollbar looks? As the scrollpane gets taller/wider, the scrollbar gets longer in that direction... do you mean that you want the vertical scrollbar to appear wider/the horizontal scrollbar to appear taller? Or are you talking about wanting to set the min/max/increment values on the scrollbar? ... |
8. Size of JScrollPane in a JPanel coderanch.comHi, is it possible to have a jscrollpane with the same size of a panel in a frame? my scrollpane has a fixed size, but i want it to be as big as possible in my frame. how can i do that? i use gridbaglayout: gbConstraints.fill = GridBagConstraints.BOTH; gbConstraints.weightx = 1.0 ; gbConstraints.weighty = 1.0 ; gbConstraints.gridx = 0; gbConstraints.gridy = ... |
9. JScrollPane collapses after minimizing GUI coderanch.com |
10. Specific size requirements with scrollbar coderanch.comSounds like a Swing question to me, but at any rate my idea would be to always show the horizontal scrollbar. Not only would this solve your problem, it would also prevent your component from suddenly resizing itself and possibly causing the entire layout to resize itself. (I am not a fan of "twitchy" Swing designs where component sizes change all ... |
11. Setting ScrollPane size coderanch.comI don't know if this belongs here or under Other API's. Sorry if this is the wrong forum. I am learing JAI right now. That is the purpose of the following code. Please ignore the fact that I am turning something into a ByteArraySeekableStream when I really don't have to. I did that to see what to expect when my server ... |
12. (J)ScrollPane trouble : I want to have scroll bars while the size of image get too large coderanch.comHello every one I just wrote a program to excercise use of some GUI components and Graphics context... here is the SSCCE : public PortrateFrame() { super("Essi's Portrate !!!"); p = new SelfPortrate(); // a class draws the image initControlPanel(); main = new JPanel(new BorderLayout(0,20)); Canvas = new Canvas() ; // an inner class in this class,extended from JPanel,just to use ... |
13. Manually sizing JScrollPane coderanch.comOk thanks Darryl, Heres an example of what I'm talking about import javax.swing.*; import javax.swing.event.*; import javax.swing.table.*; import javax.swing.text.*; import java.awt.*; import java.awt.event.*; import java.util.*; import java.applet.*; import java.net.*; import java.io.*; public class TestApplet2 extends JApplet { private JPanel textPanel; private JPanel scrollPanel; private JTextPane textPane; private JScrollPane scrollPane; private String sampleText = "Sample Text. Sample Text. Sample Text. Sample Text. ... |
14. wrong size of JScrollPane java-forums.orgI copied your code into a test app to see what it would do. I'm unable to replicate the trouble you are describing. Maybe you can modify this to illustrate the problem. Java Code: import java.awt.*; import javax.swing.*; import javax.swing.border.EtchedBorder; public class TableSize { private JPanel getContentPane() { JPanel panel = new JPanel(new BorderLayout()); panel.setOpaque(true); JPanel topPadding = new JPanel(); topPadding.setPreferredSize(new ... |
15. Problem with JScrollPane/client sizing java-forums.orgHello. This is a (VERY) simplified version of a Map Editor that i am trying to create. However i am having problem with using a JScrollPane to allow you to create maps that are actually larger than the screen. basically, i use mouse events to register where the user clicks (and/or drags/releases) to get position/sizing info and change/create an entity (interactive ... |
16. Changing JTableModel does not change JScrollpane size java-forums.orgI basically want to let the user filter data within a table and change row colors accordingly. The data for my table is held within the table model. Table rows should be colored white or gray. Looking only at a certain column, if the cell's value of the current row is incremented by 1 compared to the previous one the color ... |