Keyboard class help

I downloaded the cs1.keyboard class file, and i tried to put it a few different folders. I gave me an error that the cs1 class didn't exist, where do i have to put it in verson 1.4

I'm pretty certain that cs1.keyboard is some non-standard thing written for a book or a class.
You should probably ask the author.
Anyway, to use it you'd have to add an import statement to your code, and to add this class to your classpath.

Similar Messages

  • System fails to shutdown and restart in addition to keyboard freezing HELP!

    System fails to shutdown and restart in addition to keyboard freezing HELP!

    Try resetting your SMC.
    Resetting the System Management Controller >>
    Boot from your system CD, run Disk First Aid from your Disk Utility and repair your permissions.
    -Bmer
    Mac Owners Support Group - Join us @ MacOSG.com
      Mac611 Mobile Mac Support - about.Mac611.com
       iTunes:MacOSG Podcast | YouTube.MacOSG.com
                       An Apple User Group 

  • Wont recognise Keyboard class

    I am currently working on a task for a hashmap using eclipse GUI but the compiler is failing to recognize the keyboard class. Could someone have a look at my code and see if they can see why or give me a tip on how to overcome this problem.
    import java.util.*;
    import cs1.*;
    public class TestHashMap
         public static Scanner key = new Scanner(System.in );
         public static void p(String s)
              System.out.print(s);
         public static void menu()
              p("\n\n\n\t\t\t\t HashMap Menu\n\n\n");
              p("\n\t\t\t\t\t1. Add");
              p("\n\t\t\t\t\t2. Display");
              p("\n\t\t\t\t\t3. Update");
              p("\n\t\t\t\t\t4. Delete");
              p("\n\t\t\t\t\t5. Exit");
              p("\n\t\t\t\t\t   Which option (1-5) ");
         public static void display(HashMap<String,Vehicle> map)
              Collection<Vehicle> col;
              col = map.values();
              Vehicle v;
              Iterator<Vehicle> it = col.iterator();
              p("\n\n\n\t\t\t\tVehicle List \n\n");
              while(it.hasNext())
                   v = it.next();
                   p("\n"+ v.toString());
              p("\n\n");
         public static void add(HashMap<String,Vehicle> map)
              String regNo,make,model,colour,year;
              double cost;
              p("\n\n\n\t\t\t\tAdd New Vehicles\n\n");
              p("\n\t\tEnter Registration No : "); regNo = Keyboard.readString();
              p("\n\t\tEnter Car Make        : "); make = Keyboard.readString();
              p("\n\t\tEnter Car Model       : "); model = Keyboard.readString();
              p("\n\t\tEnter Car Colour      : "); colour = Keyboard.readString();
              p("\n\t\tEnter Car Year        : "); year = Keyboard.readString();
              p("\n\t\tEnter Car Cost        : "); cost = Keyboard.readString();
              map.put(""+regNo,new Vehicle(regNo,make,model,colour,year,cost));
         public static void update(HashMap<String,Vehicle> map)
         public static void remove(HashMap<String,Vehicle> map)
              String regNo;
              p("\n\n\n\t\t\t\tRemove Vehicle Records\n\n");
              p("\n\t\tEnter Registration No : "); regNo = Keyboard.readString();
              if(map.containsKey(regNo))
                   map.remove(""+regNo);
         public static void main(String[] args)
              HashMap<String,Vehicle> hm = new HashMap<String, Vehicle>(100);
              hm.put("GUI 1234", new Vehicle("GUI 1234","Ford","Fiesta","Red","1982",3000.00));
              hm.put("LUI 1234", new Vehicle("LUI 1234","Renault","Clio","White","2001",9000.00));
              hm.put("HUI 1234", new Vehicle("HUI 1234","Ford","Fiesta","Red","2003",12000.00));
              hm.put("FUI 1234", new Vehicle("FUI 1234","Vauxhall","Astra","Silver","2004",10000.00));
              int opt;
              do
                        menu();
                        opt = key.nextInt();
                        switch(opt)
                             case 1: add(hm); break;
                             case 2: display(hm); break;
                             case 3: update(hm); break;
                             case 4: remove(hm); break;
              }while (opt != 5);
              p("\n\nThe End");
    }

    you can still hazard a guess that Keyboard is in the
    third-party package he's importing!!Believe me, I did. I mean, how many "EasyInput" or "Keyboard" classes provided by teachers did you already see here? I saw many. Still I don't care, I wanted him to understand the problem first.

  • Keyboard class

    Does anyone has any expiriance with Keyboard class(
    flash.ui.Keyboard )?
    It says:
    You can use the methods and properties of the Keyboard class
    without using a constructor
    but I can't get capsLock property working.I always getting an
    error: Access to undefined property capsLock
    capsLock property
    capsLock:Boolean [read-only]
    Specifies whether the Caps Lock key is activated (true) or
    not (false).

    sorry thats all i could ask since the documentation is
    exactly as you have stated, seems like allot of the docs are wrong
    :(

  • Hello. Just got Garageband'11 for my ipad 2. Can´t seem to be able to play more than two notes at once on touch keyboard. Help!

    Hello. Just got Garageband'11 for my ipad 2. Can´t seem to be able to play more than two notes at once on touch keyboard. Help!

    Thank you for your response.
    I am trying to sync them both to the same computer (Windows), and with the 2nd ipod, it looks like everything is going to work out fine, until I go to add songs from my itunes music library...then, after a few seconds of me hoping it will work, I get a message that says "Attempting to copy to Lisa's disk failed. The disk could not be read from or written to."
    I thought it might have been my ipod. But then I tried to download songs from my sister's computer, and even my work computer (just to see if it would work), and it did. So I'm not sure what is going on here. Is it my computer, or is it the ipod? Or is it itunes?
    Also, my sister in-law said her issue is similar, in that her itunes doesn't recognize her ipod now that my brother's ipod has been used on their computer. She gets the same message as I do...thus she is unable to download any songs onto her ipod.
    If you have any helpful tips, it would be greatly appreciated.
    Thank you for your time and assistance.
    -- Lisa Soto

  • Keyboard class based operations

    i want to use something 'like' the keyboard class method readChar, however i need it to do the following:
    - because the program will be on a timer, looping constantly i need it to continue looping even if there is no keyboard input.
    - i need it to return the existing input without having to press ENTER.
    - naturally i will need it to continue without input and not return an error for no input.
    there is a delay between loops to give the user time to give an input.
    thank you

    well, a good place to start would be using an alternative version of readChar, i mean it only reads the first character you type anyway, so might there me a pay of using it to return the char imediately after the first character is typed?
    edit:
    ok this is basically it;
    int c = System.in.read();
    if ((char) c==109){runGame=false;}
    just an example, i need it to be possible that the program will ignore this method (or rather run the method, but skip it) if the user doesnt put anything in within a second or so.
    Edited by: Flosculus on Nov 1, 2008 5:11 PM

  • NetBeans problem with Keyboard class wann't compile

    Hi everyone I'm trying run my program in NetBeans and i have two classes main one A1Q2 and Keyboard2. In main class NetBeans is seing that can not find Keyboard2 class . So everywhere where is Keyboard2 compiler highlited this for red color - red line. I can not figure out what is wrong. Please for any help . Apropos i've been using NetBeans from yeasterday.
    public class A1Q2 {
         public void start(){
              test01();
              try{
              test02();
              System.out.println("Statement A");
              } catch(ArrayIndexOutOfBoundsException e){
                             System.out.println("CAUGHT" + e.toString());
              System.out.println();
              System.out.println("    TEST 3A.  An exception occurs when the user");
              System.out.println("    enters the number 7.");
              System.out.println();
              test03();
              System.out.println();
              System.out.println("    TEST 3B.  An exception occurs when the user");
              System.out.println("    first enters a number which is not 7");
              System.out.println("    and, at the prompt, enters a String");
              System.out.println("    containing non numerical characters");
              System.out.println();
              test03();
              System.out.println("Finished");
         private void test01() {
              String word1;
              System.out.println("    TEST 1.  An exception occurs when the user");
              System.out.println("    enters a String with more than 2 characters.");
              System.out.println();
              System.out.print("Enter a String with less than 3 characters: ");
              try{
                   String word2 = Keyboard2.readInput();
                   if (word2.length() < 3) {
                        word1 = word2;
                   } else {
                        word1 = null;
                        throw new NullPointerException();
                   int len = word1.length();
                   System.out.println("Statement B");
              } catch(NullPointerException e){
                   System.out.println("CAUGHT:" + e.toString());
         private void test02() {
              int[] numbers = { 4, 6, 7, 3, 2 };
              System.out.println();
              System.out.println("    TEST 2.  An exception occurs when the user");
              System.out.println("    enters a number < 0 or > 4");
              System.out.println();
              System.out.print("Enter a number which is between 0 and " + (numbers.length-1) + " (inclusive): ");
                   int pos = Integer.parseInt(Keyboard2.readInput());
                   if(!(pos >=0 && pos <= 4)){
                        throw new ArrayIndexOutOfBoundsException(":" + pos);
                   System.out.println("Number: " + numbers[pos]);
                   System.out.println("Statement C");
         private void test03() {
              try{
                   System.out.print("Enter any number except 7: ");
                   int num2 = Integer.parseInt(Keyboard2.readInput() + 1);
                   if(num2 == 71){
                        throw new ArithmeticException("/ by zero");
                   int num1 = 255 / (num2 - 71);
              try{
                   System.out.print("Enter a String of digits: ");
                    String numS = Keyboard2.readInput();
                   int num3 = Integer.parseInt(numS);
                    if(!(num3> 0)){
                         throw new NumberFormatException("For input string: " + "\"" +numS +"\"");
              System.out.println("Statement D");
              } catch(NumberFormatException e){
                   System.out.println("CAUGHT:" + e.toString());
              } catch (ArithmeticException e){
                   System.out.println("CAUGHT:" + e.toString());
              System.out.println("Statement E");
    //----------- MAIN METHOD FOR QUESTION02 ------------------
         public static void main(String[] args){
              new Keyboard2();
              A1Q2 p = new A1Q2();
              p.start();
    import java.util.*;
    public class Keyboard2 {     
         private static Scanner in = new Scanner(System.in);
         private static boolean useIndirection;
         public Keyboard2() {
              try {
                   useIndirection = (System.in).available() != 0;
              } catch(Exception e){}
         public static String readInput() {
              try {
                   if (useIndirection) {
                        String input = in.nextLine();
                        System.out.println(input);
                        return input;     
                   } else {
                        String input = in.nextLine();
                        return input;     
              } catch (IllegalStateException e) {
                   System.err.println("An error has occurred in the Keyboard.readInput() method.");
                   e.printStackTrace();
                   System.exit(-1);
              return null;
    }

    Snowboarder wrote:
    Hi everyone I'm trying run my program in NetBeans and i have two classes main one A1Q2 and Keyboard2. In main class NetBeans is seing that can not find Keyboard2 class . So everywhere where is Keyboard2 compiler highlited this for red color - red line. I can not figure out what is wrong. Please for any help . Apropos i've been using NetBeans from yeasterday.Huhh.. Well I am a big advocate of using tools that do not get in the way of development, and this sounds like a classic case where that applies*.
    The posted code compiles and runs just fine here (or seems to, as well as I understand its purpose) in a very simple editor I use to compile and run classes. Here is some example input/output..
        TEST 1.  An exception occurs when the user
        enters a String with more than 2 characters.
    Enter a String with less than 3 characters: 12
    Statement B
        TEST 2.  An exception occurs when the user
        enters a number < 0 or > 4
    Enter a number which is between 0 and 4 (inclusive): 1256
    CAUGHTjava.lang.ArrayIndexOutOfBoundsException: :1256
        TEST 3A.  An exception occurs when the user
        enters the number 7.
    Enter any number except 7: 5
    Enter a String of digits:* NetBeans is a powerful but complicated tool. When something goes wrong, it is much harder to figure out whether it is the code, or the IDE settings.
    For that basic reason, I would strongly recommend that people who are new to Java development use either..
    a) command line tools to do the job of compiling and running, or..
    b) write an ant script that can be run from the command line, or imported into most IDEs.
    As an aside, since both classes are in the default package (i.e. no package statement) they need to reside in the same directory to successfully compile and run. The default package is generally for toy and test classes, and there might be some quirks to using them. I mention that because I am wondering if somehow NetBeans has 'decided' to force people not to make classes in the default package.

  • Keyboard input help!?

    What is the easiest way to get keyboard input into my application?
    Thanks!

    Do you know [url http://www.google.ca/search?hl=en&q=java+keyboard+input&btnG=Google+Search&meta=]Google? It is very helpful.
    Also you should read thoroughly the [url http://java.sun.com/docs/books/tutorial/essential/index.html]Essential Java Classes Tutorial, more specifically (related to the question): [url http://java.sun.com/docs/books/tutorial/essential/system/iostreams.html]The Standard I/O Streams Tutorial.

  • Movement Class help

    I was wanting to know how to create an external "universal" movement class for my character(s) so I can just reuse the class without having to retype the code. I understand I would use the keyboard events for key down or key pressed to make the movement across the screen and by adjusting the x and y "speed". I'm also aware I could create a snippet of the code, but I'm unsure what would be the best method. I also know flash has a prefabricated snippet, but I want to use my own code.
    1. How would I attach the movement class to the object, If the object is already linked to an external class?
    2. Also, I have an animation for a character where I press down, the character sit animation plays, but it doesn't stay sitting while the user presses/holds  the down arrow. How would I fix that?

    I finally had time to sit down and use AS3 again since I've been busy with my class work. I set up my main file where it will call the animate class, however I can not get the object to move and no errors are displayed. This is the code I have:
    package  {
              import flash.display.MovieClip;
              import flash.events.KeyboardEvent;
              import flash.ui.Keyboard;
              import flash.events.Event;
              import flash.display.Stage;
              public class Animate extends MovieClip {
                        var _mc:MovieClip;
                        var _st:Stage;
                        trace("created private vars");
                        public function Animate(mc:MovieClip, st:Stage)
                                  _mc = mc;
                                  trace("mc is set to _mc");
                                  _st = st;
                                  trace("st is set to _st");
                                  //Add Event Listeners
                                  _mc.addEventListener(Event.ADDED_TO_STAGE, init);
                                  trace("called init");
                        public function init(e:Event):void
                                  trace("inside init() function");
                                  _mc.addEventListener(KeyboardEvent.KEY_DOWN, keyDown);
                                  trace("added event listener for keyDown");
                                  _mc.addEventListener(KeyboardEvent.KEY_UP, keyUp);
                                  trace("added event listener for keyUp");
                        //Starts Movement
                        function keyDown(e:KeyboardEvent):void
                                  if (e.keyCode == Keyboard.DOWN)
                                            _mc.y += 5;
                                            trace("char moved to" + _mc.y);
                                  else if (e.keyCode == Keyboard.UP)
                                            _mc.y -= 5;
                                  else if (e.keyCode == Keyboard.LEFT)
                                            _mc.x -= 5;
                                  else if (e.keyCode == Keyboard.RIGHT)
                                            _mc.x += 5;
                        //Stops Movement
                        function keyUp(e:KeyboardEvent):void
                                  if (e.keyCode == Keyboard.UP || e.keyCode == Keyboard.DOWN)
                                            _mc.y = 0;
                                  if (e.keyCode == Keyboard.LEFT || e.keyCode == Keyboard.RIGHT)
                                            _mc.x = 0;
    I traced out most of my code and the last trace displayed is "called init" Any help will be great. I'm aware that on the keyUp function it's going to set the player to x:0 and y:0 on the stage. I'll adjust that later, my main concern is getting the object to move.

  • Calling arraylist from another class - help please!!

    Hey, I need some help calling my arraylist from my GUI class, as the arraylist is in the 'AlbumList' class and not in the 'GUI' class i get the error 'cannot find symbol', which is pretty obvious but i cannot figure how to get around this problem. help would be greatly appreciated.
    i have written ***PROBLEM*** next to the bad line of code!
    Thanks!!
    public class Album
        String artist;
        String title;
        String genre;
        public Album(String a, String t, String g)
            artist = a;
         title = t;
            genre = g;
         public String getArtist()
            return artist;
        public String getTitle()
            return title;
         public String getGenre()
            return genre;
    public class AlbumList
        public ArrayList <Album> theAlbums;
        int pointer = -1;
        public AlbumList()
            theAlbums = new ArrayList <Album>();
        public void addAlbum(Album newAlbum)
         theAlbums.add(newAlbum);
    import java.util.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class GUI extends JFrame
        public int max = 5;
        public int numAlbums = 4;
        public int pointer = -1;
        public GUI ()
            super("Recording System");
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            JPanel main = new JPanel();
            JPanel panel1 = new JPanel();
            panel1.setLayout(new GridLayout(3,2,0,0));
            JPanel panel2 = new JPanel();
            panel2.setLayout(new GridLayout(1,2,20,0));
            final JLabel artistLBL = new JLabel("Artist: ");
            final JLabel titleLBL = new JLabel("Title: ");
            final JLabel genreLBL = new JLabel("Genre: ");
            final JTextField artistFLD = new JTextField(20);
            final JTextField titleFLD = new JTextField(20);
            final JTextField genreFLD = new JTextField(20);
            final JButton nextBTN = new JButton("Next");
            nextBTN.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    pointer++;
                    artistFLD.setText(theAlbums.get(pointer).getArtist());       ***PROBLEM***
                    titleFLD.setText("NEXT");
                    genreFLD.setText("NEXT");
            final JButton prevBTN = new JButton("Prev");
            prevBTN.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    pointer--;
                    artistFLD.setText("PREVIOUS");
                    titleFLD.setText("PREVIOUS");
                    genreFLD.setText("PREVIOUS");
         panel1.add(artistLBL);
            panel1.add(artistFLD);
            panel1.add(titleLBL);
            panel1.add(titleFLD);
            panel1.add(genreLBL);
            panel1.add(genreFLD);
            panel2.add(prevBTN);
            panel2.add(nextBTN);
            main.add(panel1);
            main.add(panel2);
            setVisible(true);
            this.getContentPane().add(main);
            setSize(500, 500);
    -----------------------------------------------------------------------Thanks!!
    Edited by: phreeck on Nov 3, 2007 8:55 PM

    thanks, it dosnt give me a complication error but when i press the button it says out of bounds error, and i think my arraylist may be empty possibly even though i put this data in.. this is my test file which runs it all.
    any ideas? thanks!!
    public class Test
        public static void main(String []args)
            AlbumList a = new AlbumList();
            String aArtist = "IronMaiden";
            String aTitle = "7thSon";
            String aGenre = "HeavyMetal";
            Album newA = new Album(aArtist, aTitle, aGenre);
            a.addAlbum(newA);
            aArtist = "LambOfGod";
            aTitle = "Sacrament";
            aGenre = "Metal";
            Album newB = new Album(aArtist, aTitle, aGenre);
            a.addAlbum(newB);
            aArtist = "JohnMayer";
            aTitle = "Continuum";
            aGenre = "Guitar";
            Album newC = new Album(aArtist, aTitle, aGenre);
            a.addAlbum(newC);
            aArtist = "StillRemains";
            aTitle = "TheSerpent";
            aGenre = "Metal";
            Album newD = new Album(aArtist, aTitle, aGenre);
            a.addAlbum(newD);
         GUI tester = new GUI();
    }

  • Calling a function from another class - help!

    I realize that this is probably a basic thing for people who have been working with JavaFX for a while, but it is eluding me, and I have been working on it for over a week.
    I need to call a function that is in another class.  Here's the deal.  In EntryDisplayController.java, there are 2 possible passwords that can be accepted - one will give full access to the car, the second will limit functions on the car.  So when a password is entered and verified as to which one it is, I need to call a function in MainDisplayController.java to set a variable that will let the system know which password is being used - full or restricted.
    So in MainDisplayController.java I have this snippet to see
    public class MainDisplayController implements Initializable, ControlledScreen {
        ScreensController myController;
        public static char restrict;
         * Initializes the controller class.
        @Override
        public void initialize(URL url, ResourceBundle rb) {
            // TODO
        public void setRestriction(){
            restrict = 0;
            restrictLabel.setText("RESTRICTED");
        public void clearRestriction(){
            restrict = 1;
            restrictLabel.setText("");
    And in EntryScreenDisplay.java I have this snippet:
    public class EntryDisplayController implements Initializable, ControlledScreen {
         @FXML
        private Label passwordLabel ;
        static String password = new String();
        static String pwd = new String("");
         ScreensController myController;
         private MainDisplayController controller2;
         * Initializes the controller class.
        @Override
        public void initialize(URL url, ResourceBundle rb) {
            setPW(pwd);    // TODO
         @FXML
        private void goToMainDisplay(ActionEvent event){
            if(password.equals ("123456")){
              controller2.clearRestriction();
               myController.setScreen(ScreensFramework.MainDisplayID);
               pwd = "";
               password = "";
               setPW(pwd);
            else if(password.equals ("123457")){
               controller2.setRestriction();
                myController.setScreen(ScreensFramework.MainDisplayID);
               pwd = "";
               password = "";
               setPW(pwd);
            else{
                password = "";
                pwd = "";
                setPW(pwd);
    When I enter the restricted (or full) password, I get a long list of errors, ending with
    Caused by: java.lang.NullPointerException
      at velocesdisplay.EntryDisplayController.goToMainDisplay(EntryDisplayController.java:60)
    Line 60 is where "controller2.setRestriction(); is.
    As always, thanks for any help.
    Kind regards,
    David

    You never set the controller2 variable to anything, which is why you get a null pointer exception when you try to reference it.
    public static variables (and even singletons) are rarely a good idea as they introduce global state (sometimes they can be, but usually not).
    If a static recorder like this can only have a binary value, use a boolean, if it can have multiple values, use an enum.
    Some of the data sharing solutions in dependency injection - Passing Parameters JavaFX FXML - Stack Overflow might be more appropriate.
    I also created a small framework for roll based solutions in JavaFX which perhaps might be useful:
    http://stackoverflow.com/questions/19666982/is-there-a-way-to-implement-a-property-like-rendered-on-javafx
    https://gist.github.com/jewelsea/7229260
    It was just something I hacked together, so it's not a fully polished solution and you probably don't need something quite so complex.
    What you need is a model class shared between the components of your application.  Dependency injection frameworks such as afterburner.fx can help achieve this in a fairly simple to use way.
    If you don't want to go with a dependency injection framework, then you could use either a static singleton model class for your settings or pass the model class using the mechanism in defined in the passing parameters link I provided.  For a model class example, see the ClickCounter class from this example.   That example doesn't use FXML, but to put it together with the passing parameters solution, for your restriction model, you would have something like the following:
       private class Restricted {
         private final ReadOnlyBooleanWrapper restricted;
         public Restricted(boolen isRestricted) {
           restricted = new ReadOnlyBooleanWrapper(isRestricted);  
         public boolean isRestricted() {
           return restricted.get();
         public ReadOnlyBooleanProperty restrictedProperty() {
           return restricted.getReadOnlyProperty();
    Then in your EntryDisplayController you have:
    @FXML
    public void goToMainDisplay(ActionEvent event) {
         // determine the restriction model as per your original code...
         RestictionModel restrictionModel = new RestrictionModel(<appropriate value>);
      FXMLLoader loader = new FXMLLoader(
      getClass().getResource(
       "mainDisplay.fxml"
      Stage stage = new Stage(StageStyle.DECORATED);
      stage.setScene(
       new Scene(
         (Pane) loader.load()
      MainDisplayController controller =
        loader.<MainDisplayController>getController();
      controller.initRestrictionModel(restrictionModel);
      stage.show();
    class MainDisplayController() {
      @FXML private RestrictionModel restrictionModel;
      @FXML private RestrictLabel restrictLabel;
      public void initialize() {}
      // naming convention (if the restriction model should only be set once per controller, call the method init, otherwise call it set).
      public void initRestrictionModel(RestrictionModel restrictionModel) {
        this.restrictionModel = restrictionModel;
         // take some action based on the new restriction model, for example
        restrictLabel.textProperty.bind(
          restrictionModel.restrictedProperty().asString()
    If you have a centralized controller for your navigation and instantiation of your FXML (like in this small FXML navigation framework), then you can handle the setting of restrictions on new screens centrally within the framework at the point where it loads up FXML or navigates to a screen (it seems like you might already have something like this with your ScreensController class).
    If you do this kind of stuff a lot, then you would probably benefit from a move to a framework like afterburner.  If it is just a few times within your application, then perhaps something like the above outline will give you enough guidance to implement a custom solution.

  • Stuck In Boot Camp With Broken Keyboard PLEASE HELP

    Hi there,
    Just recently, I decided I wanted to install Windows 7 on my iMac for gaming. Now, this has worked before, so I expected it to go without a hitch.
    Now I sit here (on my Dad's PC), waiting for an answer. I am stuck on the black screen saying "No bootable device - press any key". I see a lot of other posts saying that I need to press option on my keyboard, but that's another problem. I have a Windows gaming keyboard, so the keys have a Windows layout. So instead, I pressed alt, which apparently is the equivalent. Nothing. I tried all the other key shortcuts, and still nothing. I noticed that when I booted up, my keyboard lit up (it's LED), but if I pressed CAPS lock or the num key, the indicators wouldn't light up.
    All I want to do is boot into OS X! This is extremely frustrating, as I have some very important work on my iMac.
    Someone please help me.
    P.S I have tried with other keyboards, and that hasn't fixed it.

    Just generally starting up my Mac, and changing back to OS X when I used to have Windows working on my iMac. By pressing alt on my Windows layout keyboard.

  • Have most recent macbook pro connected to thunderbolt via thunderbolt cable.  Occasionally when I close my laptop the thunderbolt display goes black and does not come back on---even in response to keyboard.  Help

    Have most recent macbook pro connected to thunderbolt via thunderbolt cable.  Occasionally when I close my laptop the thunderbolt display goes black and does not come back on---even in response to keyboard.  Help

    Hello QuinnDev,
    Thank you for posting in the Apple Support Communities.  It sounds like you are trying to use your MacBook Pro with a Thunderbolt Display in closed clamshell mode (MacBook Pro closed), but sometimes the display doesn't stay on.  I found an article that talks about closed clamshell mode.  You would have to fulfill the following requirements to use your display this way:
    Requirements for closed display mode:
    Power adapter
    External keyboard, mouse, or trackpad
    External display
    You can find all the steps and the full article here:
    Mac notebooks: How to use your computer in closed clamshell (display closed) mode with an external display
    http://support.apple.com/kb/HT3131
    I hope this helps!
    All the best,
    Sheila M.

  • Preloader in Document Class Help.

    Hello,
    I want to know that how can I add a Preloader to my existing document class. In my FLA all content is on 1st Frame. I'm loading an external image to a MovieClip which is on 1st frame and on stage. My document class is working fine but when i try to add any preloading script, its not working...
    Can any one please help me in this regard..
    A Garden of Thanks.
    My Document Class is here...  (This was also a tutorial which I'm using..)
    package com.ahmad.bg
         //import all classes
         import caurina.transitions.Tweener;
         import flash.display.Loader;
         import flash.display.MovieClip;
         import flash.display.Sprite;
         import flash.display.StageAlign;
         import flash.display.StageDisplayState;
         import flash.display.StageScaleMode;
         import flash.events.Event;
         import flash.events.MouseEvent;
         import flash.net.URLRequest;
         public class MainClass extends MovieClip
              //create variables
              private var loader:Loader;
              private static const IMAGE_PATH:String = "bgs/bg.jpg";          
              public function MainClass() {
                   stage.align = StageAlign.TOP_LEFT;
                   stage.scaleMode = StageScaleMode.NO_SCALE;               
                   stage.addEventListener(Event.RESIZE, stageResize);          
                   //load external image
                   loader = new Loader();
                   loader.load(new URLRequest(IMAGE_PATH));
                   loader.contentLoaderInfo.addEventListener(Event.COMPLETE, showImage);
                   pic.addChild(loader);     
              private function showImage(e:Event):void
                   try {                              
                        e.target.content.alpha = 0;
                        Tweener.addTween(e.target.content, { alpha:1, time:1, transition:"easeOutSine" } );                    
                        e.target.content.smoothing = true;                              
                   } catch (e:Error) { };
                   stageResize();
              private function stageResize(e:Event=null):void
                   pic.x = 0;
                   pic.y = 0;
                   pic.scaleX = pic.scaleY = 1;               
                   if ((stage.stageHeight / stage.stageWidth) < pic.height / pic.width) {
                        pic.width = stage.stageWidth;
                        pic.scaleY = pic.scaleX;
                   } else {
                        pic.height = stage.stageHeight;                    
                        pic.scaleX = pic.scaleY;
                   pic.x = stage.stageWidth / 2 - pic.width / 2;
                   pic.y = stage.stageHeight / 2 - pic.height / 2;          
                   //my bottom navigation
                            bottomNav.x = Math.floor(stage.stageWidth / 2 - bottomNav.width / 2);
                   bottomNav.y = Math.floor(stage.stageHeight - bottomNav.height - 0);

    package com.ahmad.bg
         //import all classes
         import caurina.transitions.Tweener;
         import flash.display.Loader;
         import flash.display.MovieClip;
         import flash.display.Sprite;
         import flash.display.StageAlign;
         import flash.display.StageDisplayState;
         import flash.display.StageScaleMode;
         import flash.events.Event;
         import flash.events.MouseEvent;
         import flash.net.URLRequest;
         import flash.events.ProgressEvent;
         public class MainClass extends MovieClip
              //create variables
              private var loader:Loader;
              private static const IMAGE_PATH:String = "bgs/bg.jpg";          
              public function MainClass() {
                   stage.align = StageAlign.TOP_LEFT;
                   stage.scaleMode = StageScaleMode.NO_SCALE;               
                   stage.addEventListener(Event.RESIZE, stageResize);          
                   //load external image
                   loader = new Loader();
                   loader.load(new URLRequest(IMAGE_PATH));
                   loader.contentLoaderInfo.addEventListener(Event.COMPLETE, showImage);
                   loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, preload_image, false, 0, true);
                   private function preload_image(event:ProgressEvent):void
                          var per = int((event.bytesLoaded / event.bytesTotal) * 100);
                          pic.addChild(loader);
                          //make a textfield or preloader animation and assign this per to it.
              private function showImage(e:Event):void
                   try {                              
                        e.target.content.alpha = 0;
                        Tweener.addTween(e.target.content, { alpha:1, time:1, transition:"easeOutSine" } );                    
                        e.target.content.smoothing = true;                              
                   } catch (e:Error) { };
                   stageResize();
              private function stageResize(e:Event=null):void
                   pic.x = 0;
                   pic.y = 0;
                   pic.scaleX = pic.scaleY = 1;               
                   if ((stage.stageHeight / stage.stageWidth) < pic.height / pic.width) {
                        pic.width = stage.stageWidth;
                        pic.scaleY = pic.scaleX;
                   } else {
                        pic.height = stage.stageHeight;                    
                        pic.scaleX = pic.scaleY;
                   pic.x = stage.stageWidth / 2 - pic.width / 2;
                   pic.y = stage.stageHeight / 2 - pic.height / 2;          
                   //my bottom navigation
                   bottomNav.x = Math.floor(stage.stageWidth / 2 - bottomNav.width / 2);
                   bottomNav.y = Math.floor(stage.stageHeight - bottomNav.height - 0);
    Oh.. Thanks.. its working now... Thanks aloooooooooooooot.....
    Any other tip if you have a time to give me will be a greatful to you...
    Thanks again for your precious time.. I've seen your Awesome Portfolio at your website....

  • Exception class help

    Hi,
    i create exception class like it write in the sap help and when i want to send the exception with parameters to the ABOVE METHODS i don't susses  i just get the message without the parameter ?
    there is simple guideline how o transfer the exception with parameters?
    br
    Ricardo

    HI Uwe,
    Thanks,
    This is my sample code:
    This is the first method on the tree:
    the method name is create .
    INSERT (lt_table_name) FROM <ls_obj>.
        IF sy-subrc <> 0.
          RAISE EXCEPTION TYPE /cx_db_db_error
            EXPORTING
              textid     = cx_db_error=>create_failed
              table_name = lt_table_name.
        ENDIF.
    this method call to the above method - create .
    TRY.
            CALL METHOD lo_obj_create->create
              CHANGING
                is_bound_object = ls_obj_user.
          CATCH cx_db_error INTO lo_exc.
            "Create user failed. Throw an exception.
            RAISE EXCEPTION TYPE cx_db_error
              EXPORTING
                textid     = cx_db_error=>create_user_error
                previous   = lo_exc.
            result = lo_exc->get_text( ).
        ENDTRY.
    here in result i just get the massage without the table name that i export in the first method ,what i miss here ?
    Best Regards
    Ricardo

Maybe you are looking for

  • HP Pro 3130 MT Windows 7 How to use onboard VGA

    There's got to be a simple solution to this.  Our company recently took over another office and acquired several used PC's from them.  Three of them are HP Pro 3130 MT workstations with Windows 7.  These units have a built in VGA port and a DVI port.

  • Outlook 2010 messages that have not been deleted are available in Recover deleted Items list

    Hello, Outlook 2010\Exchange 2010 SP1-clustred I have looked at several mail accounts through Outlook 2010 client, they are not using the cached mode, they have not emptied the trash. When I look in Recover deleted items I am seeing messages, mostly

  • PDFmaker update Lotus notes 8.5.2

    Information for anyone using PDFMAKER and lotus notes we use corp version of lotus 6.5 and then 8.0 recently converted to 8.5.2. I have always used pdfmaker to conver email to pdf for years and when we upgraded it broke. Two key things to get it to w

  • Apple TV (2) keeps powering off.

    My Apple TV (2) keeps powering off after short periods of not using it. After disconnecting and re-inserting the power plug, the unit works properly. Is this normal?

  • LR5 cant read files.

    I recently started using LR5 and have imported pictures several times. These were RAW files from my Nikon D600. However, today I tried to import pictures and received the following message: "The following files were not imported because they could no