Help with imagemap effect in java not applet

Hi,
I would like my java application to show a frame with an image, that is clickable depending on pic's xy coordinates (the xy coordinates of clickable area are saved in xml file)
It can be done quite easily with image map in applet. But I want to do in actual java. I am stuck with 2 problems:
1. how to determine the x,y coordinates of mouse in just the pic not the whole desktop?
2. how to make imagemap effect in java like those in applet? Other than lots of mouse events... I am not writing in applet, it's an application!
I would be very appreciated if there's some article about it (other than applet examples) or even sample codes. Cheers!

Are you sure you're using the word "applet" correctly? Anything you could do in a java applet you should be able to do in a java application, with the exception of being run within a browser. Maybe you're referring to HTML imagemaps?
Anyway...you add a mouse listener to your frame, and when you get a mouse click, get the (x,y) position of the mouse, then subtract the (x, y) position of the image. Voila...you now have the (x,y) position of the mouse click within the image.

Similar Messages

  • Help With adding a scrollbar to my applet

    This is the source code of my applet.I wat to have an autoscroll on this applet
    i think it is usefull if i put here all the code for my project.
    ======================================================
    Class ConsolePanel:
    The file defines a class ConsolePanel. Objects of type
    ConsolePanel can be used for simple input/output exchanges with
    the user. Various routines are provided for reading and writing
    values of various types from the output. (This class gives all
    the I/O behavior of another class, Console, that represents a
    separate window for doing console-style I/O.)
    This class is dependent on another class, ConsoleCanvas.
    Note that when the console has the input focus, it is outlined with
    a bright blue border. If, in addition, the console is waiting for
    user input, then there will be a blinking cursor. If the console
    is not outlined in light blue, the user has to click on it before
    any input will be accepted.
    This is an update an earlier version of the same class,
    rewritten to use realToString() for output of floating point
    numbers..
    package myproj;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.JScrollPane;
    import javax.swing.JScrollBar;
    import javax.swing.*;
    public class ConsolePanel extends JTextArea{
    static public JScrollPane scrollPane;
    // ***************************** Constructors *******************************
    public ConsolePanel() { // default constructor just provides default window title and size
    setBackground(Color.white);
    setLayout(new BorderLayout(0, 0));
    canvas = new ConsoleCanvas(500,1000);
    scrollPane = new JScrollPane(canvas);
    scrollPane.setVerticalScrollBarPolicy(
    JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
    scrollPane.setPreferredSize( new Dimension( 1000,10000) );
    add("Center", scrollPane);
    //scrollPane.getVerticalScrollBar().setUnitIncrement(1);
    try {
    jbInit();
    } catch (Exception ex) {
    ex.printStackTrace();
    public void clear() { // clear all characters from the canvas
    canvas.clear();
    // *************************** I/O Methods *********************************
    // Methods for writing the primitive types, plus type String,
    // to the console window, with no extra spaces.
    // Note that the real-number data types, float
    // and double, a rounded version is output that will
    // use at most 10 or 11 characters. If you want to
    // output a real number with full accuracy, use
    // "con.put(String.valueOf(x))", for example.
    public void put(int x) {
    put(x, 0);
    } // Note: also handles byte and short!
    public void put(long x) {
    put(x, 0);
    public void put(double x) {
    put(x, 0);
    } // Also handles float.
    public void put(char x) {
    put(x, 0);
    public void put(boolean x) {
    put(x, 0);
    public void put(String x) {
    put(x, 0);
    // Methods for writing the primitive types, plus type String,
    // to the console window,followed by a carriage return, with
    // no extra spaces.
    public void putln(int x) {
    put(x, 0);
    newLine();
    } // Note: also handles byte and short!
    public void putln(long x) {
    put(x, 0);
    newLine();
    public void putln(double x) {
    put(x, 0);
    newLine();
    } // Also handles float.
    public void putln(char x) {
    put(x, 0);
    newLine();
    public void putln(boolean x) {
    put(x, 0);
    newLine();
    public void putln(String x) {
    put(x, 0);
    newLine();
    // Methods for writing the primitive types, plus type String,
    // to the console window, with a minimum field width of w,
    // and followed by a carriage return.
    // If outut value is less than w characters, it is padded
    // with extra spaces in front of the value.
    public void putln(int x, int w) {
    put(x, w);
    newLine();
    } // Note: also handles byte and short!
    public void putln(long x, int w) {
    put(x, w);
    newLine();
    public void putln(double x, int w) {
    put(x, w);
    newLine();
    } // Also handles float.
    public void putln(char x, int w) {
    put(x, w);
    newLine();
    public void putln(boolean x, int w) {
    put(x, w);
    newLine();
    public void putln(String x, int w) {
    put(x, w);
    newLine();
    // Method for outputting a carriage return
    public void putln() {
    newLine();
    // Methods for writing the primitive types, plus type String,
    // to the console window, with minimum field width w.
    public void put(int x, int w) {
    dumpString(String.valueOf(x), w);
    } // Note: also handles byte and short!
    public void put(long x, int w) {
    dumpString(String.valueOf(x), w);
    public void put(double x, int w) {
    dumpString(realToString(x), w);
    } // Also handles float.
    public void put(char x, int w) {
    dumpString(String.valueOf(x), w);
    public void put(boolean x, int w) {
    dumpString(String.valueOf(x), w);
    public void put(String x, int w) {
    dumpString(x, w);
    // Methods for reading in the primitive types, plus "words" and "lines".
    // The "getln..." methods discard any extra input, up to and including
    // the next carriage return.
    // A "word" read by getlnWord() is any sequence of non-blank characters.
    // A "line" read by getlnString() or getln() is everything up to next CR;
    // the carriage return is not part of the returned value, but it is
    // read and discarded.
    // Note that all input methods except getAnyChar(), peek(), the ones for lines
    // skip past any blanks and carriage returns to find a non-blank value.
    // getln() can return an empty string; getChar() and getlnChar() can
    // return a space or a linefeed ('\n') character.
    // peek() allows you to look at the next character in input, without
    // removing it from the input stream. (Note that using this
    // routine might force the user to enter a line, in order to
    // check what the next character.)
    // Acceptable boolean values are the "words": true, false, t, f, yes,
    // no, y, n, 0, or 1; uppercase letters are OK.
    // None of these can produce an error; if an error is found in input,
    // the user is forced to re-enter.
    // Available input routines are:
    // getByte() getlnByte() getShort() getlnShort()
    // getInt() getlnInt() getLong() getlnLong()
    // getFloat() getlnFloat() getDouble() getlnDouble()
    // getChar() getlnChar() peek() getAnyChar()
    // getWord() getlnWord() getln() getString() getlnString()
    // (getlnString is the same as getln and is onlyprovided for consistency.)
    public byte getlnByte() {
    byte x = getByte();
    emptyBuffer();
    return x;
    public short getlnShort() {
    short x = getShort();
    emptyBuffer();
    return x;
    public int getlnInt() {
    int x = getInt();
    emptyBuffer();
    return x;
    public long getlnLong() {
    long x = getLong();
    emptyBuffer();
    return x;
    public float getlnFloat() {
    float x = getFloat();
    emptyBuffer();
    return x;
    public double getlnDouble() {
    double x = getDouble();
    emptyBuffer();
    return x;
    public char getlnChar() {
    char x = getChar();
    emptyBuffer();
    return x;
    public boolean getlnBoolean() {
    boolean x = getBoolean();
    emptyBuffer();
    return x;
    public String getlnWord() {
    String x = getWord();
    emptyBuffer();
    return x;
    public String getlnString() {
    return getln();
    } // same as getln()
    public String getln() {
    StringBuffer s = new StringBuffer(100);
    char ch = readChar();
    while (ch != '\n') {
    s.append(ch);
    ch = readChar();
    return s.toString();
    public byte getByte() {
    return (byte) readInteger( -128L, 127L);
    public short getShort() {
    return (short) readInteger( -32768L, 32767L);
    public int getInt() {
    return (int) readInteger((long) Integer.MIN_VALUE,
    (long) Integer.MAX_VALUE);
    public long getLong() {
    return readInteger(Long.MIN_VALUE, Long.MAX_VALUE);
    public char getAnyChar() {
    return readChar();
    public char peek() {
    return lookChar();
    public char getChar() { // skip spaces & cr's, then return next char
    char ch = lookChar();
    while (ch == ' ' || ch == '\n') {
    readChar();
    if (ch == '\n') {
    dumpString("? ", 0);
    ch = lookChar();
    return readChar();
    public float getFloat() { // can return positive or negative infinity
    float x = 0.0F;
    while (true) {
    String str = readRealString();
    if (str.equals("")) {
    errorMessage("Illegal floating point input.",
    "Real number in the range " + Float.MIN_VALUE +
    " to " + Float.MAX_VALUE);
    } else {
    Float f = null;
    try {
    f = Float.valueOf(str);
    } catch (NumberFormatException e) {
    errorMessage("Illegal floating point input.",
    "Real number in the range " + Float.MIN_VALUE +
    " to " + Float.MAX_VALUE);
    continue;
    if (f.isInfinite()) {
    errorMessage("Floating point input outside of legal range.",
    "Real number in the range " + Float.MIN_VALUE +
    " to " + Float.MAX_VALUE);
    continue;
    x = f.floatValue();
    break;
    return x;
    public double getDouble() {
    double x = 0.0;
    while (true) {
    String str = readRealString();
    if (str.equals("")) {
    errorMessage("Illegal floating point input",
    "Real number in the range " + Double.MIN_VALUE +
    " to " + Double.MAX_VALUE);
    } else {
    Double f = null;
    try {
    f = Double.valueOf(str);
    } catch (NumberFormatException e) {
    errorMessage("Illegal floating point input",
    "Real number in the range " + Double.MIN_VALUE +
    " to " + Double.MAX_VALUE);
    continue;
    if (f.isInfinite()) {
    errorMessage("Floating point input outside of legal range.",
    "Real number in the range " + Double.MIN_VALUE +
    " to " + Double.MAX_VALUE);
    continue;
    x = f.doubleValue();
    break;
    return x;
    public String getWord() {
    char ch = lookChar();
    while (ch == ' ' || ch == '\n') {
    readChar();
    if (ch == '\n') {
    dumpString("? ", 0);
    ch = lookChar();
    StringBuffer str = new StringBuffer(50);
    while (ch != ' ' && ch != '\n') {
    str.append(readChar());
    ch = lookChar();
    return str.toString();
    public boolean getBoolean() {
    boolean ans = false;
    while (true) {
    String s = getWord();
    if (s.equalsIgnoreCase("true") || s.equalsIgnoreCase("t") ||
    s.equalsIgnoreCase("yes") || s.equalsIgnoreCase("y") ||
    s.equals("1")) {
    ans = true;
    break;
    } else if (s.equalsIgnoreCase("false") || s.equalsIgnoreCase("f") ||
    s.equalsIgnoreCase("no") || s.equalsIgnoreCase("n") ||
    s.equals("0")) {
    ans = false;
    break;
    } else {
    errorMessage("Illegal boolean input value.",
    "one of: true, false, t, f, yes, no, y, n, 0, or 1");
    return ans;
    // ***************** Everything beyond this point is private *******************
    // ********************** Utility routines for input/output ********************
    private ConsoleCanvas canvas; // the canvas where I/O is displayed
    private String buffer = null; // one line read from input
    private int pos = 0; // position next char in input line that has
    // not yet been processed
    private String readRealString() { // read chars from input following syntax of real numbers
    StringBuffer s = new StringBuffer(50);
    char ch = lookChar();
    while (ch == ' ' || ch == '\n') {
    readChar();
    if (ch == '\n') {
    dumpString("? ", 0);
    ch = lookChar();
    if (ch == '-' || ch == '+') {
    s.append(readChar());
    ch = lookChar();
    while (ch == ' ') {
    readChar();
    ch = lookChar();
    } while (ch >= '0' && ch <= '9') {
    s.append(readChar());
    ch = lookChar();
    if (ch == '.') {
    s.append(readChar());
    ch = lookChar();
    while (ch >= '0' && ch <= '9') {
    s.append(readChar());
    ch = lookChar();
    if (ch == 'E' || ch == 'e') {
    s.append(readChar());
    ch = lookChar();
    if (ch == '-' || ch == '+') {
    s.append(readChar());
    ch = lookChar();
    } while (ch >= '0' && ch <= '9') {
    s.append(readChar());
    ch = lookChar();
    return s.toString();
    private long readInteger(long min, long max) { // read long integer, limited to specified range
    long x = 0;
    while (true) {
    StringBuffer s = new StringBuffer(34);
    char ch = lookChar();
    while (ch == ' ' || ch == '\n') {
    readChar();
    if (ch == '\n') {
    dumpString("? ", 0);
    ch = lookChar();
    if (ch == '-' || ch == '+') {
    s.append(readChar());
    ch = lookChar();
    while (ch == ' ') {
    readChar();
    ch = lookChar();
    } while (ch >= '0' && ch <= '9') {
    s.append(readChar());
    ch = lookChar();
    if (s.equals("")) {
    errorMessage("Illegal integer input.",
    "Integer in the range " + min + " to " + max);
    } else {
    String str = s.toString();
    try {
    x = Long.parseLong(str);
    } catch (NumberFormatException e) {
    errorMessage("Illegal integer input.",
    "Integer in the range " + min + " to " + max);
    continue;
    if (x < min || x > max) {
    errorMessage("Integer input outside of legal range.",
    "Integer in the range " + min + " to " + max);
    continue;
    break;
    return x;
    private static String realToString(double x) {
    // Goal is to get a reasonable representation of x in at most
    // 10 characters, or 11 characters if x is negative.
    if (Double.isNaN(x)) {
    return "undefined";
    if (Double.isInfinite(x)) {
    if (x < 0) {
    return "-INF";
    } else {
    return "INF";
    if (Math.abs(x) <= 5000000000.0 && Math.rint(x) == x) {
    return String.valueOf((long) x);
    String s = String.valueOf(x);
    if (s.length() <= 10) {
    return s;
    boolean neg = false;
    if (x < 0) {
    neg = true;
    x = -x;
    s = String.valueOf(x);
    if (x >= 0.00005 && x <= 50000000 &&
    (s.indexOf('E') == -1 && s.indexOf('e') == -1)) { // trim x to 10 chars max
    s = round(s, 10);
    s = trimZeros(s);
    } else if (x > 1) { // construct exponential form with positive exponent
    long power = (long) Math.floor(Math.log(x) / Math.log(10));
    String exp = "E" + power;
    int numlength = 10 - exp.length();
    x = x / Math.pow(10, power);
    s = String.valueOf(x);
    s = round(s, numlength);
    s = trimZeros(s);
    s += exp;
    } else { // constuct exponential form
    long power = (long) Math.ceil( -Math.log(x) / Math.log(10));
    String exp = "E-" + power;
    int numlength = 10 - exp.length();
    x = x * Math.pow(10, power);
    s = String.valueOf(x);
    s = round(s, numlength);
    s = trimZeros(s);
    s += exp;
    if (neg) {
    return "-" + s;
    } else {
    return s;
    private static String trimZeros(String num) { // used by realToString
    if (num.indexOf('.') >= 0 && num.charAt(num.length() - 1) == '0') {
    int i = num.length() - 1;
    while (num.charAt(i) == '0') {
    i--;
    if (num.charAt(i) == '.') {
    num = num.substring(0, i);
    } else {
    num = num.substring(0, i + 1);
    return num;
    private static String round(String num, int length) { // used by realToString
    if (num.indexOf('.') < 0) {
    return num;
    if (num.length() <= length) {
    return num;
    if (num.charAt(length) >= '5' && num.charAt(length) != '.') {
    char[] temp = new char[length + 1];
    int ct = length;
    boolean rounding = true;
    for (int i = length - 1; i >= 0; i--) {
    temp[ct] = num.charAt(i);
    if (rounding && temp[ct] != '.') {
    if (temp[ct] < '9') {
    temp[ct]++;
    rounding = false;
    } else {
    temp[ct] = '0';
    ct--;
    if (rounding) {
    temp[ct] = '1';
    ct--;
    // ct is -1 or 0
    return new String(temp, ct + 1, length - ct);
    } else {
    return num.substring(0, length);
    private void dumpString(String str, int w) { // output string to console
    for (int i = str.length(); i < w; i++) {
    canvas.addChar(' ');
    for (int i = 0; i < str.length(); i++) {
    if ((int) str.charAt(i) >= 0x20 && (int) str.charAt(i) != 0x7F) { // no control chars or delete
    canvas.addChar(str.charAt(i));
    } else if (str.charAt(i) == '\n' || str.charAt(i) == '\r') {
    newLine();
    private void errorMessage(String message, String expecting) {
    // inform user of error and force user to re-enter.
    newLine();
    dumpString(" *** Error in input: " + message + "\n", 0);
    dumpString(" *** Expecting: " + expecting + "\n", 0);
    dumpString(" *** Discarding Input: ", 0);
    if (lookChar() == '\n') {
    dumpString("(end-of-line)\n\n", 0);
    } else {
    while (lookChar() != '\n') {
    canvas.addChar(readChar());
    dumpString("\n\n", 0);
    dumpString("Please re-enter: ", 0);
    readChar(); // discard the end-of-line character
    private char lookChar() { // return next character from input
    if (buffer == null || pos > buffer.length()) {
    fillBuffer();
    if (pos == buffer.length()) {
    return '\n';
    return buffer.charAt(pos);
    private char readChar() { // return and discard next character from input
    char ch = lookChar();
    pos++;
    return ch;
    private void newLine() { // output a CR to console
    canvas.addCR();
    private void fillBuffer() { // Wait for user to type a line and press return,
    // and put the typed line into the buffer.
    buffer = canvas.readLine();
    pos = 0;
    private void emptyBuffer() { // discard the rest of the current line of input
    buffer = null;
    public void clearBuffers() { // I expect this will only be called by
    // CanvasApplet when a program ends. It should
    // not be called in the middle of a running program.
    buffer = null;
    canvas.clearTypeAhead();
    private void jbInit() throws Exception {
    this.setNextFocusableComponent(scrollPane);
    this.setToolTipText("");
    } // end of class Console
    ============================================================
    Class ConsoleCanvas:
    /* A class that implements basic console-oriented input/output, for use with
    Console.java and ConsolePanel.java. This class provides the basic character IO.
    Higher-leve fucntions (reading and writing numbers, booleans, etc) are provided
    in Console.java and ConolePanel.java.
    (This vesion of ConsoleCanvas is an udate of an earilier version, rewritten to
    be compliand with Java 1.1. David Eck; July 17, 1998.)
    (Modified August 16, 1998 to add the
    a mousePressed method to ConsoleCanvas. The mousePressed method requests
    the focus. This is necessary for Sun's Java implementation -- though not,
    apparently for anyone else's. Also added: an isFocusTraversable() method)
    MouseListener interface and
    Minor modifications, February 9, 2000, some glitches in the graphics.
    package myproj;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    public class ConsoleCanvas extends JTextArea implements FocusListener, KeyListener,
    MouseListener {
    // public interface, constructor and methods
    public ConsoleCanvas(int u,int y) {
    addFocusListener(this);
    addKeyListener(this);
    try {
    jbInit();
    } catch (Exception ex) {
    ex.printStackTrace();
    public final String readLine() { // wait for user to enter a line of input;
    // Line can only contain characters in the range
    // ' ' to '~'.
    return doReadLine();
    public final void addChar(char ch) { // output PRINTABLE character to console
    putChar(ch);
    public final void addCR() { // add a CR to the console
    putCR();
    public synchronized void clear() { // clear console and return cursor to row 0, column 0.
    if (OSC == null) {
    return;
    currentRow = 0;
    currentCol = 0;
    OSCGraphics.setColor(Color.white);
    OSCGraphics.fillRect(4, 4, getSize().width - 8, getSize().height - 8);
    OSCGraphics.setColor(Color.black);
    repaint();
    try {
    Thread.sleep(25);
    } catch (InterruptedException e) {}
    // focus and key event handlers; not meant to be called excpet by system
    public void keyPressed(KeyEvent evt) {
    doKey(evt.getKeyChar());
    public void keyReleased(KeyEvent evt) {}
    public void keyTyped(KeyEvent evt) {}
    public void focusGained(FocusEvent evt) {
    doFocus(true);
    public void focusLost(FocusEvent evt) {
    doFocus(false);
    public boolean isFocusTraversable() {
    // Allows the user to move the focus to the canvas
    // by pressing the tab key.
    return true;
    // Mouse listener methods -- here just to make sure that the canvas
    // gets the focuse when the user clicks on it. These are meant to
    // be called only by the system.
    public void mousePressed(MouseEvent evt) {
    requestFocus();
    public void mouseReleased(MouseEvent evt) {}
    public void mouseClicked(MouseEvent evt) {}
    public void mouseEntered(MouseEvent evt) {}
    public void mouseExited(MouseEvent evt) {}
    // implementation section: protected variables and methods.
    protected StringBuffer typeAhead = new StringBuffer();
    // Characters typed by user but not yet processed;
    // User can "type ahead" the charcters typed until
    // they are needed to satisfy a readLine.
    protected final int maxLineLength = 256;
    // No lines longer than this are returned by readLine();
    // The system effectively inserts a CR after 256 chars
    // of input without a carriage return.
    protected int rows, columns; // rows and columns of chars in the console
    protected int currentRow, currentCol; // current curson position
    protected Font font; // Font used in console (Courier); All font
    // data is set up in the doSetup() method.
    protected int lineHeight; // height of one line of text in the console
    protected int baseOffset; // distance from top of a line to its baseline
    protected int charWidth; // width of a character (constant, since a monospaced font is used)
    protected int leading; // space between lines
    protected int topOffset; // distance from top of console to top of text
    protected int leftOffset; // distance from left of console to first char on line
    protected Image OSC; // off-screen backup for console display (except cursor)
    protected Graphics OSCGraphics; // graphics context for OSC
    protected boolean hasFocus = false; // true if this canvas has the input focus
    protected boolean cursorIsVisible = false; // true if cursor is currently visible
    private int pos = 0; // exists only for sharing by next two methods
    public synchronized void clearTypeAhead() {
    // clears any unprocessed user typing. This is meant only to
    // be called by ConsolePanel, when a program being run by
    // console Applet ends. But just to play it safe, pos is
    // set to -1 as a signal to doReadLine that it should return.
    typeAhead.setLength(0);
    pos = -1;
    notify();
    protected synchronized String doReadLine() { // reads a line of input, up to next CR
    if (OSC == null) { // If this routine is called before the console has
    // completely opened, we shouldn't procede; give the
    // window a chance to open, so that paint() can call doSetup().
    try {
    wait(5000);
    } catch (InterruptedException e) {} // notify() should be set by doSetup()
    if (OSC == null) { // If nothing has happened for 5 seconds, we are probably in
    // trouble, but when the heck, try calling doSetup and proceding anyway.
    doSetup();
    if (!hasFocus) { // Make sure canvas has input focus
    requestFocus();
    StringBuffer lineBuffer = new StringBuffer(); // buffer for constructing line from user
    pos = 0;
    while (true) { // Read and process chars from the typeAhead buffer until a CR is found.
    while (pos >= typeAhead.length()) { // If the typeAhead buffer is empty, wait for user to type something
    cursorBlink();
    try {
    wait(500);
    } catch (InterruptedException e) {}
    if (pos == -1) { // means clearTypeAhead was called;
    return ""; // this is an abnormal return that should not happen
    if (cursorIsVisible) {
    cursorBlink();
    if (typeAhead.charAt(pos) == '\r' || typeAhead.charAt(pos) == '\n') {
    putCR();
    pos++;
    break;
    if (typeAhead.charAt(pos) == 8 || typeAhead.charAt(pos) == 127) {
    if (lineBuffer.length() > 0) {
    lineBuffer.setLength(lineBuffer.length() - 1);
    eraseChar();
    pos++;
    } else if (typeAhead.charAt(pos) >= ' ' &&
    typeAhead.charAt(pos) < 127) {
    putChar(typeAhead.charAt(pos));
    lineBuffer.append(typeAhead.charAt(pos));
    pos++;
    } else {
    pos++;
    if (lineBuffer.length() == maxLineLength) {
    putCR();
    pos = typeAhead.length();
    break;
    if (pos >= typeAhead.leng

    Hi
    I don't understand the exact need you want
    you want to add Scrolling facility to your Entire Applet or only for the Textarea Class?
    In first case
    Create the ScrollPane and add it to the applet contentPane. and put entire components to a Panel and just add it to scroll pane.
    Regards
    Vinoth

  • Need help with gunshot effect in FCP

    New to FCP and am trying to add a gunshot effect to a short film. Doesn't have to look top notch...just looking for something simple.
    I added a muzzle blast for the shooter from detonationfilms.com, which worked great. When i overlayed the muzzle blast, the background was black. I was able to fix this by using Modify>Composite>Screen.
    Now I'm trying to add the bullet hitting the victim, but all the shots from detonationfilms.com have white backgrounds. For some reason, when I go to Modify>Composite>Screen it doesn't work for white. What I'm I missing? Are there any other websites that have bullet hits with a black background? As I said, I'm not too picky.
    Lastly, I have about a 40 frame shot of the victim collapsing to the ground after being shot. He's wearing a white T-Shirt, which I'd like to stain with blood. Can someone tell me what program would work best for this? I basically think I need to go frame by frame and "paint" the blood on him, but not sure what program is best for this (and simple).
    Thanks! Much appreciated.

    welcome to the family. We're not really here to help you with practical effects and filmmaking tips, we're here to help you with the software. But we'll see who shows up.
    For some reason, when I go to Modify>Composite>Screen it doesn't work for white. What I'm I missing? < </div>
    Screen drops out black pixels. It's not really the best way to get luma key effects but it's quick and easy for high contrast effects footage that is delivered on superblack. Try a luma keyer to key out the white.
    Lastly, I have about a 40 frame shot of the victim collapsing to the ground after being shot. He's wearing a white T-Shirt, which I'd like to stain with blood. Can someone tell me what program would work best for this? I basically think I need to go frame by frame and "paint" the blood on him, but not sure what program is best for this (and simple). < </div>
    Should have been done as a practical effect while shooting. A simple squib and blood packet would have been FAR easier to deal with than rotoscoping and hand painting. You need After Effects or, if you have Motion, crack the manual and get set for some long sessions. There is nothing simple about handpainting on a moving object.
    bogiesan

  • Help with Special Effect

    I am building the opening page for a website in Flash, I'm
    not the most experienced with Flash, but I'm getting a lot better
    and I know many of the functions. However I'm having a problem with
    an effect. It shouldn't be too hard to figure out, but here it is.
    I have a US Flag that is square it was built in Flash using
    about 10 - 12 layers with some motion. I haven't flattened the
    layers ( I don't know how too, or even know if I'm supposed to do
    that at all).
    I am trying to take the last of the constructed square flag
    and transform the Square into a Circle encompassing all of the
    elements within the square in a nice smooth motion.
    What is the best way for me to go about this?
    Thank You

    First off...no need to flatten layers. In fact, there's no
    such thing in Flash (unlike Photoshop or Fireworks). You can only
    delete layers (not to be confused with Layer Folders whichcan be
    collapsed on the timeline, but not flattened). Most animations need
    their own layer anyway and the number of layers won't in and of
    themselves effect the size of the resultant SWF (the contents of
    those layers will, but adding more layers won't make too much
    difference).
    Secondly, for the animation effect, you probably want to swap
    out your finished square flag (multiple layers) for a single
    graphic (new layer). Then, depending on the exact effect you want,
    you could use a circular mask on the square or perhaps shape tween
    the square to a circle.
    Hope that helps!

  • Newbie help with 12i and firefox java issue

    We are in the testing stages for a 12i upgrade. I’m currently testing browser and java version compatibility using an upgraded test system. My problem is the version of java on the desktop client. IE7 will launch the apps fine with any version of java. However, any version of Firefox (including just released v3) will not launch java unless java version 5 update 13 is loaded. I’ve reviewed several metalink docs including 389422.1 and 393931.1 and have used the workaround listed forcing FF to use the older version of java. However, that means that we will have to roll out this older version of java to all clients to use Firefox. During my research I found where Oracle provides a techstack update for 11i (290807.1) that will fix this issue and allow Firefox to work with newer versions of java. Has anyone else run into this issue and if so how did you address it? Is there a 12i update that will fix this issue? I’m a newbie that’s started supporting Oracle, etc. so forgive me for any ignorance I show on the subject. Thanks in advance.

    Tod,
    It sounds like your Oracle E-Business Suite Release 12 instance is configured to request end-users to use JRE 1.5.0_13.
    Firefox has a known limitation (or feature, depending on your point of view): it will invoke only the specified JRE version requested by the E-Business Suite, even if later versions of the JRE (e.g. 1.6.0_03) are installed on the same desktop.
    This behaviour is explained in more detail in Note 290807.1 in Appendix A. Since this behaviour is hardcoded into Firefox, your options are:
    1. Configure your Oracle E-Business Suite Release 12 environment to request a later version of JRE installed on your Firefox-equipped desktops
    2. Use IE -- it doesn't enforce static versioning.
    3. Contact the Mozilla team and request that they provide a new option to use either static versioning (the status quo) or the latest JRE version installed on the desktop.
    Regards,
    Steven

  • Help with WRT54GS on FiOS (ethernet, not coax)

    Hey guys, I'm new here and just trying to get some help with this unsolvable problem that I just started having with my Linksys WRT54GS and Verizon FiOS last week.
    To simplify my full story and actual issue here, I put it all into points to try and make it simpler to understand:
    -In Fall of 2007, I switch from Comcast to Verizon FiOS after getting screwed over waiting for two weeks and never getting a new router, as the first one was fried in a thunderstorm
    -Little brother knocks over the first Actiontec router and it breaks
    -Actiontec replacement router's wireless is nonexistant (MI42WR)
    -After trying out bridging the Linksys to the Actiontec, it proves to be much more of a pain than actual solution to lack of wireless
    -Switched from coax to full cat5 ethernet last year to use Linksys WRT54GS
    -Been happily directly connected from ONT to Linksys WRT54GS via cat5 ethernet for the past year while the wireless is perfect for the other computers
    (last week)
    -Turned off Linksys router for one night last week to give it an over night rest
    -Has not been able to connect to Verizon with old WRT54GS or brand new WRT54GL router (That I'm now returning)
    -ONT ethernet light outside still has a green light indicating it's working
    -I do not want to bridge the Actiontec and Linksys again
    -I do not want to go back to using the Actiontec for anything, but stuck with it for now
    -Has reset the connections of the router, computer and released the DHCP plenty of times, but to no avail
    -Has upgraded the firmware of my WRT54GS before typing this and still nothing
    -No connection for any Linksys router, but the Actiontec works
    I can't think of a solution except perhaps trying one from another company, like D-Link.. (sad face) I'm already returning the new router on monday, since I don't believe that my WRT54GS is even broken if the new one isn't connecting either. So I'm just thinking that perhaps Verizon has done something that isn't allowing any of my Linksys routers to connect, since they happily started charging me an extra $10-12 on the FiOS bill without notice. Though at this point, I have a hard time believing that even switching to another router company and using their products will do anything for me..
    At this very moment, I'm suffering with this awful stock Verizon router and my parents and aunt have been complaining for the past two weeks. Hopefully someone here knows what the real problem may be that can chime in with some help.
    Solved!
    Go to Solution.

    Yep, I sure have done exactly what you said to do. I wasn't able to edit my post, but that's exactly what I had to do when I was doing tests with the Verizon technician over the phone. I also reset all of the settings within my computer and browsers.. Still, the only router that works is the Actiontec router that I have been trying to avoid. The other Verizon techs during the day don't help at all, but the one time I called at like 2am at least TRIED to help me out with my Linksys router..
    I've even gone as far as switching the ethernet cable from the ONT that goes to the WAN port of the Linksys to go to the computer's ethernet port and moving the other end to the Lan 1-4 jacks, while using a whole new cable for the ONT --> Linksys WAN.
    I still got the green light from the ONT and I still got no connection from Verizon.. There's no way I'm switching out from Verizon FiOS, but this is really giving me a headache trying to solve this issue.
    Message Edited by KOkun on 05-10-2009 09:38 PM

  • Wanted: Help with thread in spanish; guitar not recording

    Can someone please help with this thread?
    GarangeBand No Reconoce Mi Guitarra Audio
    The op has trouble to connect his guitar. I cannot interview him in spanish, and he does not know to ask in English.
    Appriciate any help.
    Léonie

    Hi Borris12,
    I'll clear this up for you and let you know whats happened.
    Could you drop me in an email please with your BT account and telephone number along with a link back to this thread.
    Just send to the email address in my profile and mark FAO Craig please.
    Thx
    Craig
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)”
    td-p/30">Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Will an Airport Express help with the signal I am not receiving on my Smart TV?

    Will the Express help with internet issue's I have with my new Smart TV?

    If you already have another Apple AirPort router that is providing your wireless signal, then a new AirPort Express could extend that wireless signal to provide a stronger wireless signal to the TV....assuming that the TV connects using wireless.
    Is this what you are asking?
    Or, would the Express provide other services to "help"?

  • Help with After Effects

    I just upgraded to PP CS4 to CS5 Premium with After Effects and Photoshop.  I'm trying hard to figure things out but I'm unfamiliar with these programs and have no idea where to begin to learn.  I've tried watching various tutorials, but they skip over basics, and unfortunately, that's what I need.  I
    Can anyone recommend a really good book or video or something to get me started?  I know there's so much to learn and I'm so eager to learn it all.  However, I don't even know how to get the footage from CS5 to After Effects.
    One more question - I'm working on a video right now in CS5. The girl in the video has rosacea and I want to take the red out of her face.  Is this possible in After Effects?  If so, can someone please tell me how to go about doing it - or suggest a tutorial that deals with such an issue?
    Thank you so much,
    Jules

    > Do you have any idea which tool in after effects I would use, and how,
    to remove color from an area on a video and blend it with the
    surrounding area.  Or if anyone knows of a tutorial explaining that
    process I would so appreciate it.
    You should ask your After Effects questions on the After Effects forum:
    http://forums.adobe.com/community/aftereffects_general_discussion
    Here are two video tutorials that show different ways to selectively apply an effect to a specific area:
    https://www.video2brain.com/en/videos-1501.htm
    http://www.peachpit.com/podcasts/episode.aspx?e=8822f9a1-93c5-4a00-8697-a54b653c7aaf
    But you should really begin at the beginning and learnt he basics of After Effects first.

  • Help with creating an animated java applet...

    Hello, everyone! I'm working on a homework assignment for my Intro to Java class, and I'm having a problem I've never run into before. My assignment is to create a animated Java applet which displays an image of an alien spaceship which travels in diagonal lines across the applet area. My main problem is that when I try to compile my code, I get three "cannot find symbol" errors about my variable "alien." I can't figure out why declaring it as a class variable hasn't solved my problem. The errors pop up for the repaint() method, as well as the pane.add and the paintIcon. Here's my code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.Timer;
    class DrawAlien extends JPanel
    public class Alien extends JApplet implements ActionListener
      ImageIcon alien;
      public void init()
        Container pane = getContentPane();
        alien = new ImageIcon(getClass().getResource("alien.gif"));
        pane.setBackground(Color.black);
        pane.add(alien);
        Timer timer = new Timer(30, this);
        timer.start();
      public void actionPerformed(ActionEvent e)
        alien.repaint();
    }I've only posted the section which I think is relevant to my problem, but I can post the rest if anyone thinks it's necessary.
    I'm aware that the code isn't ready yet in several other ways, but I don't think I can move on until I figure out what's up with the "alien" variable. I don't need anyone to write code for me or anything like that, I just lack perspective here. A couple hints in the right direction would be invaluable. Thanks!
    Edited by: springer on Nov 25, 2007 10:46 PM

    You can?t add ImageIcon into pane, you can do like below.
    alien = new ImageIcon(getClass().getResource("alien.gif"));
        pane.setBackground(Color.black);
        JLabel label = new JLabel(alien);
        pane.add(label);

  • Help with After Effects? Null Layer and Text not working?

    In after effects cs5.5 on mac, im motion tracking as normal, and the track works fine, then when i add the null layer and edit the tracking target to the null layer, the screen goes black, and all i can see is the null layer as a red box moving along the motion track path (i cant see the path) also, whenever i try to add text, (which im trying to motion track via attatching to the null layer) the text is invisible, when the screens black, all i can see is the wire frame of the text next to the square null layer, im pretty new to after effects, but im following tutorials as i should, and its just not working as it shows in all the videos ive tried, please help!

    Check whether you have wireframe mode enabled/ Live Update disabled. Sounds like one of those cases. Other than that this could be OpenGL issues, so turn it off in the prefs. Also check your comp size vs. the size of the footage you are tracking. Tracking works relative to the layer, so if the comp is too small, the values would be so large they end up being outside the comp.
    Mylenium

  • Will this help with windows vista u tube not playing in full screen?

    I have windows vista and hadn't seemed able to get full screen to work with u tube. I tried going to google chrome and then to the u tube page. Click on the icon in the address bar that shows www.youtube.com ( It's on the left next to the address ). This shows you view site information. Run you cursor error over each permission on the right. You are allowed to change each permission to allowed by you. I allowed by clicking on each one all but the: locations, notifications, mouselock, and media. When you are done, you may click outside of this box to have it go away. The you tube page will ask you to reload to have permissions take effect. After I did this I also went to the box to customize and control google chrome wich is way up in the right corner either having three small lines or may be a gear box. I clicked on this and went to tools and then clicked on extensions. It will show you google docs, mcafee, or whatever you have. I went down and clicked on get more extensions. This should bring you to chrome web store. The search is up on the left. type in : window expander for youtube and hit the enter key. click on add to chrome next to the window expander appliction. I exited out and went back to you tube. My videos play in full screen. Hope this can help someone.

    Here's the location:
    http://teknigroup.com/courseware/Inventor%20Level-I/module1/images/clip0014.flv
    Dennis Jeffrey, AICE, MICE
    260-312-6188
    Instructor/Author/Sr. App Engr.
    Inventor 11 Professional SP2
    HP Pavillion Zv5000 (Modified)
    Geforce Go 440, Driver: .8185, 2GB RAM
    XP Pro SP2, Windows Classic Theme
    http://www.design-excellence.com
    "Nickels55" <[email protected]> wrote in message
    news:eqft16$35g$[email protected]..
    > where s this file on your server "clip0014.flv"
    >
    > Create a direct link to it and post it here. If you
    click on that link and
    > get
    > a page not found error then you need to have your server
    setup for the
    > correct
    > FLV mime type:
    >
    >
    http://www.adobe.com/go/tn_19439
    >

  • Need Help with an effect

    Does anyone know how to take an image of grass and make it
    look like it's blowing in the wind? I've seen images bent in
    directions before, just don't know how.
    Please help.
    Thanks.

    If your grass is a bitmap - then my FLA won't help you
    anyway. You can't manipulate bitmaps like
    that in flash - your only options are to re draw it in flash
    with vectors or use Anime Studio's
    Bones and Warp Image features (awesome!!!) - check it out at
    www.e-frontier.com. Then import it into
    flash as an image sequence.
    Chris Georgenes
    Animator
    http://www.mudbubble.com
    http://www.keyframer.com
    Adobe Community Expert
    *\^^/*
    (OO)
    <---->
    San Diego Living wrote:
    > hmmm I get an error trying to open your fla file :-(
    >
    > My grass image is not a vector image. I'm guessing it
    has to be to make this
    > type of effect? I do want it to look somewhat like what
    you have, only my
    > grass has been mowed a lot more ;-)
    >
    >
    >

  • Help with an effect?? Patrick, maybe?

    Alright... I'm not very experienced in motion. At all, really, but I do use AE here and there. I'm going after a background effect, and I'm having a little trouble getting it exactly right in AE. I was just searching through the forums, and came across Patrick Sheffield's "fun with" threads, and saw something that looked similar to what I'm after.
    I've got green screen footage of a band that I shot, and I want to create a background for the performance peice of the music video.
    I'm going to take one high rexz photo of a room (a cathedral to be exact), and what I'd like to do is break it up into about 15-25 rows and columns (squares).
    Then I want to add a little motion to the squares so it give's a semi-realistic, semi-dreamy feel to the entire backdrop.
    Think a bunch of squares, almost lining up, and "floating" around causing almost a stop motion looking effect.
    If you've seen the show "Cash Cab" on the Discovery channel, they have an intro that's SORT of what I'm after. Not exactly, though.
    Any suggestions on what would be the easiest way to go about this? The tutorial from Patrick is located here: http://discussions.apple.com/thread.jspa?messageID=1168485&#1168485
    and I was just thinking that I could do my own twist on that, and hopefully come out with what I'm after?
    Also, in the long run, it's going to be linked and tracked to the greenscreen footage, as my camera was in motion most of the time during the shoot. Just keep that in mind.
    Any help would be MUCH appreciated, and if you don't understand exactly what I'm talking about, ask, and I'll try to explain it better.
    thanks
    -brown

    OK... got a little ahead of myself, sorry.
    I've come to the conslusion that I absolutely HATE being a newb. It's just frustrating, seeing how I make a living working in FCP, and yet I have no skills when it come's to stuff like this.
    Here's what I've done:
    I opened the "shatterA" project and linked it to a picture. Exported it to a QT movie with an alpha channel (lossless...), and turned off the pre-multiply flag.
    I've now got the clip with the small peice of my picture zipping across the screen.
    Now's where I'm running into problems. I open up the "Shatter" project and link my picture to it. I see that there is a lot going on in the timeline as far as replicator, shatter 02a, random motion... but all I have is my main picture in it's entirety. I'm assuming it's supposed to be like this at this point, but when I play it through, the picture slowly pulls towards the bottom of the screen and ends about an inch lower than where it started. Is it supposed to do this?
    Anyway, I then bring in my small clip that I made and set it in the center of my window. I see one small peice in the upper right corner, click on it, click replicate. Now I'm unable to click on the "replicator" tab in the "Inspector"? It's not locked, cause I can lock it and unlock it, but when I click on it, it just goes a darker grey and won't show any info. ?
    Then I'm thinking maybe I'm supposed to be doing this in the small "dashboard" window. I click that and set it from "rectangles" to "line", and I now have a line of the small image in the upper left corner. Well, your instructions then say to "set the origin and end points to 0,0", and the number of points to the number of frames from the step above. Huh? I don't know where the origin and end points are? I see "origin" in the dashboard, and can click the tab to set either "start point, center point, or end point", but they are directly connected to the number of "points" just above the origin section, and they all set to whatever the "points" are set.
    I may be way off and making a fool out of myself, but at this point, I don't care. I'm come up with something in After Effects that I could use, but I'd rather try and figure this out. What am I doing wrong here? Am I even supposed to be bringing in the shatterA clip into the Shatter project, or should I be starting a new project from the shatterA clip? Why can't I click on the Replicator tab in the Inspector?

  • HELP WITH TRANSFERING FILES BY JAVA

    Hi everybody!
    I'm making a chat with java (Sever and Client) using socket.
    I'd like to know how could I transfer files in binary from this chat.
    Could anyone help me??
    Thanks in advance!

    There's nothing wrong at all about asking questions, or being new to Java. I certainly have a whole world of stuff to learn myself.
    Nevertheless, the project you propose is not something a "new user" is typically going to be able to tackle fresh out of the gate. Spend some time with the tutorials, try some stuff out, and when your code breaks, bring it here for review.
    Admittedly, I won't be able to help you much with Sockets... :o)

Maybe you are looking for

  • Webi report error (BO 4.0)

    Hi All, I need your help, now m working on BO 4.0. While refreshing Webi report in BO 4.0, getting error: Database error: The SAP SSO authentication process will fail because the current user doesn't have an alias that matches system BM7CLNT100.. (IE

  • Some problem WRT-54gs

    Hello! I have a router LinkSys wrt 54 gs. (ver. 5.1 firmware 1.50.5). Ther is a problem with it. Computers of the work's group can't see each other's Netbios names connecting to the router.  How to resolve this problem ?

  • Sales Order Creation With out Exicse Duty

    Dear All, I want to create the sales order with out excise duty calculation. But for this customer is excise applicable for other material. Thanks Saravanan R

  • Change Management process for Report Painter tool...

    Hi everyone, I am curious to see what process is used out in the industry to allow report painter reports to be defined and executed in production.  Do users define their reports in DEV and use the STMS or the export/import feature or do they create

  • Problems with wireless connection

    I've been having trouble with a laptop connecting wirelessly to my home hub  Twice in the past few weeks the connection has dropped out and despite resetting the hub and rebooting the laptop I've had no connection for two days at a time, then it come