Need Help In Rotation  (SSCCE included)

Hi guys ,
I need your help please. I have spent hours trying to solve it but not working.
I have an image i am rotating when the user clicks on a button. But it is not working.
I would like to see the image rotating gradually to 90 degrees till it stops but it doesn't. The image must rotate 90 degrees gradually when the button is clicked.
Please just replace the image in thee CrossingPanelSSCE class with any image of your choice. Just put the image in your "images" folder and name it as in: (images/railCrossing.JPG).
***** NOTE: *****
All the classes are in separate files. The real program looks exactly the same as the SSCCE below. Please don't make the whole thing as a single file. Each class is in a separate class file. It is because everything is in a separate file i am struggling to make it work. I need a solution when the classes are in separate files like these. I hope am clear here.
Please i have to remove all the import statements in order not to exceed the maximum characters
These are the SSCCE code :
public class RotateButtonSSCE extends JPanel implements ActionListener{
       private JButton rotate = new JButton("Rotate");
     public RotateButtonSSCE() {
          this.setBorder(BorderFactory.createTitledBorder("Rotate Button "));
          this.rotate.addActionListener(this);
          this.add(rotate);
     public void actionPerformed(ActionEvent ev) {
          VisualizationPanelSSCE.rotatetheCrossing();
public class CrossingPanelSSCE  extends JPanel{
     private static final long serialVersionUID = 1L;
     // private data members
      private Image crossingImage;
     private int currentRotationAngle;
     private int imageWidth;
     private int imageHeight;
     private AffineTransform affineTransform;
     private boolean clockwise;
     private static int ROTATE_ANGLE_OFFSET = 2;
     private int xCoordinate;
     private int yCoordinate;
     private static javax.swing.Timer timer;
     private void initialize(){
          this.crossingImage = Toolkit.getDefaultToolkit().getImage("images/railCrossing.JPG");
          this.imageWidth = this.getCrossingImage().getWidth(this);
          this.imageHeight = this.getCrossingImage().getHeight(this);
          this.affineTransform = new AffineTransform();
          this.setCurrentRotationAngle(90);
          timer = new javax.swing.Timer(20, new MoveListener());
     public CrossingPanelSSCE(int x, int y) {
          this.setxCoordinate(x);
          this.setyCoordinate(y);
          this.setPreferredSize(new Dimension(50, 50));
          this.setBackground(Color.red);
          TitledBorder border = BorderFactory.createTitledBorder("image");
          this.setLayout(new FlowLayout());
          this.initialize();
     public void paintComponent(Graphics grp){
        Rectangle rect = this.getBounds();
        Graphics2D g2d = (Graphics2D)grp;
        g2d.setColor(Color.BLACK);
        this.getAffineTransform().setToTranslation(this.getxCoordinate(), this.getyCoordinate());
          //rotate with the rotation point as the mid of the image
        this.getAffineTransform().rotate(Math.toRadians(this.getCurrentRotationAngle()), this.getCrossingImage().getWidth(this) /2,
                                           this.getCrossingImage().getHeight(this)/2);
        //draw the image using the AffineTransform
        g2d.drawImage(this.getCrossingImage(), this.getAffineTransform(), this);
     public  void rotateCrossing(){
          int test = currentRotationAngle % 90;
        if(test == 0){
             setCurrentRotationAngle(currentRotationAngle);
             timer.stop();            
         //repaint the image panel
         repaint();
      private class MoveListener implements ActionListener {
             public void actionPerformed(ActionEvent e) {
                rotateCrossing();
// getters and setters here
I have to remove all the gettters and setters in order  not to exceed the maximum characters
public class VisualizationPanelSSCE extends JPanel{
          //private data members
          private GeneralPath path;
          private Shape horizontalRail;
          private Shape verticalRail;
          private static int LENGTH = 350;
          private static CrossingPanelSSCE crossingP;
           private void initializeComponents(){
                this.path = new GeneralPath();
                this.horizontalRail = this.createHorizontalRail();
                this.verticalRail = this.createVerticalRail();
                this.crossingP = new CrossingPanelSSCE(328,334);
          public VisualizationPanelSSCE(){
               this.initializeComponents();
               this.setPreferredSize(new Dimension(400,400));
                TitledBorder border = BorderFactory.createTitledBorder("Rotation");
                this.setBorder(border);
          public GeneralPath getPath() {
               return path;
          public void setPath(GeneralPath path) {
               this.path = path;
          private Shape createHorizontalRail(){
               this.getPath().moveTo(5, LENGTH);
               this.getPath().lineTo(330, 350);
               this.getPath().closePath();
               return this.getPath();
          private Shape createVerticalRail(){
               this.getPath().moveTo(350, 330);
               this.getPath().lineTo(350,10);
               this.getPath().closePath();
               return this.getPath();
          public void paintComponent(Graphics comp){
                super.paintComponent(comp);
               Graphics2D comp2D = (Graphics2D)comp;
               BasicStroke pen = new BasicStroke(15.0F, BasicStroke.CAP_BUTT,BasicStroke.JOIN_ROUND);
              comp2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                      RenderingHints.VALUE_ANTIALIAS_ON);
              comp2D.setPaint(Color.black);
              comp2D.setBackground(Color.WHITE);
              comp2D.draw(this.horizontalRail);
              this.crossingP.paintComponent(comp2D);
          public static CrossingPanelSSCE getCrossingP() {
               return crossingP;
          public void setCrossingP(CrossingPanelSSCE crossingP) {
               this.crossingP = crossingP;
          public static void rotatetheCrossing(){
                Runnable rotateCrossing1 = new Runnable(){ 
                      public void run() {
                         crossingP.getTimer().start();
               SwingUtilities.invokeLater(rotateCrossing1);
     }Main Application
public class TestGUISSCE{
    private RotateButtonSSCE rotate = new RotateButtonSSCE();
    private VisualizationPanelSSCE vision = new VisualizationPanelSSCE();
    public void createGui(){
          JFrame frame = new JFrame("Example");
          frame.setSize(new Dimension(500, 500));
          JPanel pane = new JPanel();
          pane.add(this.vision);
          pane.add(rotate); 
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         frame.setVisible(true);
         frame.add(pane);
    public static void main(String[] args) {
        new TestGUISSCE().createGui();
}thank you very much for your help

First off, that's not an SSCCE by any stretch of the imagination. But aside from that, there's a few things I've noticed.
1. Don't use statics, that's one of the biggest issues with your code, you've used static fields, and static methods for what should be instance fields/methods
2. Think about what's happening in this method (I've added a System.out so that you can get a better idea)
    public void rotateCrossing() {
        System.out.println("CurrentRotationAngle: " + currentRotationAngle);
        int test = currentRotationAngle % 90;
        if (test == 0) {
            setCurrentRotationAngle(currentRotationAngle);
            timer.stop();
        // repaint the image panel
        repaint();
    }3. I know you've probably removed other code from your RotateButton, but what you are doing, adding a titleBorder, doesn't require you to extend JButton, you can easily add that junk without extending JButton. Don't extend unless you are creating a new type of the class.
4. In your TestGUI you do the following:
         frame.setVisible(true);
         frame.add(pane);The order is important here, because once you call setVisible() or pack() all calls to the non-thread safe methods on a Swing component must be made from the EDT (google that if you don't know what it means). In most cases you will probably get away with that (and it's even possible that add() is thread-safe (I haven't checked the documentation, feel free to do so))

Similar Messages

  • Need Help with Rotating Banner ad(please help)

    I am currently working on a flash project that rotates banners out auto and with button control, got the buttons to work just cant figure out how to get it  auto play throgh my bannersThis is the code i have for my project I am working on:
    My Projects has 3 layers:
    ( layer3)Actions:(coded on first frame)     Movieclip.prototype.elasticMove =  function(target, accel, convert) {
         step = step * accel + (target - this._x) * convert;
         this._x += step;
    (layer 2) My movie clip(it is one long strip that has all the banners in a row)(coded on first frame):nClipEvent  (enterFrame) {
                                         elasticMove(_root.newX, 0.5, 0.3)
    onClipEvent(load){
    _root.newX= 1200;
    (layer1)(my buttons)(only code for one button all are the same code except the actual position they call):on(release){
    _root.newX=1200;
    Let me know if i need to be a little more clear or you want a snap shot of my work, Another individual suggested that I use this code in the action layer:
    var newXA:Array=[0,600,1200,1800];
    var index:Number=1;
    setInterval(newXF,9000);
    function newXF(){
    _root.newX = newXA[index%newXA.length];
    It seems to work in the sense after a little bit it does change the banner auto and after you stayed on a banner for a while, but it always changes to the same banner.
    PLEASE HELP SOMEONE!!!!!!

    Incognito mode is a Google Chrome setting when you open a new window (Cmd+Shift+N on a Mac Ctrl+Shift+N on Windows) It opens a "private" window with no cookies and no tracking. The problem with it is that when you disable cookies, your license files are not sent to the site (whetehr it's YouTube or xFinity or any other that uses license files for paid content)  and it treats you as if you're a first time visitor. Paid videos won't play wihtout the cookies sending the license file info.
    This isn't a Flash Player setting. It's in Chrome. I did some research and according to Google, "Incignito" mode is off by default, and can ONLY be activate by the keyboard shortcut. There IS a way to disable it from the registry http://dev.chromium.org/administrators/policy-list-3#IncognitoModeAvailability

  • Need help repairing Driver - pic included.

    Hey guys, i have been trying to get boot camp to work on my macbook for ages. First i got it to work, but then when i used windows, it wouldn't recognize my wireless in my macbook. Anyways, to make a long story short, i used the boot camp assistant tonight to delete the windows partition, then i was trying to re-install windows XP.
    As most of you know, the first step is to partition the disks, when i told it how much to partition of each it came up with a driver error saying i needed to repair the disks.
    so, i went to disk utility to try and verify the disk, its did, but then it came up with this:
    http://i50.photobucket.com/albums/f344/kawirider04/Untitled-1-1.jpg
    any help would be great guys, i eventually want to run windows xp on my blackbook so i can play World of Warcraft with a higher framerate. Anyways, thanks in advance!
    BTW - after i 'verify disk' i can't click on 'repair disk'
    Black Macbook 1gb Ram   Mac OS X (10.4.8)  

    Boot up from your Install DVD and then launch Disc Utility to verify/repair the disc and permissions as well.

  • Need help with rotation in Java

    Hi, I am trying to write an asteroids remake and I have gotten pretty far, but I'm stuck when I try to rotate my ship object. I have googled various formula's etc. but the code doesn't work as expected. I have posted the relevant ship.class below:
    import java.awt.Polygon;
    import java.awt.Graphics;
    import java.awt.Shape;
    import java.awt.*;
    public class Ship extends MyShape {
         Polygon body;
         //line2D.Double base;
         //line2D.Double lside;
         //line2D.Double rside;
         double dx;
         double dy;
         double angle;
         double dAngle;
         Graphics2D gg;
         public Ship(double a,double b) {
        x=a;
        y=b;
        //base=new line2D.Double(x,y,x+10,y);
        //lside=new line2D.Double(x,y,x+5,y-10);
        //rside=new line2D.Double(x+10,y,x-5,y-10);
        body=new Polygon();
        body.addPoint((int)x,(int)y);
        body.addPoint((int)x+20,(int)y);
        body.addPoint((int)x+10,(int)y-30);
        public void advance(){
        public double getX(){
             return x;
        public double getY(){
             return y;
        public void setY(int y){
             this.y=y;
        public void setX(int x){
             this.x=x;
          public void move(int delta){
          body.translate(0,delta);
           // body.addPoint(x,y);
           // body.addPoint(x+20,y);
           // body.addPoint(x+10,y-30);
        public void rotate(double x, double y, double theta){
             //body=new Polygon();
             theta=theta*(Math.PI/180);
             x=((x-(x+10))*Math.cos(theta)-y*Math.sin(theta)+(x+10));
             y=(y*Math.cos(theta)+(x-(x+10))*Math.sin(theta)+y);
                 //body.translate((int)Math.round(x),(int)Math.round(y));
                 body.addPoint((int)Math.round(x),(int)Math.round(y));
                 body.addPoint((int)Math.round(x+20),(int)Math.round(y));
                 body.addPoint((int)Math.round(x+10),(int)Math.round(y-30));
                 //g.rotate(theta,x,y);
        public void warpAround(int x,int y){
             body.translate(x,y);
        public void draw(Graphics2D g){
             g.draw(body);
    }If you could help me I would appreciate it,
    Sincerely,
    LJ
    P.s. I know its a little rough, I wanted to clean it up soon.
    Message was edited by:
    nipponman21

    Ok, I have officially given up on trying to get it to work via the mathematical definitions of a rotational transform. I decided to use the affine transform and it was MUCH easier than I thought to implement; however, the results are still unexpected, the ship actually turns and moves in a circle which is not what I want, here is the source (its a standalone app so you can compile and run it if you want) import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    public class BouncingBall extends JFrame implements Runnable, KeyListener {
        //Windows
        private JFrame frame;
        private DrawPanel pane; 
        private Thread t;
        //Game Vars.
        public Ball ball;
        public Ship ship;
        public static final int FPS = 30;
        public static final int WIDTH = 800;
        public static final int HEIGHT = 600;
        public static final int MAXSPEED = 30;
        public static double dx,dy;
        public static int theta=0;
        public BouncingBall() {
             frame=new JFrame();
             pane=new DrawPanel();
             frame.getContentPane().add(pane);
             frame.setVisible(true);
             frame.pack();
             frame.addKeyListener(this);
             frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             initGame();
             start();
        public void initGame(){
             ship=new Ship();
             ball=new Ball();
        public void start(){
        t=new Thread(this);
             t.start();
            public void run(){
                 while(true){
                      try{
                      Thread.sleep(10);
                      }catch(Exception e){}
                      pane.repaint();
        public static void main(String[] args) {
            new BouncingBall();
        public void keyPressed(KeyEvent e){
            switch(e.getKeyCode()){
                   case KeyEvent.VK_UP:
                   dy--;
                   if(dy<MAXSPEED){
                   ship.move(0,dy);
                   else{
                   dy=MAXSPEED;
                   ship.move(0,dy);
                   break;
                   case KeyEvent.VK_LEFT:
                        theta++;
                        break;
                   case KeyEvent.VK_RIGHT:
                        theta--;
                        break;     
        repaint();
        public void keyReleased(KeyEvent e){
            switch(e.getKeyCode()){
                   case KeyEvent.VK_UP:
                   case KeyEvent.VK_DOWN:
                   dy=0;     
                   break;
        repaint();
        public void keyTyped(KeyEvent e){
        class Ball{
              double x;
              double y;
             private Arc2D.Double body;
             public Ball(){
                  x=600.0;
                  y=500.0;
                  body=new Arc2D.Double(x,y,30.0,30.0,0.0,360.0,Arc2D.OPEN);
             public void move(double dx,double dy){
                  body=new Arc2D.Double();
                  x+=dx;
                  y+=dy;
                  body=new Arc2D.Double(x,y,30.0,30.0,0.0,360.0,Arc2D.OPEN);
             public double getX(){
             return this.x;
             public double getY(){
             return this.y;
        class Ship{
              double x;
              double y;
              double angle;         
             private Polygon body;
             public Ship(){
                  x=400.0;
                  y=300.0;
                  angle=0;
                  body=new Polygon();
                  body.addPoint((int)Math.round(x),(int)Math.round(y));
                  body.addPoint((int)Math.round(x+15),(int)Math.round(y));
                  body.addPoint((int)Math.round(x+7.5),(int)Math.round(y-20));
             public void move(double dx,double dy){
                  body=new Polygon();
                  x+=dx;
                  y+=dy;
                  body.addPoint((int)Math.round(x),(int)Math.round(y));
                  body.addPoint((int)Math.round(x+15),(int)Math.round(y));
                  body.addPoint((int)Math.round(x+7.5),(int)Math.round(y-20));
             public double getX(){
             return this.x;
             public double getY(){
             return this.y;
        class DrawPanel extends JPanel{
                public DrawPanel(){
                  setBackground(Color.black);
                  setPreferredSize(new Dimension(BouncingBall.WIDTH,BouncingBall.HEIGHT));
             public void paintComponent(Graphics g){
                 super.paintComponent(g);
                 Graphics2D g2d=(Graphics2D)g;
                 g2d.setColor(Color.white);
                 g2d.fill(ball.body);
                 g2d.rotate(theta*Math.PI / 180.0);     
                 g2d.fill(ship.body);
    }Can you guys maybe run this and look over the code and tell me what I'm doing wrong? I would definitely appreciate it Thanks.

  • I need help with rotation interpolators

    I draw a big sphere which represents the earth and distribute on this big sphere small spheres represent countries.
    Now I want draw cone move between 2 small sphere.
    I have used rotation path interpolator but the motion of the cone not appear to me since the cone motion is within the big sphere.
    I want the cone start from first small sphere then turn around big sphere ti go to second small sphere.
    could you help me please?
    this is the code I used to make the motion
    float[] knots = {0.0f, 1.0f};
            Quat4f[] quats = new Quat4f[2];
            Point3f[] positions = new Point3f[2];
            positions[0] = flowNodes.get(sourceNode);
            positions[1] = flowNodes.get(destNode);
            // some checks for source and destination positions to set the right angel for the motion
            if(positions[0].x < positions[1].x&& positions[0].y < positions[1].y)
                 quats[0] = new Quat4f(1.0f,0.0f, 1.0f, (float)(-rotationAngel+Math.toRadians(45)));
                 quats[1] =  new Quat4f(1.0f,0.0f, 1.0f,(float)(-rotationAngel+Math.toRadians(45)));
            else if(positions[0].x==positions[1].x&&positions[0].y<positions[1].y)
                quats[0] = new Quat4f(1.0f,1.0f, 0.0f, (float)(-Math.toRadians(180)));
                quats[1] =  new Quat4f(1.0f,1.0f, 0.0f,(float)(-Math.toRadians(180)));
            else if(positions[0].x < positions[1].x&& positions[0].y > positions[1].y)
                quats[0] = new Quat4f(1.0f,0.0f, 1.0f, (float)(rotationAngel+Math.toRadians(10)));
                quats[1] =  new Quat4f(1.0f,0.0f, 1.0f,(float)(rotationAngel+Math.toRadians(10)));
            else if(positions[0].x == positions[1].x&& positions[0].y == positions[1].y)
                quats[0] = new Quat4f(1.0f,0.0f, 1.0f, (float)(rotationAngel+Math.toRadians(45)));
                quats[1] =  new Quat4f(1.0f,0.0f, 1.0f,(float)(rotationAngel+Math.toRadians(45)));
            else
                quats[0] = new Quat4f(1.0f,0.0f, 1.0f, (float)(rotationAngel));
                quats[1] = new Quat4f(1.0f,0.0f, 1.0f,(float)(rotationAngel));
    *creating the interpolator and give for this interpolator the highest priority to begin*
    motion now and then adding the interpolator to the branch group
            RotPosPathInterpolator rotPosPath = new RotPosPathInterpolator(alpha, arrowTG, arrowT3D, knots, quats, positions);
            rotPosPath.setSchedulingBounds(new BoundingSphere());
            rotPosPath.setSchedulingInterval(0);
            arrowGroup.addChild(rotPosPath); Edited by: walaa_akram on Jun 4, 2009 3:25 PM

    Please read through the help files. The w key activates rotation which will give you slightly different tools if the layer is 2D or 3D. The v key will give you the selection key. You should be able to click any tool in the tool bar. If you want to manually enter values press the r key with a layer selected in the time line to bring up rotation properties.
    I promise you that you cannot learn how to use After Effects efficiently without going through some training. I've been teaching AE for a little more than 20 years and I've never seen a single person successfully stumble through the app and produce anything other than a direct copy of someone else's project. Start here: Basic Workflow

  • Need help finding jars to include

    hi
    im developing an xml app -- i have my schema, ive used xjc.sh to create a bunch of binding, now Im trying to get my main test program to compile with all the xjc generated classes. At first I was getting about 100 errors so I figured my classpath was all messed up -- now Im getting about 42.
    I have some output and my classpath below. My question is, having just created my bindings and only wanting to compile my small test program, which jars/dirs do I need on my classpath. Here it is now; apologies for its length:
    .:/usr/java/j2sdk1.4.1_01:/data/NVO/staff/mharris/inst.linux/java:/data/NVO/soft.linux/ots/JAVOT/src:/data/NVO/soft.linux/ots/JAVOT/lib/breezetk.jar:/data/NVO/soft.linux/ots/JAVOT/lib/xerces.jar:/data/NVO/soft.linux/ots/JAVOT/lib/PrimArray.jar:/data/NVO/soft.linux/ots/JAVOT/lib/VOTableUtil.jar:/data/NVO/soft.linux/ots/JavaFits/fits.jar:/data/NVO/soft.linux/ots/JavaFits/image.jar:/data/NVO/soft.linux/ots/JavaFits/util.jar:/data/NVO/soft.linux/ots/tonic/nvo/classes:/usr/java/jwsdp-1.3/jaxb/lib/:/usr/java/jwsdp-1.3/jaxb/lib/jaxb-api.jar:/usr/java/jwsdp-1.3/jaxb/lib/jaxb-impl.jar:/usr/java/jwsdp-1.3/jaxb/lib/jaxb-libs.jar:/usr/java/jwsdp-1.3/jaxb/lib/jaxb-xjc.jar:/usr/java/jwsdp-1.3/jaxp/lib/endorsed/dom.jar:/usr/java/jwsdp-1.3/jaxp/lib/endorsed/sax.jar:/usr/java/jwsdp-1.3/jaxp/lib/endorsed/xalan.jar:/usr/java/jwsdp-1.3/jaxp/lib/endorsed/xercesImpl.jar:/usr/java/jwsdp-1.3/jaxp/lib/endorsed/xsltc.jar:/usr/java/jwsdp-1.3/jaxp/lib/jaxp-api.jar:/usr/java/jwsdp-1.3/jaxr/lib/jaxr-api.jar:/usr/java/jwsdp-1.3/jaxr/lib/jaxr-impl.jar
    here is some output:
    javac test.java dm/*.java dm/impl/*.java
    ./dm/impl/runtime/UnmarshallingContext.java:19: package javax.xml.namespace does not exist
    import javax.xml.namespace.NamespaceContext;
    ^
    ./dm/impl/runtime/UnmarshallingContext.java:21: package org.relaxng.datatype does not exist
    import org.relaxng.datatype.ValidationContext;
    ^
    ./dm/impl/runtime/UnmarshallingContext.java:44: interface expected here
    ValidationContext, NamespaceContext
    ^
    ./dm/impl/runtime/UnmarshallingContext.java:44: cannot resolve symbol
    symbol : class NamespaceContext
    location: interface dm.impl.runtime.UnmarshallingContext
    ValidationContext, NamespaceContext
    ^
    ./dm/impl/runtime/NamespaceContextImpl.java:22: cannot resolve symbol
    symbol : class XMLConstants
    location: package xml
    import javax.xml.XMLConstants;
    ^
    ./dm/impl/runtime/NamespaceContext2.java:28: cannot resolve symbol
    symbol : class NamespaceContext
    location: interface dm.impl.runtime.NamespaceContext2
    public interface NamespaceContext2 extends NamespaceContext
    ^

    You need to include the jar files from <JWSDP_HOME>/jwsdp-shared/lib as well.
    If you own the machine, you can stick all of the JAXB and shared jars in <JAVA_HOME>/jre/lib/ext. I suspect that this is less "correct," but it sure does trim the length of the classpath.

  • Need help with .asp Virtual Includes

    Hi,
    I am using;
    Dreamweaver 8
    Win XP Pro
    IIS6
    Virtual Directory Information in IIS:
    Local Path: C:\Inetpub\wwwroot\hseih
    Application Name: hseih
    Execute Permissions: Scripts Only
    Configurations>Options>Enable Parent Paths: Checked
    Read, Write, Browsing, Script Secure access, log visits,
    index this source: All Checked
    Dreamweaver Site Setup Information:
    Local Root: C:\Inetpub\wwwroot\hseih\
    Links Relative to: Site Root
    Server Model: ASP/VBScript
    Access: Local/Nework
    Testing Server Folder: C:\Inetpub\wwwroot\hseih\
    URL Prefix:
    http://localhost/hseih/
    Heres the code Im using in my index.asp file, where the
    footer.asp file is in the same directory.
    <!--#include virtual="/header.asp"--> or
    <!--#include virtual="header.asp"-->
    very simple, I believe I have everything setup correctly, and
    it should work. But I receive:
    Error Type:
    Active Server Pages, ASP 0126 (0x80004005)
    The include file 'header.asp' was not found.
    /hseih/index.asp, line 10
    However, it DOES work whenI add the root directory name into
    the include path as follows:
    <!--#include virtual="/hseih/header.asp"-->
    its like there's a setup issue somewhere, where IIS is
    misinterpreting the root of my site. When Im specifying to use the
    Site Root, and also the use of the "/" in the include path - doesnt
    that specify the root directory?
    Any insight would be greatly appreciate.
    Thanks!

    You web server configuration is what ultimately drives how
    your site is set
    up and how you navigate to all of your resources, whether
    they be include
    files, images, or what have you.
    Right now, the *root* of your web site, according to your IIS
    configuration,
    is c:\inetpub\wwwroot. This translates into
    http://localhost/. If you have
    your "hseih" folder within wwwroot, then it's a virtual
    directory, or
    subfolder, of the root. In other words,
    http://localhost/hseih/. So if
    you
    had a file in the "hseih" directory called "myfile.asp", then
    the path to it
    would be:
    http://localhost/hseih/myfile.asp.
    If, on the other hand, you reconfigure the web site in IIS to
    use
    c:\inetpub\wwwroot\hseih as the root of your web site as
    described in the
    configuration information I referred to earlier, the path to
    that same file
    would be
    http://localhost/myfile.asp.
    It's all a matter of telling IIS
    where the start of your web site is.
    The Local Root Folder config in the Local Info section of
    your site
    definition tells Dreamweaver where the files reside that
    you'll be editing.
    *Typically*, this lines up with the HTTP Address config in
    the Local Info
    section of your site definition. Not always, but most of the
    time.
    *Typically*, this also lines up with the URL Prefix in the
    Testing Server
    section of your site definition. Because you've got
    http://localhost/hseih/
    set up in the URL prefix *and* "c:\inetpub\wwwroot\hseih" set
    up in the
    local root folder everything is resolving correctly, because
    technically
    they're the same location. But, the thing to remember is
    "hseih" is a
    virtual directory within the site, it's not the root of the
    site (which is
    one level up from there).
    Any configuration URL that you set in your Dreamweaver site
    definition is
    pretty much there to tell Dreamweaver where to find things
    when it creates
    your preview pages, and other similar tasks. It's mostly
    there to make sure
    it builds links and references correctly for those functions.
    Once you have
    a grasp on those two items and know where the separate of web
    server and
    design tools occur, it makes a lot more sense.
    When you're working locally, which it sounds like you are,
    things are
    generally easier to configure because the local and remote
    info are the
    same. But when you begin working with outside web servers, it
    can get more
    complicated.
    Best regards,
    Chris
    "fmeenz" <[email protected]> wrote in
    message
    news:[email protected]...
    > chris -
    >
    > just reading your 2nd post about making the IIS root
    directory 'hseih'
    >
    > currently, my IIS local path for my virtual directory is
    set to
    >
    > Local Root: C:\Inetpub\wwwroot\hseih\
    >
    > is that not correct?
    >
    > when i browse
    http://localhost/hseih/ i do in
    fact see my index.asp page.
    > Its
    > the include files that arent working correctly. I am
    under the assumption
    > that, by adding a "/" to any reference -- link, image,
    include -- it
    > should
    > first start from the root of the site and pull from
    there. From what I
    > understand, I have set the root of my site to the hseih
    directory. please
    > correct me if im wrong.
    >
    > thanks
    > eric
    >
    >

  • IPhoto got videos my phone doesn't and that i need. when i synchronize my photos including videos they are still not getting on my phone. i need help...

    iPhoto got videos my phone doesn't and that i need. when i synchronize my photos including videos they are still not getting on my phone. i need help...

    You aren't running iOS if you are using iPhoto, or a Classic operating system.  Go to Apple menu -> About This Mac and find out what you really are running, and then use this link to post in the right place:
    http://discussions.apple.com/docs/DOC-2463

  • The basic sliders disappeared. Including the Exposure, Contrast, Highlights, Shadows, Whites, Blacks, Clarity and Vibrance Sliders are no longer available. I need help to get them back

    The basic sliders disappeared. Including the Exposure, Contrast, Highlights, Shadows, Whites, Blacks, Clarity and Vibrance Sliders are no longer available. I need help to get them back on the program. 
    I can't figure out where the sliders went and how to put them back on. Anyone have any suggestions?
    Thanks

    In Lightroom, go to the Window menu, select Panels, select Basic

  • HT203167 I look at my history of purchases including my songs and ringtones from iTunes. They are all there but my ringtones say I have to purchase them again in order to put them on my new iPhone that I just purchased from Rogers. I need help getting my

    I'm trying to get my ringtones that i purchased on my old iPhone onto my new one that I just got. They r in my history and when I click on them it says you have already purchased them, would you like to buy them again in order to download them. I did it with one already and I now need help so I don't have to buy them again. Can u help get them back please

    Ringtones are currently a one-time only download from the store. If you don't have them on your computer nor on a backup then you can try contacting iTunes support and see if they will grant you a re-download : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Progress bar after button click ------ code included . need help

    Hi,
    this is my code. i want the progress bar to move after i click the OK button but its not working. Need help urgently.
    public class LoggenGUI extends JFrame implements ActionListener{
    private JButton btnOk;
    private JProgressBar current;
    public LoggenGUI() {
    super("Login");
    this.setBounds(350,225,350,235);
    // this.setSize(300,300);
    this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    this.setResizable(false);
    this.btnOk = new JButton("Ok");
    // associating action event listener to it
    this.btnOk.addActionListener(this);
    this.current = new JProgressBar(0,2000);
    this.current.setValue(0);
    this.current.setStringPainted(true);
    this.setContentPane(pane);
    this.setVisible(true)
    }// end constructor
    public void iterate(){ 
    while(this.num < 2000){
    this.current.setValue(this.num);
    try{
    Thread.sleep(1000);
    }catch(InterruptedException e)
    this.num= this.num + 200;
    if(this.num >= 2000)
    this.dispose();
    this.prgrBar = new ProgressBar();
    this.current.setStringPainted(true);
    public void actionPerformed(ActionEvent evt){
    Object source = evt.getSource();
    if(source == this.btnOk){    this.iterate();    }
    } // end class

    You keep posting this question every day. Do you
    think you are going to get a different answer each
    time you posted it without reading what others have
    told you to do!"Insanity: doing the same thing over and over again and expecting different results." --- A. Einstein

  • Need help on how a user can control a video clip using their mouse

    I need help. I've got a video clip of a rotating 3D
    object(left to right) and i would like the user to be able to
    control the rotation of the object using their mouse. I've looked
    everywhere and i'm at a lost. Can anyone help me
    Here is a link to what i'm trying to achieve:
    http://www.sun.com/servers/blades/6000/gallery/index.xml?p=1&s=2
    I know they use Java but i'm sure this can be done in Flash.
    Thanks
    Ray

    Just use the plain linear fit!
    (If you are discussing something you found in the forum, you should always include a link so we can see what you area talking about. What you probably found was a workaround that forces an intercept of zero for a special scenario. If you want to use general linear fit anyway, your matrix simply also needs a constant term)
    If you still have problems, show us your code and some data.
    LabVIEW Champion . Do more with less code and in less time .

  • I need help with tracking

    Ok the video that you can see on my youtube is the one I need help with. The video is actually in 1080p and I have no idea why it is showing in such a low resolution, but that is not the problem. I need to track the gun and add a null to that track, after that I want to add a red solid layer and bring down its opacity a little, to simulate a laser sight from the gun.Then I tried to parent and SHIFT parent the red solid to the track, the end product would have to look like what you can see in the picture. I have watched a TON of videos about tracking and just can not the the result I need. the laser needs to follow the gun as I aim up and bring the gun down. How should I do this.......? Please someone help or link me a tutorial that will be helpful.....

    You have a couple of problems. First you don't need to use shift parent, just parent. Second, your red solid is a 3D layer and you have applied 2D tracking info to the solid. Actually, there's another mistake and it is in the tracking. You should also be tracking scale because the gun moves from left to right as well as up and down. This changes the distance between the front and back tracking points.
    My workflow with this project would be:
    Track Motion of the front and back of the gun including position, scale and rotation
    Apply the track info to a null called GunTrack or something like that
    Add a solid and apply the beam effect or mask the red solid to simulate the shape of a laser sight
    Change the blend mode of the solid to ADD
    Move the anchor point to the center of the starting point of the laser
    Parent the solid to the Gun Track null
    That should do it.

  • Need help sourcing Lenovo Soleil S620 drivers or restore disk

    Hi all,
    I have in front of me an ancient tablet PC from Lenovo known as a "Soleil S620".  I believe it was an Asian-market only product.
    From this webpage (http://www.howah.com.cn/news/en/news_detail.asp?id=50):
    "Lenovo Soleil S620 - The world’s first notebook computer with rotatable LCD monitor"
    "Soleil S620 is the world’s first notebook computer with an 180o-rotatable 12" TFT-LCD display. The TFT-LCD display has gone through rotation test of over 20,000 times. The product is also the lightest 12" notebook in the market, which is only 17.8mm thick and weighs a mere 1.6kg. Embedded with Intel’s Centrino chip, Soleli S620 is the only notebook of such a light weight that is preinstalled with Bluetooth technology."
    It's a cute, lightweight and slow little number, and somewhere along the way someone wiped the drive and installed a non-genuine copy of Windows XP (in Chinese, too).  I'd like to return it to its Windows XP Tablet PC Edition roots if possible.
    I'm betting a restore disk is going to be hard to come by, so if I have to just reinstall it with a genuine copy of XP without enabling the tablet transformation and touch screen, etc, that's fine, but sourcing the drivers is going to be difficult.
    Help?  Anyone?  Thanks in advance!

    sorry but this is the closest thing i can find and sorry for it is written in chinese
    http://support1.lenovo.com.cn/lenovo/wsi/Modules/Driverdownload.aspx?SearchType=1&LogicType=1&Machin...
    WW Social Media
    Important Note: If you need help, post your question in the forum, and include your system type, model number and OS. Do not post your serial number.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!
    Follow @LenovoForums on Twitter!
    Have you checked out the Community Knowledgebase yet?!
    How to send a private message? --> Check out this article.

  • Need help with a currently "in-use" form we want to switch to Adobes hosting service

    Hi, I am in desperate need of help with some issues concerning several forms which we currently use a paid third party (not Adobe) to host and "re-distribute through email"...Somehow I got charged $14.95 for YOUR service, (signed up for a trial, but never used it)..and now I am paying for a year of use of the similar service which Adobe is in control of.  I might want to port my form distribution through Adobe in the hopes of reducing the errors, problems and hassles my customers are experiencing when some of them push our  "submit button". (and I guess I am familiar with these somewhat from reading what IS available in here, and I also know that, Adobe is working to alleviate some of these " submit"  issues, so let's don't start by going backwards, here) I need solutions now for my issues or I can leave it as is, If Adobe's solution will be no better for my end users...
    We used FormsCentral to code these forms and it works for the most part (if the end-user can co-operate, and thats iffy, sometimes), but I need help with how to make it go through your servers (and not the third party folks we use now), Not being cruel or racist here, but your over the phone "support techs" are about horrible & I cannot understand them or work with any of them, so I would definitely need someone who speaks English and can understand the nuances of programming these forms, to please contact me back. (Sorry, but both those attributes will be required to be able to help me, so, no "newbie-interns" or first week trainees are gonna cut it).... If you have anyone who fits the bill on those items and would be willing to help us, please contact me back at your earliest convenience. If we have to communicate here, I will do that & I can submit whatever we need to & to whoever we need to.
    I need to get this right and working for the majority of my users and on any platform and OS.
    You may certainly call me to talk about this, and I have given my number numerous times to your (expletive deleted) time wasting - recording message thingy. So, If it's not available look it up under [email protected]
    (and you will probably get right to me, unlike my and I'm sure most other folks',  "Adobe phone-in experiences")
    Thank You,
    Michael Corman
    VinylCouture
    Phenix City, Alabama  36869

    Well, thanks for writing back...just so you know...I started using Adobe products in 1987, ...yeah...back then...like Illustrator 1 & 9" B&W Macs ...John Warnock's Helvetica's....stuff like that...8.5 x 11 LaserWriters...all that good stuff...I still have some of it working on a mac...much of it was stuff I bought. some stuff I did not...I'm not a big fan of this "cloud" thing Adobe has foisted upon the creatives of the world...which I'm sure you can tell...but the functionality and usefulness of your software can not be disputed, so feel free to do whatever we will continue to pay for, ...I am very impressed with CC PS on the 64 bit PC and perhaps I will end up paying you the stipend that you demand for the other services.
    So  I guess that brings us to our problem.. a few years back and at the height of the recession and near bankruptcy myself,  I was damn lucky and hit on something and began a small arts and crafts supply service to sell my products online to a very "niche market" ...I had a unique product and still sell that product (plus others) online...My website is www.vinylcouture.com...Strange? Yes...but there is a market it seems, for everything now, and this is the market I service...Catagorically, these are 99%+ women that use these "adhesive, sticky backed vinyl products"  to make different "craft items" that are just way too various and numerous to go into... generally older women, women who are computer illiterate for the most part...and all this is irrelevant to my problem, but I want you to have every bit of background on this and especially the demographic we are dealing with, so we can get right to the meat of the problem.
    OK...So about two years ago, I decided to offer a "plain sheet" product of a plain colored "stick back" vinyl... it is available in multiple quantities of packs ( like 5 pieces, 10 pieces, 15 pieces, in a packi  & so on)...and if you are still on my site.. go to any  "GO RIGHT TO OUR ORDER PAGE"  button, scroll down a little...and then to the "PLAIN VINYL" section...you will see the Weebly website order process.) You can back out from here, I think,..but, anyway this product is available in 63 colors + or - a few. So then the problem is,  how do they select their individual colors within that (whatever) pack?... .
    So my initial idea was to enable a "selection form" for these "colors" that would be transmitted to me via email as 'part" of the "order process".. We tried getting our customers to submit a  " a list" ( something my competitiors still do, lol, poor bastards)......but that..is just unbelievable..I can't even begin to tell you what a freakin' nightmare that was...these people cannot even count to 10, much less any higher... figuring out what colors to list and send me... well, lets just say, it wasn't working......I had to figure out a better way...Something had to be done.
    So after thinking this all out,  and yeah...due to my total ignorance, i figured that we could make a form with Live Cycle Designer (Now Forms Central)...(back then something that was bundled with Adobe Acrobat Pro), I believe, and thats what this thing was authored in... and it would be all good...LOL!
    Well not so simple...as you well know, Adobe Acrobat would NOT LET YOU EMAIL anything from itself.....it just wouldn't work (and I know why, and all that hooey), but not being one to take NO for answer,.I started looking for a way to make my little gizmo work.. So I found this company that said they can "hijack" (re-direct actually) the request to email, bypass the wah-wah, and re-transmit it to the proper parties.....for less than $100 a year,  I think...its called http://pdf-fillableforms.com/.
    A nice gentleman named Joseph Silva helped us program the thing to go to his servers and back out. Please dont hassle them...I need them...for now..it basically does work...try it...you should get back a copy of the form that you filled out...good luck however,  if you're on MAC OSX or similar...
    I have included a copy of both of our forms (and feel free to fill it out and play with it)...just put test somewhere on it...(and you must include YOUR email or it will balk)..they are supposed to be mostly identical, except one seems to be twice as large....generating a 1.7 meg file upon submission, while the other one only generates a 600K file or so...thats another issue for another day or maybe you can advise on that also...
    OK so far so good......In our shop, once Grandma buys a 10 pack (or whatever), Only then she gets to the link on her receipt page ro the relevant "selection form" ,(this prevents "Filling and Sending"  with "no order" and "no payment", another early problem we had)... which they can click on and it will usually download and open up on their device if all goes well...Then our little form is supposed to be fillable and is supposed to ADD UP all the quantities, so grandma knows how many she is buying and so forth right on the fly,  and even while she changes her mind..., and IT'S LARGE so grandma can see it, and then it TOTALS it all up for them, ( cause remember, they can NOT add)..,  except there is a programming bug (mouse-click should be a mouse-up probably or something..) which makes you click in the blank spaces to get to a correct TOTAL...about 70-80% of our customers can enable all these features and usually the process completes without problems for them especially on PC's running Windows OS and Acrobat Reader X or XI...at least for most... Unfortunately it is still not the "seamless process" I would like or had envisioned for the other folks out there that do have trouble using our form....  Many folks report to us the following issues that we know of.  First of all it takes too much time to load up...We know its HUGE...is there anyway that you can see, to streamline this thing? I would love for it to be more compact...this really helps on the phones and pads as I'm sure you well know.
    Some just tell us,"it WON'T work"....I believe this is because they are totally out of it and dont even have Adobe Reader on their machine, & don't know how to get it ( yes, we provide the links).....or it's some ancient version....no one can stop this one...
    It almost always generates some kind ( at least one time)  of "error message" which we do warn them about..., telling one,  basically that "Acrobat doesnt even like this happening at all, and it could be detrimental to ones computer files", blah-blah...(this freaks grandma out really bad)...& usually they end up not even trying to send it...  and then I get calls that even you wouldn't believe...& If they DO nut up and push the Red "Submit Form" button, it will usually send the thing to us (and also back to them at the "required email address" they furnished on the form, thats what the folks at the "fillable forms place" do) so, if it's performing it's functions, why it is having to complain?. What are we doing wrong?....and how can I fix it?...Will re-compiling it or saving it as a newer version of "FormsCentral" correct any of these problems ?
    Ok, so that should keep you busy for a minute and we can start out with those problems...but the next thing is, how can I take advantage of YOUR re-direct & hosting services?, And will it get rid of the error messages, and the slowness, and the iOS incompatibilities ? (amazingly,  the last iOS Reader version worked almost OK.. but the newest version doesnt seem to work with my form on my iphone4)  If it will enable any version of the iOS to send my form correctly and more transparently, then it might be worth the money...$14.95 a MONTH you say. hmmmmm...Better be good.
    Another problem is, that I really don't need 5000 forms a month submitted. I think its like 70-100 or less....Got any plans for that?  Maybe I'm just not BIG ENOUGH to use Adobe's services, however in this case, I really don't care whose I do use as long as the product works most correctly for my customers as well as us. Like I said, If I'm doing the best I can, I won't change anything, and still use the other third party, If Adobe has a better solution, then i'm all for that as well. In the meantime, Thanks for any help you can provide on this...
    Michael Corman
    VinylCouture.com
    (706) 326-7911

Maybe you are looking for