1. Zoom in Java Swing application stackoverflow.comI am looking for ways to zoom in a Java Swing application. That means that I would like to resize all components in a given JPanel by a given factor as ... |
2. Most efficient way of implementing zoom in/out coderanch.com |
3. zoom in/out in java coderanch.comHi , I want to zoom in/out my panel which have components like textbox or lable or listbox or choice. |
4. Is there a better way of zooming coderanch.comDear Ranchers, The code below zooms OK but the cursor position and the object being moved quickly move out of sychronisation. Is there a better way of doing this. The value of the integer p comes from the user and then the canvas zooms up. public void zoomup(int p) { // This keeps the center of the component in place. cx ... |
5. Problem with zoom function coderanch.comHi, I'm trying to implement a zoom function for my application. I use a JComboBox in which the user sets the desired scaling. Before the drawing canvas is (re)painted in its paintComponent() function, i set the scale of the Graphics2D object to the scale set by the user (line 91 in the code below). Everything is drawn according to the scale ... |
6. zoom in-out in jLayered pane coderanch.comimport java.awt.*; import java.awt.geom.RoundRectangle2D; import java.util.Random; import javax.swing.JButton; import javax.swing.JLabel; /* import weka.core.converters.ConverterUtils.DataSource; import weka.core.Instance; import weka.core.Instances; import weka.clusterers.SpectralClusterer; /** * * @author Vaibhav */ class myCell extends Component{ /** * */ private static final long serialVersionUID = 1L; int X,Y; // RoundRectangle2D rect2; String Attribute_Name; int width; public myCell(Graphics g,String attrib,int x,int y) { Attribute_Name = attrib; X = x; ... |
7. zooming in swing forums.oracle.comI created a Jslider with certain values now I want those values to correspond and change my imageIcon size evertime i move it. THe icon is inserted into a JLabel and the JLabel inserted into a JPanel. anIcon.setImage(rightIcon.getImage().getScaledInstance(100, 100, 100)); Now I want those 100 values to change, for example private int getValue(){} to be replaced in there place. I know ... |