Adding graphics to a Panel

Hi there! i'd like to create an application where it would look like this:
===============
| O |
|______________|
| O O O |
|______________|
Where each frame would be a panel, and "O" an oval graphics. So the panel would have a height, widthd....
color....
And on each panel I would like to add an Oval, on a specific position (x,y). Is this possible? Can I add an actionListener for each oval object?
Thanks

You said application yet we are in an applet forum, so I chose applet.
This is one way to build what you are asking for. The mouse listener code can be used as you would use an action listener on components.
//  <applet code="CustomPainting" width="410" height="420"></applet>
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.*;
import java.util.*;
import java.util.List;
import javax.swing.*;
public class CustomPainting extends JApplet
    public void init()
        CustomPanel topPanel = new CustomPanel(Color.orange);
        topPanel.addOval(40,40);
        CustomPanel lowPanel = new CustomPanel(Color.cyan);
        lowPanel.addOval(40,40);
        lowPanel.addOval(80,40);
        lowPanel.addOval(120,40);
        Container cp = getContentPane();
        cp.setLayout(new GridBagLayout());
        GridBagConstraints gbc = new GridBagConstraints();
        gbc.insets = new Insets(5,5,5,5);
        gbc.gridwidth = gbc.REMAINDER;
        cp.add(topPanel, gbc);
        cp.add(lowPanel, gbc);
    private class CustomPanel extends JPanel
        List ovalList;
        Shape selectedOval;
        int width, height, dia;
        public CustomPanel(Color color)
            ovalList = new ArrayList();
            dia = 25;
            setBackground(color);
            setPreferredSize(new Dimension(400,200));
            addMouseListener(new OvalSelector());
        public void paintComponent(Graphics g)
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            width = getWidth();
            height = getHeight();
            Shape s;
            for(int i = 0; i < ovalList.size(); i++)
                s = (Shape)ovalList.get(i);
                g2.draw(s);
        private class OvalSelector extends MouseAdapter
            public void mousePressed(MouseEvent e)
                Point p = e.getPoint();
                for(int i = 0; i < ovalList.size(); i++)
                    selectedOval = (Shape)ovalList.get(i);
                    if(selectedOval.contains(p))
                        System.out.println("selectedOval index = " + i);
                        break;
        public void addOval(int x, int y)
            Shape s = new Ellipse2D.Double(x, y, dia, dia);
            ovalList.add(s);
            repaint();
}

Similar Messages

  • An alert messarge i don't underdant: insane object at BDHP + 83ACC in "VI name's":{graphics} (0x80):Front Panel Terminal (Term)

    Hello!
    I don't know why in just yesterday appear in one of my VI an alert message or error message when i want to close oer save the VI.
    The message is like the following one:
    Insane object at BDHP + 93ACC in "Vi name's": {graphics} (0x80}: Front Panel Terminal   (Term)
    I don't know why now it appears this message because i have no modify the Vi.
    I want to ask you why it appears this message and the most important......how can i solve it?
    Thank you very much
    Larson

    Hi!!! I copy and paste from an NI engineer post asking about what is the "insane object" problem:
    This message means that an object in LabVIEW such as a wire or a loop tunnel does not pass an internal test known as a sanity check. If the errors are serious enough, LabVIEW exits because something has become very corrupted. Sanity checks occur before each save, to ensure that corrupted VIs are not written over good VIs. They also happen as part of the compile process. Thus, sanity checks happen frequently. Many insanities are actually fixed (made sane) after the dialog box appears and will not appear again, so the first thing you should do after receiving an insane object error is to try to make a backup copy of the VI, run it, and perform some additional editing to see if the problem was resolved automatically.
    VI corruptions do not happen often. They can happen because of disk corruption, but this will often lead to a file that can no longer be loaded. Corruptions can also happen because the programmer did something that corrupts a LabVIEW data type, perhaps as the result of a call to external code. The following are examples of insane object errors:
    Insane Object at BDHP+4D50 in 'sksks.vi': (graphics) (0x80):wire segment (WIRE)
    Insane Object at BDHP+5CA0 in "CAPL3.vi": (graphics) (0x80):loop tunnel (DCO)
    In the first example above, the error message itself gives information about which object is insane. BDHP means the offending object exists on the block diagram heap, as opposed to the FPHP for front panel heap. The +4D50 is the hex offset in the heap where the object is located. The "Wire Segment" text indicates that the object is a wire object. The "graphics" text indicates that the insanity is graphics-related, which means it is not serious and will most likely be repaired automatically.
    The second message above is similar, but refers to a loop tunnel (i.e., the tunnel formed where a wire crosses the edge of a loop) rather than a wire.
    Solution: If you receive an insane object message, it is best to delete and recreate the most recently created objects on either the front panel or block diagram, depending on whether the error message contains "FPHP" or "BDHP". Make use of the text in the error message in deciding which objects to rebuild. In the case of the second message above, it would be best to delete and recreate the most recently created loop tunnels.
    Another workaround that works best if the VI is small is to select the entire diagram and copy it to a new VI. After saving the new VI, there is a good chance the insane object error will no longer appear. If the VI is too large to cut and paste to a new VI and another computer with an identical version of LabVIEW is available, you can copy the VI to disk (or to your network if that is available) and open it on the second machine. If the insane object errors do not appear, save the VI (on the second machine) and transfer it back to the original PC (by disk or by network). The new, uncorrupted version of the VI should now run without generating the insane object error.
    Hope that helps you,
    Jaime
    Regards,
    Jaime Cabrera
    NI Applications Engineering Spain

  • The graphic HTML signature panel does not appear in my Mac mail

    The graphic HTML signature panel does not appear in my Mac mail. I have inserted the signature after reading on the forum. But the images do not download - the rest of the text in the signature is in place - just the logo and the baseline which is a graphic file does not download.  Please help.

    Hi, are the pics at a remote location, or on your Mac?
    Have you tried drag & dropping the graphics on the signature window?

  • Intel Graphics & Media Control Panel

    Hi,
    please how to cancel automatic start "INTEL Windows 7's Intel Graphics & Media Control Panel" after reboot?
    Thanks
    MS
    Lenovo 410i, W7
    Link to picture
    Moderator note; picture(s) totalling >50K converted to link(s) Forum Rules

    Hi,
    Just download the Intel Video driver from Lenovo and resinatall. It won't bother again.
    I write a blog for you on this issue. Lenovo provides an official explain in the reference section of my post.
    http://amigotechnotes.wordpress.com/2013/11/09/stop-launching-intel-graphic-and-media-control-panel-...
    Wish it helps!
    Best regards,
    Amgo

  • Windows 7 Control Panel Display and Intel Graphics Media Control Panel Constantly

    I have a Nvidia NVS 5200 M running with Intel 4000 and Windows 7 on a Lenovo T430S.
    Whenever I load the Control Panel -> Display settings, I can see options just fine, but I click on any of the drop down menus and they appear for a second, then immediately disappear (fast enough that I can't change settings).
    There's a similar problem when I look in the Intel Graphics Media Control Panel. It constantly appears to be "loading" - the mouse icon turns into a little blue circle off an on, continuously. Similar thing with the settings, too - they appear and let me change them, but immediately return to the original setting. I can change them if I act SUPER quickly to make the change then click Apply. But 99/100 I'm not fast enough.
    All drivers are up to date. I have no idea what to do (reinstall or uninstall this Intel Graphics control panel? How? Or somehow change a setting on my graphics card).
    Please help!

    Try uninstalling both drivers, then reinstalling them. Sometimes a clean driver update works better.
    W520: i7-2720QM, Q2000M at 1080/688/1376, 21GB RAM, 500GB + 750GB HDD, FHD screen
    X61T: L7500, 3GB RAM, 500GB HDD, XGA screen, Ultrabase
    Y3P: 5Y70, 8GB RAM, 256GB SSD, QHD+ screen

  • HD Video Youtube Adding Graphics

    Hi everyone,
    Again I will award you with 10000 karma points for your help on this one!
    I have been filming in ADHD and have recently added graphics - while I love the look of the video the file size is - you guessed it - MASSIVE... and the graphics when played back on HD format are a little scratchy and bumpy. So what I am thinking is to convert the HD video into Youtube format and THEN add the graphics to the video -- however... I would like to know if ANYONE out there knows the size in pixles that my video background (graphic) should be to blend with the newly converted YouTube format?
    Again Karma points people
    Thanks!

    Ummm Hi John,
    I still dont understand what was written on that link that you sent me - I just want to know what the pixle size of a frame is for a video that has been exported from HD into YouTube settings? Forget my ignorance I am completely and utterly new to Premiere Pro and honestly value the patience that you guys have with me on these forums. Any help would be greatly appreciated. Or if there is another way to do what I want to do then please contact me or reply here. I basically want the video to be in a smaller format (Ideally for YouTube) and then want to add graphic to the video so that both the graphics and the video play back smoothly.
    - Again thank you all soooooooo much for your time and attention
    Marketsurfer

  • Need help with adding graphics to NSTextView

    I am looking for information on adding graphics to NSTextView so that the graphic is linked to a point in the text and will move with it as the window is resized. I understand that a subclass of NSTextContainer is needed to define the line lengths, etc. for NSLayoutManager. What I cannot figure out is how to know what text is being processed when the message to specify line positions is received by the subclass.
    What I really need is a sample program that shows how to link a graphic to the text.

    I did that bad it's not there and doesn't give me to option to click on it

  • Printed front panel graphics quality (Print Panel to Printer method vs. Append Front Panel Image to Report.vi)

    LV 6.02 (or 6.1)
    NT 4.0
    I have a vi that the front panel includes all the information I need to print except that it is on different pages of a tab control to conserve screen space. I was attempting to programatically cycle the value of the tab control in a For loop and invoke the Print Panel to Printer method to print 7 pages of the front panel, each with a different tab page selected. The printouts were excellent quality but beginning with the second consecutive Print Panel to Printer method the on screen front panel image of the VI being printed would become jumbled (sometimes, by the time 7 printings were done, the entire front panel image would disappe
    ar and a bitmap of the desktop or underlying windows would be visible in the VI's panel frame) yet the subsequent Print Panel to Printer methods continued to print the panel as they should appear. The visible front panel graphics would never return to normal and the only solution was to close the vi (in the dev system) or exe (compiled) and re-launch. I tried a lot of things (like hiding the panel to print before printing and showing it after printing) with no luck. It appears that two or more of these consecutive invoke methods caused the problem regardless of whether the tabs were cycling, or even if there was no tab control and much fewer controls on the panel to be printed than normal. I also had the same problem with LV 6.1.
    Finally, I was forced to switch to the report generation toolkit vi's, I cycle through the tab pages and use the Append Front Panel Image to Report.vi to append each image to the report. This is faster and control returns to my program quicker but I a
    m unhappy with the printed quality of the graphics of the front panels. They are not as high of resolution as those generated via the Print Panel to Printer method.
    Any suggestions?

    You might try changing the way the VI is printed by going to tools >> options >> printing. Try the postscript and bitmap settings.
    Jeremy

  • Custom painting/ graphics in a panel

    Ten Duke Dollars for whoever gives the best high level solution for my problem.
    I'm writing a small application that displays music notation on screen and lets the user move the notes vertically to the desired locations on the staves. The user can then do various kinds of analysis on each example. The analysis stuff is done, but I'm having trouble finding an approach that will work for the graphics.
    My basic approach so far is to subclass JPanel and use it to handle all the custom painting. I'm planning to add all needed JPEG's to JLabels. Some of the images (e.g. treble and bass clef images) will always be in a fixed location, while others (note images) will move vertically when the user drags them. For the lines on the staves and the measure lines, I'm planning to use g.drawLine.
    The following questions occur to me:
    1. How will I prevent the note images from hiding the lines? Will I need to make the images transparent GIFs or something? Or can I set some layering property in the JPanel to build up a layered drawing?
    2. to detect mouse events, should I attach mouse listeners to my panel, or to each label that contains a note image? (I considered using Ellipse objects for the note heads and lines for the stems, but this will not give me a high enough quality of image.)
    3. I will probably need to use absolute positioning in the panel class rather than FlowLayout or whatever, but I'm having trouble getting rid of the layout manager. Can you give me a few lines of code to do this?
    4. Is my overall approach correct? Is there a better, easier way to accomplish what I'm trying to do?
    thanks,
    Eric

    >
    The following questions occur to me:
    1. How will I prevent the note images from hiding the
    lines? Will I need to make the images transparent GIFs
    or something? Or can I set some layering property in
    the JPanel to build up a layered drawing?If you are going to use images (probably BufferedImages), their Transparency will probably be BITMASK or TRANSLUSCENT.
    2. to detect mouse events, should I attach mouse
    listeners to my panel, or to each label that contains
    a note image? (I considered using Ellipse objects for
    the note heads and lines for the stems, but this will
    not give me a high enough quality of image.)I don't think using JLabel objects is a good idea. Instead of add labels to a panel, I would define a custom JComponent that did its own painting in paintComponent.
    >
    3. I will probably need to use absolute positioning in
    the panel class rather than FlowLayout or whatever,
    but I'm having trouble getting rid of the layout
    manager. Can you give me a few lines of code to do
    this?If you follow my last comment, your component isn't being used as a container, so this is not relevant.
    >
    4. Is my overall approach correct? Is there a better,
    easier way to accomplish what I'm trying to do?
    thanks,
    EricCheck out forum Java 2D. That's where this topic belongs. You also need to learn the 2D API. Search for some text book references in that forum.
    From the Imipolex G keyboard of...
    Lazlo Jamf

  • Drawing Graphics in AWT panel

    I was wondering if anybody knows how I would go about drawing onto a Panel as a result of an actionPerformed() call. I got the original code for displaying an image onto the Panel from aresICO on this forum and now I need to be able to click a button on the GUI and have something drawn onto that Panel.
    import java.applet.*;
    import java.awt.*;
    import java.awt.image.ImageObserver;
    public class iPane extends Panel {
         Image im;
         boolean loaded = false;
         public iPane () {
              Toolkit tk = Toolkit.getDefaultToolkit ();
              im = tk.getImage ("Map of Dublin.jpg");
              prepareImage (im, -1, -1, this);
         public void paint (Graphics g) {
              if (loaded)
              g.drawImage (im, 20, 20, this);
         public void update (Graphics g) {
              paint (g);
              // if proper values loaded then:
              //drawRoute (g);
         public void drawRoute (Graphics g) {
              g.setColor(Color.red);
              g.drawLine(273,51,334,61);
              // method takes in values from a file etc.
         public synchronized boolean imageUpdate (Image image, int infoFlags,int x, int y, int width, int height) {
              if ((infoFlags & ImageObserver.ALLBITS) != 0) {
                   loaded = true;
                   repaint();
                   return false;
              else {
                   return true;
         public Dimension getPreferredSize() {
              return new Dimension(im.getWidth(this),im.getHeight(this));
         public Dimension getMinimumSize() {
              return getPreferredSize();
    }; // end iPane class
    This is a the relevant part of the class which uses an iPane object:
    iPane mapPanel;
    public void actionPerformed(ActionEvent e)
         String buttonLabel = e.getActionCommand();
         if (e.getSource() instanceof Button)
              if (buttonLabel.equals("Get Directions"))     
    // What goes in here to draw a line for example?
    // How do I call a method from iPane to draw something?
    Thanks.

    Davey,
    I don't think your approach is correct. The golden rule of Java graphics is that ALL of painting on a component should be done within the componen'ts paint method(). If you write to iPane from outside the class, then if your iPanel needs to be repainted (because, for example, it got obscured by another window and then unobscured) then the route would not be shown.
    You have to think OOD on this.
    The route and the image are properties of the of iPanel. The button push requests a change of those properties and display of the results on the screen.
    This is what I would do:
    1. Create member variables in the class iPanel that define the route.
    2. Have a method which sets those variables. This method should call repaint after setting the variables.
    2. Maybe have another boolean which says whether the routine is to be displayed or not. This method should call repaint after setting the boolean.
    3. Change the paint method to draw the route, if required.
    4. In the class that uses iPanel, simply call the methods in iPanel that set the route properties.
    5. Change your class name to IPanel. All class names should start with an upper case letter.
    e.g.,
    private Point start;
    private Point end;
    private boolean displayRoute
    public setRoute(Point newStart, Point newEnd) {
    start = newStart;
    end = newEnd;
    repaint(); // maybe only call if new value is different
    public void setDisplayRoute(boolean value) {
    displayRoute = value;
    repaint(); // maybe only call if new value is different
    public void paint(Graphics g) {
    g.drawImage( ..... blah
    if (displayRoute) {
    g.drawline ( .... blah
    // Then
    onActionPerformed
    iPanel.setRoute(new Point(1,2), new Point(3,4));

  • Adding objects into query Panel and no display report

    Hi Folks,
    I had an issue with WEBI .
    Iam running the report with few objects at first time , all objects are displayed in the  table format of report.
    I saved and closed the report .
    Later  i opened the report and edited the report by adding new objects into query panel and runing it.
    but this time  i did not find the new objects in display table in report as like DeskI.
    If we find the solution for this , it will be great help to me.
    Thanks
    Mahesh

    The objects will be in the data tab. Objects are not automatically added to your report in Webi, they are made available in the data panel, and you can choose which objects to add.

  • Adding an additional accorion panel

    I am using the following style sheet code for this page: http://www.vintagetextile.com/brides.htm
    .Accordion { width: 600px;
    margin-right: auto;
    margin-left: auto;}
    .Accordion35 { width: 350px;
    margin-right: auto;
    margin-left: auto;}
    I have added the .Accordion35 rule because I wished to add a 3rd accordion panel below the first two, which use .jpgs that are 600 pixels wide.
    The 3rd accordion panel uses .jpgs that are 350 pixels wide X 550 pixels high.
    However, DW 5.5 ignores the .Accordion35 rule and creates a 3rd accordion panel that is 600 pixels wide, so that the .jpgs in the 3rd panel have 250 pixels of white space to their right in the accordion panel.
    Here is the relevant html code:
    <div id="Accordion2" class="Accordion" tabindex="0">
      <div class="AccordionPanel">
         <div class="AccordionPanelTab">The wedding portrait</div>
      <div class="AccordionPanelContent"><img src="images/Wedding/emily3.jpg" alt="wedding portrait" width="600" height="480"></div></div>
       <div class="AccordionPanel">
         <div class="AccordionPanelTab">Holding hands</div>
      <div class="AccordionPanelContent"><img src="images/Wedding/emily2.jpg" alt="holding hands" width="600" height="480"></div></div>
       <div class="AccordionPanel">
         <div class="AccordionPanelTab">Cutting the cake</div>
    <div class="AccordionPanelContent"><img src="images/Wedding/emily.jpg" alt="cutting the cake" width="600" height="480"></div></div></div>
    <div id="Accordion3" class="Accordion35" tabindex="0">
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Heirloom Gown</div>
        <div class="AccordionPanelContent"><img src="images/Wedding/amandagreb2.jpg" width="350" height="550" alt="heirloom gown"> </div></div>
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Label 2</div>
        <div class="AccordionPanelContent">Content 2</div>
      </div>
    </div>
    <p> </p>
    <div id="bronze-bottom"></div>
            <div id="cat-bottom">
              <a href="early.htm">Early</a>  :
               <a href="victorian.htm">Victorian</a>  : 
              <a href="edwardian.htm">Edwardian</a>  :
             <a href="1920s_to_1930s.htm">1920s to 1930s</a>
            :  <a href="1940s_to_designer.htm">1940s to Designer</a>  : 
               <a href="shawlstext.htm">Shawls/Textiles</a>  :          
             <a href="gallery.htm">Gallery</a>  :
            <a href="treasure_hunt.htm">Treasure Hunt</a>  :
              <a href="articles.htm" class="herelink">Articles</a>  : 
              <a href="order.htm">To Order</a>  :       
       <a href="mailto:[email protected]">Email</a>  :  <a href="index.html">Home</a></div>        
    <script type="text/javascript">
    <!--
    var Accordion1 = new Spry.Widget.Accordion("Accordion1");
    var Accordion2 = new Spry.Widget.Accordion("Accordion2");
    var Accordion3 = new Spry.Widget.Accordion("Accordion3");
    //-->
    </script>
    </body></html>
    I suspect that the problem may have something to do with the fact that "spryaccordion.css" (referenced in every .htm page that has an accordion panel) contains this code:
    .Accordion { border-left: solid 1px gray; border-right: solid 1px black; border-bottom: solid 1px gray; overflow: hidden; width: 600px;
    I tried inserting into the "spryaccordion.css" file a rule for .Accordon35 but that did not help.

    Why don't you just add the following to your css:
    #Accordion1, #Accordion2 {
    width: 600px;
    #Accordion3 {
    width: 350px;
    Then delete the width from the following:
    .Accordion {
    border-left: solid 1px gray;
    border-right: solid 1px black;
    border-bottom: solid 1px gray;
    overflow: hidden;
    .AccordionPanelContent {
        overflow: auto;
        margin: 0px;
        padding: 0px;

  • Adding scrollbars to a panel containing a buffered image

    Frame Class:
    package HeatMap;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.GridBagLayout;
    import java.awt.image.BufferedImage;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.ScrollPaneConstants;
    import javax.swing.SwingUtilities;
    class HeatMapFrame extends JFrame
         BufferedImage img;
         HeatMapFrame(BufferedImage img)
              super("Gene Expression Profile Heatmap");
              this.img = img;
              HeatMapPane mapPanel = new HeatMapPane(img);
              JScrollPane scrollPane = new JScrollPane(mapPanel, ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,   
                                              ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS );   
              scrollPane.setPreferredSize(new Dimension(640,480));
              add(scrollPane,BorderLayout.CENTER);
              setSize(640,480);
              setLocation(getWidth()/4,getHeight()/4);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              setVisible(true);
    Panel Class:
    package HeatMap;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.geom.AffineTransform;
    import java.awt.image.BufferedImage;
    import javax.swing.JPanel;
    public class HeatMapPane extends JPanel
         BufferedImage img;
         HeatMapPane(BufferedImage img)
              this.img = img;
              //setSize(640,480);
         protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            // Draw image centered.
            //int x = (getWidth() - img.getWidth())/2;
            //int y = (getHeight() - img.getHeight())/2;
            g.drawImage(img, 0, 0, this);
    }I`m drawing the BufferedImage to a JPanel and addig the JPanel to a JScrollPane. The problem is that the scrollbars are visible but not active. Scrolling is not working. Can somebody tell me why? Thanks for any advice.

    Since your HeatMapPane does not declare a preferred size, I'm guessing(1) it is assigned a size of 0x0.
    1) I would do more than guess, if you had posted an SSCCE. For an SSCCE to do with images, you might hot-link to some of the images available at my [media page|http://pscode.org/media/#image], or generate an image within the source.

  • Flash Slide show--adding graphics over multiple slides

    I'm new to Flash--I'm trying to make a slide show
    presentation where the first slide has bits of a graphic and then
    more bits are added in subsequent slides. What is the most
    efficient way to do this? Many of my images are organized with
    layers in Illustrator if that's helpful (all CS3).
    Thanks

    Here is some as to get you started
    Drag a Loader component onto the stage.
    name it pictureHolder then paste this as into the first frame
    of your movie.
    loadVariables("totalImages.txt", "");
    timeOut = getTimer();
    imageNumber = totalImages;
    countDown = function () {
    trace(imageNumber);
    pictureHolder.load("_slide-images/"+imageNumber+".jpg");
    imageNumber--;
    if (imageNumber == 0) {
    clearInterval(timer);
    imageNumber = totalImages;
    timer = setInterval(countDown, 10000);
    timer = setInterval(countDown, 10000);
    now create a text file called totalImages.txt
    keep this text file in the same location as your flash file
    and .swf
    now create a folder called _slide-images
    in this folder place all your images. name them numerically
    ie 1.jpg 2.jpg etc.
    Now open the totalImages.txt and paste this into it.
    &imageNumber=20&totalImages=20
    20 means that you will have 20 images, just change the munber
    accordingly.
    HTH.

  • Can I save the graphics of a panel drawn by J2D as a picture file (jpg,etc)

    I drew some graphics (lines, text and etc.) on a panel using J2D and want to save it in a file or clipboard so that other application can use it. But I did not find any way to do. Can anybody give me some help?

    If you want to save it as JPEG, you should read a little about JPEGImageEncoder at http://java.sun.com/j2se/1.3.0/docs/guide/2d/api-jpeg/overview-tree.html

Maybe you are looking for

  • How to look up a random key value

    I'm importing some data in a flat file. That data is going to be loaded into a fact table. That fact table connects to some dimension tables and I need to the keys out of those tables. The problem is, this isn't a look up. There is no key value in th

  • I'm getting this error with bootcamp "The startup disk does not have enough space to be partitioned"

    Here's the story... I had a dual boot configuration on my mac with Mac OS X Lion and Windows XP (made with bootcamp). I decided to reinstall windows. I deleted the windows partition using BootCamp. Tried to recreate the Windows partition with Boot Ca

  • Clustering Problems with WLS 4.5.1

    Hi!           I'm trying to configure a WebLogic 4.5.1 cluster (named "cluster1", on two           WinNT4 SP5 servers (instances WLS "server A" and "server B")           When I start each WLS instance in each server, both create a cluster where I    

  • Final cut to photoshop to after effects back to final cut problem

    Hello there, I shall explain my problem. I am working with three different programs. Finla cut 7, photoshop, and after effects. I have taken a jpeg still from final cut to work in photoshop. In phtoshop I have layered a project to work in after effec

  • How to validate string that contains special characters.

    Hi, I am new to Data Services.I took excel sheet as a data source .Now i have do some validation functions like vendorgroup should not contain special characters ,name cleansing operations etc.. So,please anyone help me redarding this. Thanks in adva