Help: insert Image(gif) into Panel...please....

Hi,
I am working on an assignment and I cannot use Swing so no JPanel.
I need to insert a gi image centered in a Panel...how do I do that?
it's rather urgent...I would really appreciate your help
thanks,
Tom

One way would be to override the Panel paint() command use g.drawImage(...) to display the image.

Similar Messages

  • Problem inserting a gif into a blob field in a table with sqldev / forms6i

    Problem solved - For those that might be interested, the errors don't make much sense - the problem was with the gif. Seems that these 28 gifs plus the new scans were saved from the scanner with
    GIF - LZW, Transparent color: 255
    Converting them to Black and white allowed them to be loaded.
    If anyone understands why, I'd like to know
    glenn
    I was previously having a problem deleting a row with a blob and it was suggested that I create the table using rowdependencies - which I did as follows.
    CREATE TABLE "MDD"."MDD_FIGURE2"
    (     "FG_FIGURENAME" VARCHAR2(18 BYTE),
         "FG_FIGURE" BLOB,
         CONSTRAINT "FG_FIGURENAME_NN" CHECK ("FG_FIGURENAME" IS NOT NULL) ENABLE
    ) ROWDEPENDENCIES;
    Then I copied my data from my previous table with the following - and everything came across
    INSERT INTO MDD_FIGURE2 (fg_figurename, fg_figure)
    SELECT FIG_FIGNAME, FIG_FIGURE FROM MDD_FIGURE;
    mdd_figure2 was then renamed to mdd_figure
    The table, Mdd_Figure, already contains some 2000+ .gifs that were successfully loaded with Forms 6i (yes, I know it is old, but I am stuck with having to use it). All the .gifs I am loading are from scans and all are less than 64k. However, 28 .gifs would not load. When I insert the .gif into the field and committed the form, the status message tells me a record was written but when I check it, the blob is empty.
    So, when I try to insert one of these problem .gifs in SqlDeveloper, I open the new mdd_figure table, select the blob field, open the edit dialog, set it to figure, select the .gif that I want to load and then save it. The blob field changes from NULL to BLOB, but it is empty. When I try to commit, I get the following error from SqlDev.
    UPDATE "MDD"."MDD_FIGURE" SET WHERE ROWID = 'AAAOeWAAEAAABAlAAz' AND ORA_ROWSCN = '358136842'
    One error saving changes to table "MDD"."MDD_FIGURE":
    Row 14: ORA-01410: invalid ROWID
    I use rollback to restore the record to it's previous state.
    If I load one of the successfully loaded .gifs into the same field, it loads perfectly as follows.
    UPDATE "MDD"."MDD_FIGURE" SET WHERE ROWID = 'AAAOeWAAEAAABAoAAp' AND ORA_ROWSCN = '358136522'
    Commit Successful
    It appears the 28 gifs have a problem. I've re-scanned them, with the same results. They are just small scanned line map images from our earlier publications. They view properly in several different graphics programs and I can't find anything wrong with them.
    I notice that the ROWID's are different while the ORA_ROWSCN's are the same - but what is the significance of that?
    Any suggestions as to what is happening and what I can do about it?
    Thanks for any help you can give me.
    glenn
    (Database is 10R2 and sqldev is the most recent one)
    Edited by: gconley on Sep 25, 2008 9:51 PM

    solved it myself - problem was with the gif

  • Help - Inserting image - distorts webpage

    Hi all
    First post here - I am a novice user of dreamweaver and
    wondering if anyone could kindly answer a query that I cannot
    solve.
    I am currently creating a website in dreamweaver mx2004 using
    tables and I have allocated space for an image to cover most of the
    index page. I insert an image into the space and it looks fine in
    design view but when I preview in my browser - the webpage is
    distorted in that the rest of my images to the side of page are
    spread across vertically making the webpage longer.
    Please help as I cannot work out what the problem is.
    Many thanks in anticipation

    Screenshots do nothing. The answer is always in the code.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "JoeyD1978" <[email protected]> wrote in
    message
    news:fl35l6$a48$[email protected]..
    > Sure, post your html too if you don't mind.

  • Complete newbie needs help inserting flv file into DW

    This is a multi-part message in MIME format.
    ------=_NextPart_000_0015_01C98602.377A5370
    Content-Type: text/plain;
    charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable
    I'm having a challenge today. A client sent me two flv files.
    When I =
    installed CS4 I installed Flash for the first time so I'm
    thinking, no =
    problem. But I'd never opened it before (never needed it
    until now). The =
    app won't open. I just spent a ton of time uninstalling and
    reinstalling =
    and rebooting over and over and nothing...
    So MAYBE, for now, I don't need it to work. I've also never
    insterted =
    Flash into DW. But it looks easy enough. In my html page I
    choose =
    insert/media/flv. So far so good. I've ftp'd the flv file so
    I'm able to =
    complete the dialog box with the path and size etc. I've
    uploaded the =
    progressiveplayer.swf and the chosen skin swf. I've saved the
    html file =
    it's embedded in and uploaded it. Shouldn't I now be able to
    see this =
    flv file displayed on the page? What did I miss? Here's the
    link to my =
    little test...
    http://www.susanhowlett.com/assets/applets/susan-movie.html=20
    The flv file is mm_susan_thanks.flv=20
    Thanks for any insight/guidance.
    Sheila
    ------=_NextPart_000_0015_01C98602.377A5370
    Content-Type: text/html;
    charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
    Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=3DContent-Type content=3D"text/html; =
    charset=3Diso-8859-1">
    <META content=3D"MSHTML 6.00.6001.18183"
    name=3DGENERATOR>
    <STYLE></STYLE>
    </HEAD>
    <BODY bgColor=3D#ffffff>
    <DIV>
    <DIV><FONT face=3DArial size=3D2>
    <DIV><FONT face=3DArial size=3D2>I'm having a
    challenge today. A client =
    sent me two=20
    flv files. When I installed CS4 I installed Flash for the
    first =
    time so I'm=20
    thinking, no problem. But I'd never opened it before (never
    needed it =
    until=20
    now). The app won't open. I just spent a
    ton of time =
    uninstalling and=20
    reinstalling and rebooting over and over and
    nothing...</FONT></DIV>
    <DIV><FONT face=3DArial
    size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>So MAYBE, for
    now, I don't need it to =
    work. I've=20
    also never insterted Flash into DW. But it looks easy enough.
    In my html =
    page I=20
    choose insert/media/flv. So far so good. I've ftp'd the flv
    file so I'm =
    able to=20
    complete the dialog box with the path and size etc. I've
    uploaded the=20
    progressiveplayer.swf and the chosen skin swf. I've saved the
    html file =
    it's=20
    embedded in and uploaded it. Shouldn't I now be able to see
    this flv =
    file=20
    displayed on the page? What did I miss? Here's the link to my
    little=20
    test...</FONT></DIV>
    <DIV><FONT face=3DArial
    size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2><A=20
    href=3D"mhtml:{2BC949A9-CCEB-407F-8078-5F999C2CADAA}mid://00000013/!x-usc=
    susanhowlett.com/assets/applets/susan-movie.html</A>=20
    </FONT></DIV>
    <DIV><FONT face=3DArial
    size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>The flv file is
    mm_susan_thanks.flv =
    </FONT></DIV>
    <DIV> </DIV>
    <DIV><FONT face=3DArial size=3D2>Thanks for any =
    insight/guidance.</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>Sheila=20
    </FONT> </DIV></FONT></DIV></DIV></BODY></HTML>
    ------=_NextPart_000_0015_01C98602.377A5370--

    From my little knwledge, it is not possible to insert FLV
    file in the HTML page directly.For this you have to made a player
    with flash which plays the FLV.And this swf can emdded in the HTML
    page.
    You can also download free flash videoplayers like JW Player.
    Thanks

  • Need help inserting flash movie into article...

    I inserted video into flash movie. I loaded the .swf & .fla files onto a server and went into the properties in the flash movie and pointed to the server to pull the .fla file & the movie controls .swf file.  I can preview the movie in flash with no problem.
    I am wanting to use the object code that was created as part of the .html file that was generated by flash and insert this into an article to display the video.  I path the .swf file in the object code to point to where it resides on the server but the video will not play using just the object code. Is there a way to do this using just a object or embed code without the need for scripts?
    (I am using CS4 version)

    If the swf file does not reside in the same folder as the html page that loads it, then if the video is dynamically loaded into the Flash file, chances are the targeting in the swf needs to be adjusted.  If the swf files just targets the video by its filename alone, try putting the video file in the same folder as the html file and see if it gets loaded.

  • Inserting an image (jpg or gif) into spry widget

    creating a simple Spry dropdown menu.
    After excessive CSS tweaking, everything looks good except
    for being able to display 2 gifs (one when the menu is viewed and
    one when the mouse hovers over the menu item).
    Is it possible to insert these gifs into the menu? or do I
    need to look somewhere else?
    Thanks

    Not a problem. I just wanted to make sure you had a little
    understanding before diving too far in.
    First thing you should have open while doing this is your
    document (just so you can see what is going on) and the
    SpryMenuBarHorizontal.css since I assume you are using a Horizontal
    menu, but if this is wrong feel free to correct me.
    Now first take note this example is the third one. Then in
    the source code you will see the a group of code near the top with
    4 parts that begin with #MenuBar3. Now when you look at your CSS
    document (the one you previously opened) you will see that
    everything begins with ul.MenuBarHorizontal. This is actually a
    reference to the same item. To explain this look at the following
    example in the source code from the third link:
    #MenuBar3 a.MenuBarItemHover, #MenuBar3
    a.MenuBarItemSubmenuHover, #MenuBar3 a.MenuBarSubmenuVisible {
    background-image: url(images/itemgradient-hover.gif);
    background-repeat: repeat-x;
    Now on line 104 (assuming you have not changed anything too
    much) you should see the same beginning, but instead of #MenuBar3
    you will see ul.MenuBarHorizontal. The default attributes for that
    area are a background-color and foreground color. Images will
    always overwrite colors so you can just paste what is in between
    the { } from the source code of the Adobe page to your CSS page.
    Obviously the URL will change to the path to your own image. Now if
    something doesn't exist like this part from the Adobe source:
    #MenuBar3 li a {
    background-color: transparent;
    Just make your own CSS entry in that document with the
    substitution mentioned before. So you would end up with:
    ul.MenuBarHorizontal li a {
    background-color:transparent;
    Unfortunately this is the way these types of menus are done
    although I would suspect since the Spry is only listed as beta at
    this point it is to be expected. Hopefully this has made some sense
    to you. If not feel free to post back and I would be glad to
    explain this further.

  • Help with images.....pliiiizzzzzz

    Im new to java and need help inserting images on a GUI! Does anyone have any programs or snippets of code that've done this successfully - preferrably using the GridBagLayout as well as in swing? If you have anything that works well, feel free to send me the entire java file ([email protected]) or just post it!

    Just create a JLabel with an image icon and you are able to display any JPEG and GIF image. You might take a look at the following:
    http://java.sun.com/docs/books/tutorial/uiswing/components/label.html
    Hope this helps,
    Pierre

  • Help with animated gif please!

    Can you embed an animated gif into emails as a signature? i
    have tried it in entourage and outlook, but the gif seems to stick
    on the first frame. The animation works fine if viewed in a browser
    etc. I have also made the email html format.
    any ideas?

    Open your browser and browse to and select the animated GIF
    image. Do you
    see the animation? If not, then you have not properly
    exported your GIF as
    an animated one. What graphics program are you using?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "PZE" <[email protected]> wrote in message
    news:eiiu8c$pdm$[email protected]..
    > You made an animated GIF in Fireworks, yes? yes
    > It works? Animates as you wish? yes
    > Then you insert it in DW and you see the image, yes?
    no.no.no
    > Static in DW (DW will NOT display the animation) but
    when you preview the
    > page
    > in a browser it
    > doesn't animate as expected? no, unfortunately not, or
    else there would
    > be no
    > problem
    >
    > perhaps I am saving or exporting incorrectly. for the
    animation previews
    > clearly in fireworks, but then I dont get anything in
    dreamweaver, neither
    > static image on work page or animation in preview
    > Please, I would appreciate a little clarity here for
    this site has to be
    > up
    > tonight
    > thanks for any help and explanations
    >

  • I have downloaded Adobe Photoshop digitally but when i activated adobe I keep getting this error message Adobe Premiere Elements.exe - NO DISK. There is no disk in the drive. Please insert a disk into drive/device/harddisk/dr1

    I have downloaded Adobe Photoshop digitally but when I activated adobe I keep getting this error message Adobe Premiere.exe - NO DISK - There is no disk in the drive. Please insert a disk into drive/device/harddisk/DR1

    It sounds like you downloaded the wrong application, namely Adobe Premiere Elements.
    If you meant Adobe Photoshop Elements, you're in the wrong forum.  This is not the Elements forum.
    Here's the link to the forum you want:
    https://forums.adobe.com/community/photoshop_elements/content
    If you mean Photoshop proper, since you are posting in the Photoshop forum, give version details and your system specs.
    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • How to drag image in left panel then drop into right panel??

    Dear friends.
    I have following code, it is runnable, just add two jpg image files is ok, to run.
    I tried few days to drag image from left panel then drop into right panel or vice versa, but not success, can any GUI guru help??
    Thanks.
    Sunny
    [1]. main code/calling code:
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class ImagePanelCall extends JComponent {
         public  JSplitPane ImagePanelCall() {
              setPreferredSize(new Dimension(1200,300));
              JSplitPane          sp = new JSplitPane();
              sp.setPreferredSize(new Dimension(1200,600));
              sp.setOrientation(JSplitPane.HORIZONTAL_SPLIT);
              add(sp);
              ImagePanel     ip = new ImagePanel();
              ImagePanel     ip1 = new ImagePanel();
              ip.setPreferredSize(new Dimension(600,300));
              ip1.setPreferredSize(new Dimension(600,300));
              sp.setLeftComponent(ip);// add left part
              sp.setRightComponent(ip1);// add right part
              sp.setVisible(true);
              return sp;
         public static void main(String[] args) {
              JFrame frame = new JFrame("Test transformable images");
              ImagePanelCall  ic = new ImagePanelCall();
              frame.setPreferredSize(new Dimension(1200,600));
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.getContentPane().add(ic.ImagePanelCall(), BorderLayout.CENTER);
              frame.pack();
              frame.setVisible(true);
    }[2]. code 2
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class ImagePanel extends JComponent {
         private static final Cursor DEFAULT_CURSOR = new Cursor(Cursor.DEFAULT_CURSOR);
         private static final Cursor MOVE_CURSOR = new Cursor(Cursor.MOVE_CURSOR);
         private static final Cursor VERTICAL_RESIZE_CURSOR = new Cursor(Cursor.N_RESIZE_CURSOR);
         private static final Cursor HORIZONTAL_RESIZE_CURSOR = new Cursor(Cursor.W_RESIZE_CURSOR);
         private static final Cursor NW_SE_RESIZE_CURSOR = new Cursor(Cursor.NW_RESIZE_CURSOR);
         private static final Cursor NE_SW_RESIZE_CURSOR = new Cursor(Cursor.NE_RESIZE_CURSOR);
         public Vector images;
         * Create an ImagePanel with two images in.
         * A MouseHandler instance is added as mouse listener and mouse motion listener.
         public ImagePanel() {
              images = new Vector();
              images.add(new TransformableImage("swing/dnd/Bird.gif"));
              images.add(new TransformableImage("swing/dnd/Cat.gif"));
              setPreferredSize(new Dimension(600,600));
              MouseHandler mh = new MouseHandler();
              addMouseListener(mh);
              addMouseMotionListener(mh);
         * Simply paint all the images contained in the Vector images, calling their method draw(Graphics2D, ImageObserver).
         public void paintComponent(Graphics g) {
              Graphics2D g2D = (Graphics2D)g;
              for (int i = images.size()-1; i>=0; i--) {     
                   ((TransformableImage)images.get(i)).draw(g2D, this);
         * Inner class defining the behavior of the mouse.
         final class MouseHandler extends MouseInputAdapter {
              private TransformableImage draggedImage;
              private int transformation;
              private int dx, dy;
              public void mouseMoved(MouseEvent e) {
                   Point p = e.getPoint();
                   TransformableImage image = getImageAt(p);
                   if (image != null) {
                        transformation = image.getTransformation(p);
                        setConvenientCursor(transformation);
                   else {
                        setConvenientCursor(-1);
              public void mousePressed(MouseEvent e) {
                   Point p = e.getPoint();
                   draggedImage = getImageAt(p);
                   if (draggedImage!=null) {
                        dx = p.x-draggedImage.x;
                        dy = p.y-draggedImage.y;
              public void mouseDragged(MouseEvent e) {
                   if (draggedImage==null) {
                        return;
                   Point p = e.getPoint();
                   repaint(draggedImage.x,draggedImage.y,draggedImage.width+1,draggedImage.height+1);
                   draggedImage.transform(p, transformation,dx,dy);
                   repaint(draggedImage.x,draggedImage.y,draggedImage.width+1,draggedImage.height+1);
              public void mouseReleased(MouseEvent e) {
                   Point p = e.getPoint();
                   draggedImage = null;
         * Utility method used to get the image located at a Point p.
         * Returns null if there is no image at this point.
         private final TransformableImage getImageAt(Point p) {
              TransformableImage image = null;
              for (int i = 0, n = images.size(); i<n; i++) {     
                   image = (TransformableImage)images.get(i);
                   if (image.contains(p)) {
                        return(image);
              return(null);
         * Sets the convenient cursor according the the transformation (i.e. the position of the mouse over the image).
         private final void setConvenientCursor(int transfo) {
              Cursor currentCursor = getCursor();
              Cursor newCursor = null;
              switch (transfo) {
                   case TransformableImage.MOVE : newCursor = MOVE_CURSOR;
                        break;
                   case TransformableImage.RESIZE_TOP : newCursor = VERTICAL_RESIZE_CURSOR;
                        break;
                   case TransformableImage.RESIZE_BOTTOM : newCursor = VERTICAL_RESIZE_CURSOR;
                        break;
                   case TransformableImage.RESIZE_LEFT : newCursor = HORIZONTAL_RESIZE_CURSOR;
                        break;
                   case TransformableImage.RESIZE_RIGHT : newCursor = HORIZONTAL_RESIZE_CURSOR;
                        break;
                   case TransformableImage.RESIZE_TOP_LEFT_CORNER : newCursor = NW_SE_RESIZE_CURSOR;
                        break;
                   case TransformableImage.RESIZE_TOP_RIGHT_CORNER : newCursor = NE_SW_RESIZE_CURSOR;
                        break;
                   case TransformableImage.RESIZE_BOTTOM_LEFT_CORNER : newCursor = NE_SW_RESIZE_CURSOR;
                        break;
                   case TransformableImage.RESIZE_BOTTOM_RIGHT_CORNER : newCursor = NW_SE_RESIZE_CURSOR;
                        break;
                   default : newCursor = DEFAULT_CURSOR;
              if (newCursor != null && currentCursor != newCursor) {
                   setCursor(newCursor);
         public static void main(String[] args) {
              JFrame frame = new JFrame("Test transformable images");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.getContentPane().add(new ImagePanel(), BorderLayout.CENTER);
              frame.pack();
              frame.setVisible(true);
    }[3]. code 3
    import java.awt.*;
    import javax.swing.*;
    import java.awt.image.*;
    public final class TransformableImage extends Rectangle {
         public static final int MOVE = 0;
         public static final int RESIZE_TOP = 10;
         public static final int RESIZE_BOTTOM = 20;
         public static final int RESIZE_RIGHT = 1;
         public static final int RESIZE_LEFT = 2;
         public static final int RESIZE_TOP_RIGHT_CORNER = 11;
         public static final int RESIZE_TOP_LEFT_CORNER = 12;
         public static final int RESIZE_BOTTOM_RIGHT_CORNER = 21;
         public static final int RESIZE_BOTTOM_LEFT_CORNER = 22;
         public static final int BORDER_THICKNESS = 5;
         public static final int MIN_THICKNESS = BORDER_THICKNESS*2;
         private static final Color borderColor = Color.black;
         private Image image;
         * Create an TransformableImage from the image file filename.
         * The TransformableImage bounds (inherited from the class Rectangle) are setted to the corresponding values.
         public TransformableImage(String filename) {
              ImageIcon ic = new ImageIcon(filename);
              image = ic.getImage();
              setBounds(0,0,ic.getIconWidth(), ic.getIconHeight());
         * Draw the image rescaled to fit the bounds.
         * A black rectangle is drawn around the image.
         public final void draw(Graphics2D g, ImageObserver observer) {
              Color oldColor = g.getColor();
              g.setColor(borderColor);
              g.drawImage(image, x, y, width, height, observer);
              g.draw(this);
              g.setColor(oldColor);
         * Return an int corresponding to the transformation available according to the mouse location on the image.
         * If the point p is in the border, with a thickness of BORDER_THICKNESS, around the image, the corresponding
         * transformation is returned (RESIZE_TOP, ..., RESIZE_BOTTOM_LEFT_CORNER).
         * If the point p is located in the center of the image (i.e. out of the border), the MOVE transformation is returned.
         * We allways suppose that p is contained in the image bounds.
         public final int getTransformation(Point p) {
              int px = p.x;
              int py = p.y;
              int transformation = 0;
              if (py<(y+BORDER_THICKNESS)) {
                   transformation += RESIZE_TOP;
              else
              if (py>(y+height-BORDER_THICKNESS-1)) {
                   transformation += RESIZE_BOTTOM;
              if (px<(x+BORDER_THICKNESS)) {
                   transformation += RESIZE_LEFT;
              else
              if (px>(x+width-BORDER_THICKNESS-1)) {
                   transformation += RESIZE_RIGHT;
              return(transformation);
         * Move the left side of the image, verifying that the width is > to the MIN_THICKNESS.
         public final void moveX1(int px) {
              int x1 = x+width;
              if (px>x1-MIN_THICKNESS) {
                   x = x1-MIN_THICKNESS;
                   width = MIN_THICKNESS;
              else {
                   width += (x-px);
                   x = px;               
         * Move the right side of the image, verifying that the width is > to the MIN_THICKNESS.
         public final void moveX2(int px) {
              width = px-x;
              if (width<MIN_THICKNESS) {
                   width = MIN_THICKNESS;
         * Move the top side of the image, verifying that the height is > to the MIN_THICKNESS.
         public final void moveY1(int py) {
              int y1 = y+height;
              if (py>y1-MIN_THICKNESS) {
                   y = y1-MIN_THICKNESS;
                   height = MIN_THICKNESS;
              else {
                   height += (y-py);
                   y = py;               
         * Move the bottom side of the image, verifying that the height is > to the MIN_THICKNESS.
         public final void moveY2(int py) {
              height = py-y;
              if (height<MIN_THICKNESS) {
                   height = MIN_THICKNESS;
         * Apply a given transformation with the given Point to the image.
         * The shift values dx and dy are needed for move tho locate the image at the same relative position from the cursor (p).
         public final void transform(Point p, int transformationType, int dx, int dy) {
              int px = p.x;
              int py = p.y;
              switch (transformationType) {
                   case MOVE : x = px-dx; y = py-dy;
                        break;
                   case RESIZE_TOP : moveY1(py);
                        break;
                   case RESIZE_BOTTOM : moveY2(py);
                        break;
                   case RESIZE_LEFT : moveX1(px);
                        break;
                   case RESIZE_RIGHT : moveX2(px);
                        break;
                   case RESIZE_TOP_LEFT_CORNER : moveX1(px);moveY1(py);
                        break;
                   case RESIZE_TOP_RIGHT_CORNER : moveX2(px);moveY1(py);
                        break;
                   case RESIZE_BOTTOM_LEFT_CORNER : moveX1(px);moveY2(py);
                        break;
                   case RESIZE_BOTTOM_RIGHT_CORNER : moveX2(px);moveY2(py);
                        break;
                   default :
    }

    I gave you a simple solution in your other posting. You never responded to the suggestion stating why the given solution wouldn't work, so it can't be that urgent.

  • Inserting images in a collapsible panel

    Can anybody help with a problem about inserting an image into
    the tab of a collapsible panel as a visual clue to users that they
    can open/close the panel? I'm trying to ensure that users don't
    just see the tab of the panel as a kind of good looking heading but
    that the images (two - one for open, one for closed) would give a
    visual clue that the tab actually opens when clicked.
    I'd be very grateful for any help, thanks, st44

    By managing the table's default cellpadding and cellspacing.
    Are you
    setting them to zero?
    If that's not happening then we would need to see your code.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "OxfordFishSalon" <[email protected]> wrote
    in message
    news:fulior$9i1$[email protected]..
    > When I insert images in a table and align them right,
    for example, there
    > are
    > still a few pixels between the edge of the table and the
    image on the top
    > and
    > right.
    >
    > How do I make an image go to the absolute edge of a
    table?
    >
    > Thanks,
    > Chris
    >

  • Inserting Image into a BLOB column in Oracle9i

    Hi,
    I am unable to insert image into a BLOB column. I am using Forms 6i REL 2 and Oracle 9i. But I could do it on Oracle 8i with same Forms version.
    Same thing is true for CLOB in 9i.
    Would you please try with this code?
    TABLE
    Create table x
    (Id number,
    Name CLOB,
    Pict BLOB);
    WHEN-BUTTON-PRESSED trigge
    declare
         x varchar2(265);
    begin
         x := get_file_name;
         read_image_file (x, 'GIF', 'picture.pict');
    end;
    Take care,
    Tarek

    Forms 9i and Oracle 9i work fine together for this case.

  • Inserting image into a slide

    I'm trying to edit a keynote presentation that was handed to me and I'm totally new to the program. I want to insert some new images into a slide. When I open the slide and click on the first image, all of the appear in a line at the bottom. OK, seems intuitive so far. But when I drag a new image to the line where I want to insert it, all it does is replace an old image. I want to INSERT the image and replace nothing. I've tried the help files and found nothing. Please help I have to give this presentation tomorrow.
    Thanks.

    The person who created the file has about 100 storyboard images associated with a particular slide. He forgot to include some boards that I am trying to insert.
    To recap, when I go to the slide containing the storyboards, I can click on the image in the navigator window and all of the boards appear in a row under the window. I have scrolled though and tried to drag the new boards into the row, but instead of adding to the storyboards, all I am doing is replacing one with another. I need to figure out how to insert one.
    Sorry if this isn't more clear, but I don't know the terminology of keynote to describe it any better.

  • Image problem in Dreamweaver Please Help!

    I have attached an image in dreamweaver and it looks fine when I preview it in the browser but when it put it on the hosting site it is not there. What should I do?

    Hi all, i've being talking with Murray regarding an issue that I am having on posting images online with Dreamweaver (please find below), if anyone can help please write.
    Murray in answering your question: Yes all images are RGB. let me know if there is anyother thing that I should check.
    Thanks,
    Gabriel
    Just duplicate the information in a new thread on the public Dreamweaver General Discussion forum.
    Also, are your images RGB or CMYK?  If the latter then they won't show on the web.  They must be in RGB color space to show....
    Murray
    Hi Murray,
    Thanks  for answering. Yes I have no problem on posting it to the public, it is  just that I've being posting this problem in other forums and not  getting any answer so I thought that sending a private message could be  more efficient. How should I redirect my question to the public forum?  just copy my question and post as a new threat?
    Regarding  my problem I am apparantly doing everything correct. I first created an  image folder on my local "website" folder and I put all images there  (lower case, single word, jpags and gif). So I went to  Insert->Rollover Image and place the images. Then I saved the  document and locally tested (pressing F12) and everything was working  great. Next I select the document and Site->Put. I reloaded my IE and  the images didn't show up. I went back to dreamweaver and manually  selected each image that I insert and one by one I upload to the  website. I checked the remote server and they are all there on the  correct location, but they still dono't appear on my website.
    I  am researching this problem for more than 5 days and I am really  considring to built my website with other tool (rather than Dreamweaver)  as I just can't figure it out why in earth these images don't display).
    Thanks,
    gabriel
    Gabriel,  do you feel comfortable posting this to the public forum?  That's the  right way to use it.  Let everyone try to help you.  When you post  there, please be sure to give enough information for someone to try to  answer.  If a process is failing for you, describe each step in the  process with enough detail to allow someone to recreate that process.
    Looking  at the code on your projects page I can only think that your images are  not being uploaded to the correct location.  Do you SEE those images on  the remote site?
    Anyhow, you can add the answer to this to your post on the public forum....
    Murray
    Hi  Murray, I found you in some forums re: Dreamweaver, I hope you can help  me. I am trying desperately for the last 6 days upload images on my  website. I have checked the sources/paths 1000 times and everything  match, I really don't know why I can't see a single image online. The  website is www.gabriel.kochece.com, if you go to projects all these  links are suppose to be images...
    Thanks in advance,
    gabriel
    Adobe Forums >                      People >    gab_kce >              Private Messages >               Inbox
    Adobe Forums powered by Jive Software's Clearspace ® 2.5.16 - Submit product feedback
    © Jive Software
    Careers
    Online Privacy Policy
    Terms of Use
    Contact us
    Accessibility
    Report piracy
    Permissions and trademarks
    Product license agreements
    Send feedback
    Copyright © 2010 Adobe Systems Incorporated. All rights reserved.
    Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy (updated 07-14-2009).

  • Error in inserting images into table

    Hi All,
    I am trying to insert images into a table.
    Followed these steps:
    CREATE TABLE XX_DEMO_IMG_TBL
    file_id      NUMBER(5),
    file_name      VARCHAR2(30),
    file_data      BLOB
    LOAD DATA
    INFILE *
    REPLACE
    INTO TABLE XX_DEMO_IMG_TBL
    FIELDS TERMINATED BY ','
    file_id INTEGER(5),
    file_name FILLER CHAR(30),
    file_data LOBFILE (file_name) TERMINATED BY EOF
    BEGINDATA
    1,c:\1.txt
    used sqlldr cmd
    Got the following error:
    *ecord 1: Rejected - Error on table XX_DEMO_IMG_TBL.
    ORA-01460: unimplemented or unreasonable conversion requested*
    I am using SQLPlus: Release 10.2.0.3.0 -*
    Can any one please guide where am i going wrong ?
    Thanks,
    Saritha

    Thanks for your time.
    I got a solution for this, I modified my control file like this..
    LOAD DATA
    INFILE *
    REPLACE
    INTO TABLE SCOTT.XX_DEMO_IMG_TBL
    FIELDS TERMINATED BY ','
    file_id ,
    file_name ,
    file_data LOBFILE (file_name) TERMINATED BY EOF
    BEGINDATA
    1,c:\Users\SariRavi\Desktop\logo.gif
    and it worked.
    Thanks,
    Saritha

Maybe you are looking for

  • What's wrong with my xorg.conf?

    I just installed Arch + KDEmod and I think I'd like it, but I can't get any video driver to work correctly.  The open-source ati driver crashes immediately (just like in Ubuntu, I could never get that one to work) so I'm trying to catalyst drivers. 

  • Could not connect to Oracle Server...

    Hi All. I set up a Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 on a Win XP Pro machine (say Machine A). When I tried to connect to the database using SQL*Plus from another machine (say Machine B) its throwing error... ORA-12170: TNS: Co

  • How do i get my icons on the left hand side?

    They're on the right, and i have this really cool wall paper. The desktop would look stunning if i could get them on the left. I don't want to drag them as it will take a long time, and it will be wonky. There are also some 'USB icon' icons on my des

  • In-Store Pre-Ordering

    Just visited my local bestbuy [Store 437] and I pre-ordered my iPad 3. Anyone know how long it takes? I know it's dependent on Apple, but how often do Bestbuy stores get shipment from Apple, especially during these times? It seems like the 32GB Wifi

  • How to export HD 1080x1920, h264, without getting 500mb files?

    hello everybody, i am on premiere pro cs 5, mac osx. i have recorded material with my hd camera (gopro hero3 black) in 1080 25fps. after editing it in pp, i wanted to export the work (film is about 2 min long). i want to export it in 1920x 1080 in h.