1. java gui changing picture causes heapspace error stackoverflow.comI have a java programme than when a button is clicked it updates the image on screen to the according image. this will work for the first 15 or so clicks ... |
2. path of an image in an eclipse project stackoverflow.comI'm trying to display two pictures on my JFrame, the way I found was to use icons and JLabels, this seems pretty straightforward and I'm not having problems with this. But ... |
3. How to go about saving images to disk at runtime stackoverflow.comI'm creating a basic program (in Java) for a class that helps students study using flashcards, notes, etc. I need a way to allow the user to upload a certain ... |
4. How to create a network picture Using Java stackoverflow.comA project that I am working on requires me to show the network layout when the user clicks on a button on a GUI panel “Show Network Layout�. Example: X is the ... |
5. putting picture in java program using MyEclipse GUI stackoverflow.comI want to add a picture to my GUI program created using Eclipse and MyEclipse (for GUI visual design) from the resource pictures I pasted earlier in the project. I managed to ... |
6. Zooming in on a picture? coderanch.comI am making a program which involves zooming in on a picture made out of an Image and several shapes drawn on using Graphics methods, where a JSlider is used to change the magnification, and the picture is on a JPanel subclass. I have written a zoom method, which works but is very slow and often causes the computer to run ... |
7. Picture not appearing coderanch.com |
8. How to get picture coderanch.com |
9. get different picture for different user coderanch.com |
10. PIcture Questions coderanch.com// ShowPicOffMyHD.java import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.swing.JFrame; import javax.swing.ImageIcon; import javax.swing.JLabel; public class ShowPicOffMyHD extends JFrame { public ShowPicOffMyHD (String picName) { super(picName); JLabel jImg = new JLabel(new ImageIcon (picName,"Pic")); getContentPane().add (jImg); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } }); pack(); } public static void main(String[] args) { if (args.length>0) { ShowPicOffMyHD picFrame = new ShowPicOffMyHD(args[0]); picFrame.setLocationRelativeTo(null); ... |
11. How to zoom in or zoom out a picture with swing? coderanch.comYou have to make it up on your own. import java.awt.*; import java.awt.event.*; import java.awt.geom.*; import java.awt.image.BufferedImage; import java.io.*; import java.net.*; import javax.imageio.ImageIO; import javax.swing.*; import javax.swing.event.*; public class ZoomTest { public static void main(String[] args) { ImagePanel panel = new ImagePanel(); ImageZoom zoom = new ImageZoom(panel); JFrame f = new JFrame(); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.getContentPane().add(zoom.getUIPanel(), "North"); f.getContentPane().add(new JScrollPane(panel)); f.setSize(400,400); f.setLocation(200,200); f.setVisible(true); } ... |
12. Moving a picture down a bit coderanch.comThis is what I have: http://www.imagedump.com/index.cgi?pick=setandget&tp=122498&poll_id=0&category_id=19&warned=y and this is what I want: http://www.imagedump.com/index.cgi?pick=setandget&tp=122499&poll_id=0&category_id=19&warned=y Here's my code: import java.awt.*; import java.awt.event.*; import javax.swing.*; public class HorseRacing extends JFrame { private ImageIcon logo1; private ImageIcon logo2; public HorseRacing() { super("Horse Racing"); //layout1 = new BorderLayout(5,5); Container container = getContentPane(); //container.setLayout( layout1 ); JTabbedPane tabbedPane = new JTabbedPane(); JLabel lblFinance = new JLabel( "panel ... |
13. adding a picture coderanch.comYou guys..please help me add a picture to this..an imagine....how do I do it??? import javax.swing.*; import java.awt.*; import java.awt.event.*; /** Simple demonstration of putting icons in buttons and labels. */ public class VendingMachineDemo extends JFrame implements ActionListener { public static final int WIDTH = 500; public static final int HEIGHT = 300; private JTextField message; public VendingMachineDemo( ) { setSize(WIDTH, ... |
14. Display picture in tooltip from memory coderanch.com |
15. Retrieving Picture Drawn coderanch.comHi all, I have a question to check with all of you... currently i am using swing to do my project that is why i am placing this question here. Below is some of the coordinates which i have save in a DAT file: X Value= 151 Y Value= 154 X Value= 155 Y Value= 151 X Value= 164 Y Value= ... |
16. How do I save a picture in database?? coderanch.com |
17. want to in built picture and digital signature in java coderanch.com |
18. picture coderanch.com |
19. Adding a picture coderanch.comsee if this gets you any closer import java.awt.*; import javax.swing.*; class Testing extends JFrame { public Testing() { setSize(800,600); setLocation(100,50); setDefaultCloseOperation(EXIT_ON_CLOSE); getContentPane().setLayout(new GridBagLayout()); GridBagConstraints gbc = new GridBagConstraints(); JPanel photo = new Photo(); gbc.weightx=0.5; gbc.weighty = 0.5;//<----------- gbc.gridx=2; gbc.gridy=2; gbc.gridheight=2; gbc.gridwidth=2; gbc.anchor = GridBagConstraints.SOUTHWEST;//<----------- getContentPane().add(photo,gbc); } public static void main(String[] args){new Testing().setVisible(true);} } class Photo extends JPanel { private String ... |
20. Zoom with wheel and cut picture coderanch.comHi! The following code should permitt to move a big picture (eg: 20 000 x 20 000 and 10 MO ) by drag and drop or with arrows of the keyboard, to zoom in and zoom out whith wheel of the mouse. there are some problems: _arrows zoom ! 8-| instead of move the picture (what I have made wrong?) _when ... |
21. How to draw a layer with some annotations over a big picture? coderanch.comHi I am looking for a way to load large image files (10 MB Jpeg files) and then place some annotations over the image file using a transparent layer or something like that. Basically I have the annotation with a coordinate in the picture which annotations should appear stored in a database, now I want to load the image and then ... |
22. Resizing a picture coderanch.comI am trying to resize a picture and scrollpane when a user imports an image into the program. However, when I call the setSize methods, the size of the image remains unchanged. I've tried using maximum size and minimum size, as well as calling revalidate methods, but the size of the picture remains the default size when the program begins. What ... |
23. retrieve picture database coderanch.comHi , I inserted a picture into oracle 8i database but I encountered a problem I do not know why the image does not appear in label. registration code: String name,path = null; FileInputStream input = null; JFileChooser fc= new JFileChooser(); int returnVal = fc.showOpenDialog(this); if (returnVal == JFileChooser.APPROVE_OPTION) { File file = fc.getSelectedFile(); //This is where a real application would ... |
24. Picture Matching Game java-forums.orgclass displayHandler implements ActionListener { public void actionPerformed(ActionEvent e) { for (int i = 0; i < cardButton.length; i++) { if (cardButton[i] == e.getSource()) { cardButton[i].setIcon(null); cardButton[i].setEnabled(false); counter++; if (counter == 3) { if (sameValues()) { cardButton[btnID[0]].setEnabled(false); cardButton[btnID[1]].setEnabled(false); } else { cardButton[btnID[0]].setEnabled(true); cardButton[btnID[0]].setIcon(null); cardButton[btnID[1]].setEnabled(true); cardButton[btnID[1]].setIcon(null); } counter = 1; } if (counter == 1) { btnID[0] = i; //btnValue[0] = gameList.get(i); ... |
25. How to create a network picture Using Java java-forums.orgHello All, A project that I am working on requires me to show the network layout when the user clicks on a button on a GUI panel Show Network. Example: X is the name of a sub-network and x1, x2, x3 are the connected devices. Similarly, Y is the name of a sub-network and y1, y2, y3 are the connected devices ... |
26. Picture help java-forums.orgHi I've been having a problem getting pictures to overlap eachother lets say i have 2 pictures 1 is the background, and the other is the person How do I place both pictures on the same spot while being able to see the person infront of the background?? At the moment I've been trying to put imageicons into a JLabel..but that ... |
27. How to show/resize picture in swing? forums.oracle.comI am trying to make simple application that can show a picture in jFrame. That was simple, as I just used icon property of label control. I put it into Scroll Pane and now I can easily view my picture and scroll it - obviously. Now I want to scale my picture to fit into the panel the Scroll Pane is ... |
28. GUI images (picture) forums.oracle.comso for my specific case, are you saying i save it in a subdir within Signinout, or within the "build" subrid inside Signinout (which is where the actual class files are) ? also this program is to be installed in another computer and im planning to do so by converting it into a jar, will the program have any trouble finding ... |