Problem doing something very simple...

Hey guys.  I'm having some really weird issues RENAMING objects (iviews, worksets).
With certain objects, when I go into it's properties, change the Name filed, and save it, it doesn't reflect the name change.
See screenshot: http://i32.tinypic.com/1fx0l1.jpg
I have saved it, logged out, logged back in, cleared my browser cache, restarted the java engine... nothing makes it take effect.  This is happening with an iview and a workset.
Any idea?

Hi Adam,
Try this...
If you are aware of the XML Export - Import functionality then you can download the iView and the Workset concerned in an XML file and then open it in any standard XML editor.
Check the property for the language and see the text that is displayed. You can make the changes in the XML file itself and upload.
Then open it and see if the changes have taken effect.
Also, recommend you to check the language setting in your browser.
It can be English, English(UK), English(US). These are different and can influence the text that you see on screen.
Cheers
Avik

Similar Messages

  • Need help with something VERY SIMPLE

    I'm brand new to Motion - as if today - but I'm only trying to do some VERY simple motions with photos - a simultaneous zoom in and reposition. What I've been doing is setting the starting key frame at one position (adjusting the x, y) and setting the scale. Then I create a second key frame and adjust the postion and scale. It will do the zoom, but then it re adjusts the starting position. If I readjust the starting key frame, it automatically readjusts the second key frame. I don't get it! Applying the various 'behaviors' doesn't seen to help. Certainly there's something obvious here that I'm missing - as I was able to do this in FCP. For some reason the key frames are not fixed when it comes to position.

    hi,
    a couple of thoughts?
    did you actually set a keyframe for position at the first frame?
    Also unless you are parked right on a keyframe or have the record button on, if you adjust a value, all the values for all keyframes adjust accordingly. I often mess something up because I wasnt parked on a keyframe.
    hth
    adam

  • Why does something as simple as the date on my computer being wrong cause firefox to not allow me to open any websites?

    I saw others have this problem a few times...and people are trying to have them do all kinds of stuff to fix it. This is one of my errors:
    This Connection is Untrusted
    You have asked Firefox to connect securely to www.facebook.com, but we can't confirm that your connection is secure.
    Does that for everything. And sometimes it has a double confirmation to go to the site anyway. Other times it will not let you go to a site no matter what.
    So I came here and I realized what it was on my own after reading some complicated fixes people suggested to others who posted this problem.
    Look at the date...not on your phone...on the computer with the problem.
    So you guys may wanna make part of the warning message mention to make sure the date is correct on your computer. Also you would think a program connected to the internet with access to the correct time would not go by the computers clock. Or maybe you should make it verify the date online when this error occurs so the error message could tell the user what's wrong...or at least let him go to a website. Or maybe not even scare the user with a totally bogus security warning.

    I know I said I figured it out it's just stupid and I wanted others to see the easy solution. So my computers date was 2009 and a current 2014 security certificate was ruled unsafe by firefox. That's logic for ya. Maybe only consider the cert expired when it's PAST the expiration date. You know like read the definition of expired. I think they have it backwards.

  • Problem doing something based on JPanel size

    I have a JPanel (mainPane) with a BorderLayout which stretches to fit the space available to it.
    In the North I have a title.
    In the Center I am putting another JPanel (centerPane) (which may be bigger or smaller than the space available).
    I want to conditionally put a button in the South depending on whether all of the Center JPanel is displayed or not.
    Having trouble determining the size of the two panels at the time of laying out.
    Problem, until it has first been drawn, mainPanel.getSize().height always returns 0.
    Any ideas?

    I will need to do that too, in case the user resizes
    the whole frame later. However, my problem is when
    initially laying out the screen.
    I know the drawing is delayed until the event thread
    is free. Is there any way to force this to happen
    earlier.not the drawing bit, afaik. you could try doing a getLayout() to calculate the sizes etc. but i'm not sure..
    So I can make it layout the screen after I put the
    mainPanel on but before I add the centerPanel to the
    mainPanel.why can't you do the whole thing in the component adapter, that will be called not just when the user does a resize. as far as i understand your problem, you want to know when to show the button, and that would be the ideal place.
    but, hey, it's none of my business why you would want to do what you want to do ;)
    thomas

  • FXML Scene Is acting weird, Or im doing something very stupid

    Hi Guys.
    heres whats happening, i have a circle and a cubic curve.
    I want my Circle to do a pathTransition in that cubic curve. The problem is, It doesnt do it where i want to. It starts way out of the line, and i need to manually insert the circle where i want it to. But it always go out of the line, no matter what.
    I did a testLine to see waht was happening and i had to do this :
    c1.relocate(lineTest.getStartX() + 90,lineTest.getStartY() - 10);
    Anyway, what am i doing wrong ?
      @FXML
        private void moveToBottomSpot()
         Path onePath = new Path();
        c1.setVisible(true);
        //c1.relocate(lineTest.getStartX() + 90,lineTest.getStartY() - 10);
        c1.relocate(lineOfBottom.getStartX() - 10 ,lineOfBottom.getStartY() + 25);
        final PathTransition pathTransition = PathTransitionBuilder.create()
                .duration(Duration.millis(1500))
                .cycleCount(1)
                .node(c1)
                .path(lineOfBottom)
                .build();
           pathTransition.play(); 
        }

    Ok.
    I re-made the program without FXML and it works great. But, i have an issue.
    How i reverse the path that a node makes ?
    I think i need to use timeLine;
    Can anyone give me a hand ?
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package PilhaBola;
    import javafx.animation.PathTransition;
    import javafx.animation.PathTransitionBuilder;
    import javafx.animation.Timeline;
    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Group;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Circle;
    import javafx.scene.shape.CubicCurve;
    import javafx.scene.shape.CubicCurveBuilder;
    import javafx.scene.shape.Rectangle;
    import javafx.scene.shape.RectangleBuilder;
    import javafx.scene.shape.Shape;
    import javafx.stage.Stage;
    import javafx.util.Duration;
    * @author André
    public class PilhaBola extends Application {
         * @param args the command line arguments
        public static void main(String[] args) {
            launch(args);
        @Override
        public void start(Stage primaryStage) {
         Group root = new Group();
          Rectangle r0 = RectangleBuilder.create()
                    .fill(Color.TRANSPARENT)
                    .y(380)
                    .x(260)
                    .width(140)
                    .height(80)
                    .build();
          Rectangle r1 = RectangleBuilder.create()
                    .fill(Color.TRANSPARENT)
                    .y(300)
                    .x(260)
                    .width(140)
                    .height(80)
                    .build();
          Rectangle r2 = RectangleBuilder.create()
                    .fill(Color.TRANSPARENT)
                    .y(220)
                    .x(260)
                    .width(140)
                    .height(80)
                    .build();
            r0.setStroke(Color.BLACK);
            r1.setStroke(Color.BLACK);
            r2.setStroke(Color.BLACK);
            Circle c0 = new Circle(550,20,20,Color.BLACK);
            Circle c1 = new Circle(550,70,20,Color.BLACK);      
            final Circle c2 = new Circle(550,130,20,Color.BLACK);  
            CubicCurve cc0 = CubicCurveBuilder.create()
                .startX(520)
                .startY(150)
                .endX(320)
                .endY(430)
                .controlX1(320)
                .controlX2(320)
                .controlY1(50)
                .controlY2(420)
                .stroke(Color.BLACK)
                .opacity(0) 
                .build();
            final CubicCurve cc1 = CubicCurveBuilder.create()
                .startX(520)
                .startY(150)
                .endX(320)
                .endY(350)
                .controlX1(320)
                .controlX2(320)
                .controlY1(50)
                .controlY2(420)
                .opacity(0) 
                .stroke(Color.DARKBLUE)
                .build();
             CubicCurve cc2 = CubicCurveBuilder.create()
                .startX(520)
                .startY(130)
                .endX(320)
                .endY(270)
                .controlX1(320)
                .controlX2(320)
                .controlY1(50)
                .controlY2(270)
                .stroke(Color.PINK)
                .opacity(0) 
                .build();
             Button push = new Button("Push");
             push.setOnAction(new EventHandler<ActionEvent>() {
              @Override
                public void handle(ActionEvent event) {
                    final PathTransition pathTransition = getPathBallToStack(c2,cc1);
                    pathTransition.play();
             Button pull = new Button("Pull");
             pull.setOnAction(new EventHandler<ActionEvent>() {
                @Override
                public void handle(ActionEvent event) {
                    final PathTransition pathTransition = getPathStackToBall(c2,cc1);
                    pathTransition.play();
            root.getChildren().add(push);
            root.getChildren().add(cc0);
            root.getChildren().add(cc1);
            root.getChildren().add(cc2);
            root.getChildren().add(c0);
            root.getChildren().add(c1);
            root.getChildren().add(c2);
            root.getChildren().add(r2);
            root.getChildren().add(r0);
            root.getChildren().add(r1);
            Scene scene = new Scene(root,600,600);
            primaryStage.setTitle("Hello World!");
            primaryStage.setScene(scene);
            primaryStage.show();
        public static PathTransition getPathBallToStack(Node n,CubicCurve p)
            final PathTransition pathTransition = PathTransitionBuilder.create()
                .duration(Duration.millis(1500))
                .cycleCount(1)
                .node(n)
                .path(p)
                .build();
            return pathTransition;
           private static PathTransition getPathStackToBall(Node n,CubicCurve p)
                final PathTransition pathTransition = PathTransitionBuilder.create()
                .duration(Duration.millis(1500))
                .cycleCount(1)
                .node(n)
                .path(p)
                .build();
            Shape path = pathTransition.getPath();
            Timeline timeline = new Timeline();
            return pathTransition;
    }

  • HELP! Desperate, All my shape tools are doing something very strange, must have changed a setting but cannot figure out how to change back!

    Hi Everyone,
    I am not sure how I changed the settings however whenever I go to draw a circle or line/shape, the below keeps happening. I have tried closing down and starting Illustrator up again, but it is still doing the same thing! 

    Ella,
    You may try to see whether your Tilde key ~ is stuck.

  • Cant connect to wi-wi am i doing something very basic wrong ?

    My i-pad was just replaced today and i cant access my wi-fi network any ideas ????

    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    Additional things to try.
    Turn Off your iPad. Then turn Off the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    On your iPad go to Settings > General > Reset > Reset network settings and see if that enables you to connect.
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
     Cheers, Tom

  • HT1386 I cannot sync the calendar on my MacBook Pro with either iPhone 4s or my iPad -I followed the apple instructions to sync but the data is not registering. Sorry if this is something very simple!

    The info screen says my calendars are being synced over iCloud which they aren't pluse I want to sync them via the usb connection - how do i change that setting? Thanks

    Hello Danny,
    Thank you for using Apple Support Communities!
    I found this article for you to help troubleshoot why the calendar data is not syncing over to your devices.
    It is named Mac OS X: Resetting the SyncServices folder found here http://support.apple.com/kb/TS1627.
    There are different instructions depending on your OS in the article.
    If for some reason the issue persists, I would take a look at the article named Sync Services: Advanced troubleshooting for contact and calendar syncing located here: http://support.apple.com/kb/ts2481.
    All the very best,
    Sterling

  • I am new to this I am trying to do something very simple.  I need to change the background color to

    I need to change the background color of a photo to white and then shrink the head of a photo for a passport and make the picture output a 2x2.
    Can someone help.  Thx

    Here are the requirements for US passport. Scroll down for the passport tool to make the picture utilizing one on your disk.
    http://travel.state.gov/passport/pptphotoreq/pptphotoreq_5333.html
    If you decide to make it in Elements and print it, you should have a resolution of 240-300 px/in for a good output.  I suggest that you print the 2 photos on good quality paper, probably both on 4x6 stock, and trim with scissors to specification.
    Open your picture and go to Image>resize>picture size, and check the resolution. If it is less than 240 px/in, enter 240 in the field and see if the dimensions remain adequate. If not, you may have to resize.
    Use one of the selection tool, e.g. lasso tool, or selection brush tool, to select head and shoulders
    Go to Edit>copy to put the selection on the clipboard
    Open a new, blank file (File>new>blank file) 2.25 x2.25", resolution the same value as your picture, background white
    Go to Edit>paste. The picture will be on its own layer
    Access the move tool to position it, and to resize with the corner handles of the bounding box, if necessary
    Please report back with your progress.

  • I am sure that I am missing something very simple Please Help

    I have all but finished this little program , but for some reason I am getting an error on the last "System.out.println" statement.
    public class ABCInput
         public static void main(String[] args) throws Exception
              char choice;
              while(choice == 'A' | choice != 'B' | choice == 'C' | choice == 'Q')
              System.in.read();System.in.read();
              System.out.println("Please enter one of the following: A, B, C, or Q.");
              choice = (char)System.in.read();
                   if (choice == 'A' || choice == 'B' || choice == 'C')
                        System.out.println("Good Job!");
                   else if(choice == 'Q')
                        System.out.println("Have a nice day!");
                        System.exit(0);
                   System.out.println("Entry must be A, B, C, or Q(quit)");
    Error messages:
    <identifier> expected
                   System.out.println("Entry must be A, B, C, or Q(quit)");
    cannot resolve symbol
    symbol : class out
    location: class java.lang.System
                   System.out.println("Entry must be A, B, C, or Q(quit)");

    It looks like your println statement is outside of the 'main' method.
    Try this - I've made a few changes, which seems to work OK
    import java.io.*;
    public class ABCInput
      public static void main(String[] args) throws Exception
        String choice;
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        do
          System.out.println("Please enter one of the following: A, B, C, or Q.");
          choice = br.readLine().toUpperCase();
          System.out.println(choice);
        } while("ABCQ".indexOf(choice) < 0);
        if (choice.equals("A") || choice.equals("B") || choice.equals("C"))
          System.out.println("Good Job!");
        else if(choice.equals("Q"))
          System.out.println("Have a nice day!");
        System.exit(0);

  • HELP, most probably a very simple solution!

    I can compile the following file but I can't get it to run. I know something very simple is needed but I am still learning this java business and am currently brain dead. Please help as this is quite important for me! Any advice is much appreciated, thanks. It is basically meant to be a program to give co-ordinates in a JPanel etc... Please don't abuse me for not understanding!!! lol
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    //import com.borland.jbcl.layout.*;
    public class Picker extends JPanel
         String imageFile = "Images/knob.jpg";
         // Create JPanel and set the dimensions so that the crosshairs go in the right place
         Image img = Toolkit.getDefaultToolkit().getImage(imageFile);
         JPanel hSPickerPanel = new JPanel()
              public Dimension getPreferredSize(){return new Dimension(100, 100);}
              public Dimension getMaximumSize(){return getPreferredSize();}
              public Dimension getMinimumSize(){return getPreferredSize();}
              //PaintComponent method for this JPanel Component. Each component needs
              //its own so that each can be redrawn.
              public void paintComponent(Graphics g)
                   super.paintComponent(g);
                   //     Graphics2D g2D = (Graphics2D)g;
                   g.setClip(0, 0, getSize().width, getSize().height);
                   // g2D.drawImage(BC, null, 0, 0);
                   g.setXORMode(Color.WHITE);
                   //Problem.
                   // Draws the cross relating to the coordinates of the whole JPanel.
                   // Not hSPickerPanel. Sorted. 01/08/03. each panel wants to have its
                   //own paintComponent method.
                   g.drawImage(img, xCoord, yCoord,15,15,this);
                   // g.drawOval(xCoord, yCoord, 15, 15);
                   //g.fillOval(xCoord, yCoord, 15,15);
                   // g.drawLine(xCoord + 10 , yCoord,xCoord - 10 , yCoord);
                   // g.drawLine(xCoord, yCoord + 10, xCoord, yCoord - 10);
                   g.drawString(String.valueOf(xCoord) + ":" + String.valueOf(100 - yCoord), 54, 47);
         JLabel HueSatTitleLabel = new JLabel();
         JLabel hueSatLabel = new JLabel();
         int xCoord = 50;
         int yCoord = 50;
         String coordinates;
         String xString;
         String yString;
         GridBagLayout gridBagLayout1 = new GridBagLayout();
         JButton jButton1 = new JButton();
         public Picker()
              try
                   jbInit(); // calls the method below that adds the button to 'this'
              catch(Exception e)
                   e.printStackTrace();
         //dddddddddddddddddddddddddddddddddddddddddddddddddddddddd
         // BrtnsCtrstPckrPnl = new JPanel() creates JPanel.
         //     public void paintComponent(Graphics g)
         /*     super.paintComponent(g);
                   Graphics2D g2D = (Graphics2D)g;
                   g2D.setClip(0, 0, getSize().width, getSize().height);
                   // g2D.drawImage(BC, null, 0, 0);
                   g2D.setXORMode(Color.WHITE);
                   g2D.drawLine(xCoord - 10, yCoord, xCoord + 10, yCoord);
                   g2D.drawLine(xCoord, yCoord - 10, xCoord, yCoord + 10);
                   g2D.drawString(String.valueOf(xCoord) + ":" + String.valueOf(100 - yCoord), 54, 47);
         /*          super.paintComponent(g);
                   //     Graphics2D g2D = (Graphics2D)g;
                             g.setClip(0, 0, getSize().width, getSize().height);
                             // g2D.drawImage(BC, null, 0, 0);
                             g.setXORMode(Color.WHITE);
                             g.drawLine(xCoord + 10 , yCoord,xCoord - 10 , yCoord);
                             g.drawLine(xCoord, yCoord + 10, xCoord, yCoord - 10);
                             g.drawString(String.valueOf(xCoord) + ":" + String.valueOf(100 - yCoord), 54, 47);
         //ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
         private void jbInit() throws Exception
              this.setLayout(gridBagLayout1);
              hSPickerPanel.setBorder(BorderFactory.createEtchedBorder());
              HueSatTitleLabel.setBorder(BorderFactory.createEtchedBorder());
              HueSatTitleLabel.setText("Hue & Saturation");
              hueSatLabel.setBorder(BorderFactory.createEtchedBorder());
              xString = Integer.toString(xCoord);
              yString = Integer.toString(yCoord);
              coordinates = xString +" : "+ yString;
              hueSatLabel.setText(coordinates);
              hSPickerPanel.addMouseListener(new MouseAdapter()
                        public void mouseReleased(MouseEvent e)
                             xCoord = Math.max(Math.min(e.getX(), 100), 0);
                             yCoord = Math.max(Math.min(e.getY(), 100), 0);
                             displayCoordinates(xCoord,yCoord);
                             hSPickerPanel.repaint();
                        public void mousePressed(MouseEvent e)
                             xCoord = Math.max(Math.min(e.getX(), 100), 0);
                             yCoord = Math.max(Math.min(e.getY(), 100), 0);
                             displayCoordinates(xCoord,yCoord);
                             hSPickerPanel.repaint();
              hSPickerPanel.addMouseMotionListener(new MouseMotionAdapter()
                        public void mouseDragged(MouseEvent e)
                             xCoord = Math.max(Math.min(e.getX(), 100), 0);
                             yCoord = Math.max(Math.min(e.getY(), 100), 0);
                             displayCoordinates(xCoord,yCoord);
                             hSPickerPanel.repaint();
              //Add components to Back Panel (this)
              this.setMaximumSize(new Dimension(118, 165));
              this.setMinimumSize(new Dimension(118, 165));
              jButton1.setText("Reset");
              jButton1.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                             jButton1_actionPerformed(e);
              this.add(hSPickerPanel, new GridBagConstraints(0, 1, 2, 1, 1.0, 1.0
                   ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 3, 0, 0), 101, 102));
              this.add(HueSatTitleLabel, new GridBagConstraints(0, 0, 2, 1, 0.0, 0.0
                   ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(2, 3, 0, 0), 30, 1));
              this.add(hueSatLabel, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0
                   ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 3, 5, 0), 4, 3));
              this.add(jButton1, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0
                   ,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 3, 0));
         public void displayCoordinates(int x, int y)
              xString = Integer.toString(x);
              yString = Integer.toString(y);
              coordinates = xString +" : "+ yString;
              hueSatLabel.setText(coordinates);
         void jButton1_actionPerformed(ActionEvent e)
              xCoord = 50;
              yCoord = 50;
              displayCoordinates(xCoord, yCoord);
              hSPickerPanel.repaint();

    Use a URL object to locate your image instead of a string. To do that, import the java.net.* library and create a URL object for your image:
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    //import com.borland.jbcl.layout.*;
    import java.net.*;
    public class Picker extends JPanel
        //String imageFile = "Images/knob.jpg";
        Class cl = ((Picker) this).getClass();
        URL imageURL=cl.getResource("Images/knob.jpg");
        // Create JPanel and set the dimensions so that the crosshairs go in the right place
        Image img = Toolkit.getDefaultToolkit().getImage(imageURL);
        JPanel hSPickerPanel = new JPanel()
    }To view your Panel, you have to add a "main" method and create a frame to display your panel:
    public class Picker extends JPanel
        void jButton1_actionPerformed(ActionEvent e)
        public static void main(String[] args)
         Picker p=new Picker();
         JFrame frame=new JFrame("Picker Example");
         frame.getContentPane().add(p);
         frame.setVisible(true);
         frame.pack();
    }You can see your panel by:
    - compiling: javac Picker.java
    - and running your application with the "main" method: java Picker

  • Very Simple Problem-- Need help in method selection process

    Hello,
    It's difficult to explain the background of the program I am making-- but I am stuck at a very simple problem, that I can only solve with a very long block of if statements:
    I have 3 possible numbers-- 1, 2, or 3.
    Imagine two numbers are already taken-- say 1 and 2. I want a variable to set itself to the number that's not taken (3).
    So, again: If two numbers were taken say 2 or 3-- I want the variable to be sent to the other one that isn't taken-- 1.
    Thank you for your help,
    Evan.

    Actually, I'll just tell you the context of the program-- here is what I have so far:
    This program is meant to simulate Monty Hall Problem:
    http://en.wikipedia.org/wiki/Monty_Hall_problem
    The program sets up an array of three possible values. Each one of those values represents a door with either a goat or a car behind it. It then randomly sets one of those values to 1 (in order to represent a car as per the Monty Hall problem), and 0's represent goats.
    The user, which is simulated by the program (does not involve actual interaction), chooses a door initially.
    The game show hosts then reveals a door that is not the users initial choice, but IS a goat ( an array value of 0).
    For example if the array was [0][0][1]
    The user could pick door one (array position 0). Which is a goat.
    The game show host then reveals a goat that is not the users choice-- which would be array position 1.
    After the game show host reveals the goat-- I want the user to always switch his decision to the only other remaining door that was not his first choice.
    Then I wanted the computer to test to see if his final choice is the one with a car. And to tally up the amount of times he got it right.
    --Sorry that was long winded:
    import TerminalIO.*;//imports TerminalIO package for system.out.println
    import java.util.*;//import java.util for random
    public class Monty_Problem
         int doors[]= {0,0,0};
         Random rand= new Random();
         double wins,totals=0;
         public void carAssignment()
              int car_door= rand.nextInt(3);
              doors[car_door]=1;
         public int judgesChoice(int judgeDoor, int initialChoice)
              if(judgeDoor != initialChoice && doors[judgeDoor]!=1)
                   return judgeDoor;
              else
                   return judgesChoice(rand.nextInt(3), initialChoice); //infinite loop right here that I cannot remedy.  I want the program to have the judge pick a location that is not occupied by a  '1' and is not the user's choice. 
         public void gamePlaySwitches()
              int initialChoice= rand.nextInt(3);
              int judgeDoor = 0;
              int secondChoice= 0;
              judgeDoor= judgesChoice(rand.nextInt(3), initialChoice);
              //This part is meant to have the user switch choices from his initial choice
                   // to the only other choice that hasn't been revealed by the judge. 
              while(secondChoice == initialChoice || secondChoice== judgeDoor)
                   secondChoice++;
              if(doors[secondChoice]==1)
                   wins++;
                   totals++;
              else
                   totals++;          
         public static void main(String [] args)//creates the main menu
              Monty_Problem a= new Monty_Problem();
              int games=0;
              while(games!=100)
                        a.carAssignment();
                        a.gamePlaySwitches();
                        games++;
              System.out.println(a.wins/a.totals);
    }Edited by: EvanD on Jan 11, 2008 4:17 PM

  • I tell her that I'm developing a flash content with as2 and I have a very simple problem, I hope you

    Hello, how are you?
    I tell her that I'm developing a flash content with as2 and I have a very simple problem, I hope you can help me
    I happened to create a movie clip and inside to create a scroll that is two isntancias,
    I mean:
    in the first frame create a button in the 6 to 5 buttons and an action to melleve the sixth frame and another to return. (Elemental truth)
    Now I have a problem. In creating a movie clip instance name to each button and in the average place the next fram as2,
    boton.onRollOver name = function () {
           gotoAndStop ("Scene 1", "eqtiqueta");
    because what I want is that from inside the movie clip, go to the scene proncipal to a frame that is three in the label name.
    however, does not work.
    appreciate your cooperation.
    Escuchar
    Leer fonéticamente
    Diccionario - Ver diccionario detallado

    Hello, I think you need to start a discussion on the Action Script forum. This is the Flash Player forum, the browser plugin.
    Thanks,
    eidnolb

  • My problem is very simple......firefox wont allow me save my downloads to any other location than my c drive....for example i have gone into options and set sav

    ''locking this thread as duplicate, please continue at [https://support.mozilla.org/en-US/questions/986549 /questions/986549]''
    my problem is very simple......firefox wont allow me save my downloads to any other location than my c drive....for example i have gone into options and set save downloads to my e drive....but still firefox keeps saving them to my c drive....i have 4 internal hard drives in my rig....and have tried saving downloads to them all.......why this is happening i cant understand....i have tried lots of suggestions....and have re-installed firefox multiple times

    hello, there's a general regression in firefox 27 that won't allow files to download directly into a root drive. please try to create a subfolder (like ''E:\Downloads'') and set this as default location for downloads...
    also see [https://bugzilla.mozilla.org/show_bug.cgi?id=958899 bug #958899].

  • Problem with very simple 2 threads java application

    Hi,
    As fa as i'm concerned this is a thread licecycle:
    1. thread created: it is dead.
    2. thread started: it is now alive.
    3. thread executes its run method: it is alive during this method.
    4. after thread finishes its run method: it is dead.
    No I have simple JUnit code:
    public void testThreads() throws Exception {
    WorkTest work = new WorkTest() {
    public void release() {
    // TODO Auto-generated method stub
    public void run() {
    for (int i=0;i<1000;i++){
    log.debug(i+":11111111111");
    //System.out.println(i+":11111111111");
    WorkTest work2 = new WorkTest() {
    public void release() {
    // TODO Auto-generated method stub
    public void run() {
    for (int i=0;i<1000;i++){
    log.debug(i+":22222222222");
    Thread workerThread = new Thread(work);
    Thread workerThread2 = new Thread(work2);
    workerThread.start();
    //workerThread.join();
    workerThread2.start();
    //workerThread2.join();
    And
    public interface WorkTest extends Runnable {
    public abstract void release();
    And that's it..
    On the console I see 999 iterations of both threads only if i uncomment
    //workerThread.join();
    //workerThread2.join();
    In other case I see random number of iterations - JUNIT finishes and Thread1 made 54 and Thread2 233 iterations - the numbers are different every time i start the JUnit..
    What I want? Not to wait until the first one finishes - I want them to start at the same time and they must FINISH their tasks...
    Please help me asap :(

    This is very simple... Look at your code:
    workerThread.start();
    workerThread.join();
    workerThread2.start();
    workerThread2.join();What are you doing here? You start the first thread, then you call join(), which waits until it finishes. Then after it's finished, you start the second thread and wait until it finishes. You should simply do this:
    workerThread.start();
    workerThread2.start();
    workerThread.join();
    workerThread2.join();I.e., you start the 2 threads and then you wait (first for the first one, then for the second one).

Maybe you are looking for