This is a minsweeper in java but......

The programme runs(thank god) but if you try to be fast, the buttons
doesn't correspond in time...like every button you press you have to wait 2 secs before pressing a button again.
Why that happens?what's my code problem?
Here is my code...
//first class------------------------------------------
public class boxes
     private boolean isPressed,isMarked;
     private int id; //id is the number of bomb around the box
     private boolean hasBomb;
     public boxes()
     id=1;
     isPressed=false;
     isMarked=false;
     hasBomb=false;
public void press()
isPressed=true;
public void unpress()
isPressed=false;
public int getID()
return id;
public void setID(int num)
this.id=num;
public boolean isPressed()
return isPressed;
public void setBomb()
hasBomb=true;
public boolean hasBomb()
return hasBomb;
public boolean isMarked()
return isMarked;
public void setMarked(boolean bool)
isMarked=bool;
//second class--------------------------------------------------
import java.util.*;
public class Board
     private boxes box[][];
     public Board() //making a 16X16 board
     box= new boxes[16][16];
          for (int i=0;i<16;i++){
          for(int j=0;j<16;j++){
          box[i][j]=new boxes();
     public void setBoxesID() //sets the id of each box
     int bomb;
     for(int i=0;i<16;i++){                       
     for(int j=0;j<16;j++){
     bomb=0;
     for(int i2=-1;i2<=1;i2++){               //looking if the boxes around the box has bombs
     for(int j2=-1;j2<=1;j2++){
     if (i2!=0 || j2!=0){
     if (i+i2>=0 && i+i2<=15 && j+j2<=15 && j+j2>=0){                       
     if (box[i+i2][j+j2].hasBomb()==true)bomb=bomb+1;
     box[i][j].setID(bomb);
public int getBoxID(int num1,int num2)
return box[num1][num2].getID();
public void pressZeroButtons(int num1,int num2)
box[num1][num2].press();
for(int i=-1;i<=1;i++){
for(int j=-1;j<=1;j++){
if(i!=0 || j!=0){
if (num1+i>=0 && num1+i<=15 && num2+j<=15 && num2+j>=0){                     
if (box[num1+i][num2+j].isPressed()==false && box[num1+i][num2+j].getID()==0){
if (box[num1+i][num2+j].isMarked()==false)pressZeroButtons(num1+i,num2+j);
pressSatellites(num1,num2);
//presses the button around a specific button
void pressSatellites(int num1,int num2)
for(int i=-1;i<=1;i++){
for(int j=-1;j<=1;j++){
if (i!=0 || j!=0){
if (num1+i>=0 && num1+i<=15 && num2+j>=0 && num2+j<=15){                        
if (box[num1+i][num2+j].isPressed()==false)box[num1+i][num2+j].press();
//sets random mines in board
public void setMines()
int area[],num1,num2,num3,counter;
boolean ok;
counter=0;
area=new int [40]; //number of mines
Random rand=new Random();
while (counter<40){                                 //change here
ok=true;
num1=rand.nextInt(16); //change here
num2=rand.nextInt(16);
num3=num1+num2*16;
for(int i=0;i<40;i++){                            //change here
if (area==num3)ok=false;
if (ok==true){
area[counter]=num3;
box[num1][num2].setBomb();
counter++;
public int getBoxStatus(int num1,int num2)
int num=0;
if (box[num1][num2].isPressed()==true)num=num+10; //10 is pressed
if (box[num1][num2].hasBomb()==false)num=num+box[num1][num2].getID(); //0-8 number of bombs
else num=9; //9 has bomb
return num; //ex 18 means that the button is
} //pressed and has 8 bombs around
//the conditions might be wrong----needs a double check
public boolean getWinnerCondition()
boolean ok=true;
for(int i=0;i<16;i++){                                  
for(int j=0;j<16;j++){
if (box[i][j].hasBomb()==true&&box[i][j].isMarked()==false)ok=false;
if (box[i][j].hasBomb()==false&&box[i][j].isPressed()==false)ok=false;
return ok;
//isMarked==has a flag
public boolean isMarked(int num1,int num2)
return box[num1][num2].isMarked();
public void setMarked(int num1,int num2,boolean bool)
box[num1][num2].setMarked(bool);
//third class----------------------------------------------------
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class UserInterface extends JFrame implements ActionListener
private JButton button[];
private JPanel panel;
private JFrame frame;
private Game game;
private JMenuBar menubar;
public UserInterface(Game game) //graphics and actionListeners
     this.game=game;
     frame=new JFrame();
     frame.setSize(700,700);
     menubar=new JMenuBar();
     frame.setJMenuBar(menubar);
JMenu menu=new JMenu("Game");
menubar.add(menu);
JMenuItem mi=new JMenuItem("New Game");
mi.setMnemonic(KeyEvent.VK_N);
mi.setActionCommand("NewGame");
mi.addActionListener(this);
menu.add(mi);
mi=new JMenuItem("Quit");
mi.setMnemonic(KeyEvent.VK_Q);
mi.setActionCommand("Quit");
mi.addActionListener(this);
menu.add(mi);
     panel= new JPanel();
     panel.setLayout(new GridLayout(16,16));
     button=new JButton[256];
for(int i=0;i<256;i++){                             
button[i]=new JButton();
button[i].setActionCommand(""+i);
panel.add(button[i]);
button[i].addMouseListener(new myAdapter());
frame.getContentPane().add(panel);
frame.setVisible(true);
private class myAdapter extends MouseAdapter{
public void mouseClicked(MouseEvent e){
JButton button;
button=(JButton)e.getSource();
if (button.isEnabled()==true){
if (e.getButton()==1){
button.setEnabled(false);
game.gameFlow(button.getActionCommand());
if (button.isEnabled()==true){
if (e.getButton()==3)game.setFlag(button.getActionCommand());
public void actionPerformed(ActionEvent e)
JMenuItem menu;
menu=(JMenuItem)e.getSource();
if(menu.getActionCommand().equals("NewGame"))game.newGame();
if(menu.getActionCommand().equals("Quit"))System.exit(0);
     public void lockButton(int num)
     button[num].setEnabled(false);
     public void unlockButton(int num)
     button[num].setEnabled(true);
     public void setButtonText(int num,String text)
button[num].setText(text);
class 4---------------------------------------------------------------
public class Game
     private     UserInterface Uint;
     private     Board board;
     public Game()
     Uint=new UserInterface(this);
     board=new Board();
     board.setMines();
     board.setBoxesID();
     public void gameFlow(String s)
     int num,num1,num2;
     num=Integer.valueOf(s).intValue();
     num1=num%16; //the graphics buttons are from 0-256 but the board buttons
     num2=num/16; //have two numbers(ex [5][12]
     if (board.getBoxStatus(num1,num2)%10==9)theEnd(); //if you press bomb the end!!
     if (board.getBoxStatus(num1,num2)==0){                        //if you press.......
     Uint.setButtonText(num,""+0);
     board.pressZeroButtons(num1,num2);
     for(int i=0;i<16;i++){                      
     for(int j=0;j<16;j++){
     if (board.getBoxStatus(i,j)>=10){
     Uint.lockButton(j*16+i);
     Uint.setButtonText(j*16+i,""+board.getBoxID(i,j));
     else Uint.setButtonText(num,""+board.getBoxID(num1,num2));
     if (board.getWinnerCondition()==true)theEnd();
public void setFlag(String s)
int num,num1,num2;
num=Integer.valueOf(s).intValue();
num1=num%16; //change here
num2=num/16;
if(board.isMarked(num1,num2)==false){
Uint.setButtonText(num,"F");
//Uint.setButtonIcon(num);
board.setMarked(num1,num2,true);
if (board.getWinnerCondition()==true)theEnd();
else{
Uint.setButtonText(num,"");
board.setMarked(num1,num2,false);
public void theEnd()
for(int i=0;i<256;i++)Uint.lockButton(i);
public void newGame()
for (int i=0;i<256;i++)
Uint.unlockButton(i);
Uint.setButtonText(i,"");
board=new Board();
board.setMines();
board.setBoxesID();
//class 5===========================================================
public class GameStart
     public static void main(String args[])
     Game game=new Game();

The programme runs(thank god) but if you try to be fast, the buttons
doesn't correspond in time...like every button you press you have to wait 2 secs before pressing a button again.
Why that happens?what's my code problem?
Here is my code...
class 1/5------------------------------------------------------------
public class boxes
     private boolean isPressed,isMarked;
     private int id;            //id is the number of bombs around the box
     private boolean hasBomb;
     public boxes()               
         id=1;
         isPressed=false;
         isMarked=false;
         hasBomb=false;
    public void press()
        isPressed=true;
    public void unpress()
        isPressed=false;
    public int getID()
        return id;
    public void setID(int num)
         this.id=num;
    public boolean isPressed()
         return isPressed;
    public void setBomb()
          hasBomb=true;
    public boolean hasBomb()
          return hasBomb;
    public boolean isMarked()
          return isMarked;
    public void setMarked(boolean bool)
          isMarked=bool;
//class 2/5---------------------------------------------------------
import java.util.*;
public class Board
     private boxes box[][];
     public Board()                    //making a 16X16 board
         box= new boxes[16][16];                    
          for (int i=0;i<16;i++){
              for(int j=0;j<16;j++){
                   box[i][j]=new boxes();
     public void setBoxesID()                       //sets the id of each box
       int bomb;
       for(int i=0;i<16;i++){                       
         for(int j=0;j<16;j++){
           bomb=0;
           for(int i2=-1;i2<=1;i2++){               //looking if the boxes around the box has bombs
            for(int j2=-1;j2<=1;j2++){
             if (i2!=0 || j2!=0){
              if (i+i2>=0 && i+i2<=15 && j+j2<=15 && j+j2>=0){                       
                if (box[i+i2][j+j2].hasBomb()==true)bomb=bomb+1;
           box[i][j].setID(bomb);
   public int getBoxID(int num1,int num2)
        return box[num1][num2].getID();
   public void pressZeroButtons(int num1,int num2)         
     box[num1][num2].press();
     for(int i=-1;i<=1;i++){
       for(int j=-1;j<=1;j++){
         if(i!=0 || j!=0){
           if (num1+i>=0 && num1+i<=15 && num2+j<=15 && num2+j>=0){                     
             if (box[num1+i][num2+j].isPressed()==false && box[num1+i][num2+j].getID()==0){
               if (box[num1+i][num2+j].isMarked()==false)pressZeroButtons(num1+i,num2+j);
     pressSatellites(num1,num2);
//presses the button around a specific button
  void pressSatellites(int num1,int num2)
    for(int i=-1;i<=1;i++){
      for(int j=-1;j<=1;j++){
        if (i!=0 || j!=0){
          if (num1+i>=0 && num1+i<=15 && num2+j>=0 && num2+j<=15){                        
            if (box[num1+i][num2+j].isPressed()==false)box[num1+i][num2+j].press();
  //sets random mines in board
   public void setMines()
       int area[],num1,num2,num3,counter;
       boolean ok;
       counter=0;
       area=new int [40];                             //number of mines
       Random rand=new Random();
       while (counter<40){                                 //change here
           ok=true;
           num1=rand.nextInt(16);                          //change here
           num2=rand.nextInt(16);
           num3=num1+num2*16;
         for(int i=0;i<40;i++){                            //change here
            if (area==num3)ok=false;
if (ok==true){
area[counter]=num3;
box[num1][num2].setBomb();
counter++;
public int getBoxStatus(int num1,int num2)
int num=0;
if (box[num1][num2].isPressed()==true)num=num+10; //10 is pressed
if (box[num1][num2].hasBomb()==false)num=num+box[num1][num2].getID(); //0-8 number of bombs
else num=9; //9 has bomb
return num; //ex 18 means that the button is
} //pressed and has 8 bombs around
//the conditions might be wrong----needs a double check
public boolean getWinnerCondition()
boolean ok=true;
for(int i=0;i<16;i++){                                  
for(int j=0;j<16;j++){
if (box[i][j].hasBomb()==true&&box[i][j].isMarked()==false)ok=false;
if (box[i][j].hasBomb()==false&&box[i][j].isPressed()==false)ok=false;
return ok;
//isMarked==has a flag
public boolean isMarked(int num1,int num2)
return box[num1][num2].isMarked();
public void setMarked(int num1,int num2,boolean bool)
box[num1][num2].setMarked(bool);
//class 3/5---------------------------------------------
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class UserInterface extends JFrame implements ActionListener
private JButton button[];
private JPanel panel;
private JFrame frame;
private Game game;
private JMenuBar menubar;
public UserInterface(Game game) //graphics and actionListeners
     this.game=game;
     frame=new JFrame();
     frame.setSize(700,700);
     menubar=new JMenuBar();
     frame.setJMenuBar(menubar);
JMenu menu=new JMenu("Game");
menubar.add(menu);
JMenuItem mi=new JMenuItem("New Game");
mi.setMnemonic(KeyEvent.VK_N);
mi.setActionCommand("NewGame");
mi.addActionListener(this);
menu.add(mi);
mi=new JMenuItem("Quit");
mi.setMnemonic(KeyEvent.VK_Q);
mi.setActionCommand("Quit");
mi.addActionListener(this);
menu.add(mi);
     panel= new JPanel();
     panel.setLayout(new GridLayout(16,16));
     button=new JButton[256];
for(int i=0;i<256;i++){                             
button[i]=new JButton();
button[i].setActionCommand(""+i);
panel.add(button[i]);
button[i].addMouseListener(new myAdapter());
frame.getContentPane().add(panel);
frame.setVisible(true);
private class myAdapter extends MouseAdapter{
public void mouseClicked(MouseEvent e){
JButton button;
button=(JButton)e.getSource();
if (button.isEnabled()==true){
if (e.getButton()==1){
button.setEnabled(false);
game.gameFlow(button.getActionCommand());
if (button.isEnabled()==true){
if (e.getButton()==3)game.setFlag(button.getActionCommand());
public void actionPerformed(ActionEvent e)
JMenuItem menu;
menu=(JMenuItem)e.getSource();
if(menu.getActionCommand().equals("NewGame"))game.newGame();
if(menu.getActionCommand().equals("Quit"))System.exit(0);
     public void lockButton(int num)
     button[num].setEnabled(false);
     public void unlockButton(int num)
     button[num].setEnabled(true);
     public void setButtonText(int num,String text)
button[num].setText(text);
class 4/5------------------------------------------------
public class Game
     private     UserInterface Uint;
     private     Board board;
     public Game()
     Uint=new UserInterface(this);
     board=new Board();
     board.setMines();
     board.setBoxesID();
     public void gameFlow(String s)
     int num,num1,num2;
     num=Integer.valueOf(s).intValue();
     num1=num%16; //the graphics buttons are from 0-256 but the board buttons
     num2=num/16; //have two numbers(ex [5][12]
     if (board.getBoxStatus(num1,num2)%10==9)theEnd(); //if you press bomb the end!!
     if (board.getBoxStatus(num1,num2)==0){                        //if you press.......
     Uint.setButtonText(num,""+0);
     board.pressZeroButtons(num1,num2);
     for(int i=0;i<16;i++){                      
     for(int j=0;j<16;j++){
     if (board.getBoxStatus(i,j)>=10){
     Uint.lockButton(j*16+i);
     Uint.setButtonText(j*16+i,""+board.getBoxID(i,j));
     else Uint.setButtonText(num,""+board.getBoxID(num1,num2));
     if (board.getWinnerCondition()==true)theEnd();
public void setFlag(String s)
int num,num1,num2;
num=Integer.valueOf(s).intValue();
num1=num%16; //change here
num2=num/16;
if(board.isMarked(num1,num2)==false){
Uint.setButtonText(num,"F");
//Uint.setButtonIcon(num);
board.setMarked(num1,num2,true);
if (board.getWinnerCondition()==true)theEnd();
else{
Uint.setButtonText(num,"");
board.setMarked(num1,num2,false);
public void theEnd()
for(int i=0;i<256;i++)Uint.lockButton(i);
public void newGame()
for (int i=0;i<256;i++)
Uint.unlockButton(i);
Uint.setButtonText(i,"");
board=new Board();
board.setMines();
board.setBoxesID();
//class 5/5-------------------------------------------------
public class GameStart
     public static void main(String args[])
     Game game=new Game();

Similar Messages

  • I just updated my latest java but the update is causing problems with some externale devices. So i would like to uninstall this latest java update and get back the previous one. That should solve to problems with my external device

    i just updated my latest java but the update is causing problems with some external devices. So i would like to uninstall this latest java update and get back the previous one. That should solve to problems with my external device.
    Is this possible and how do i do that?
    Anyone who responds thanks for that!
    Juko
    I am running
    Hardware Overview:
      Model Name:          Mac Pro
      Model Identifier:          MacPro1,1
      Processor Name:          Dual-Core Intel Xeon
      Processor Speed:          2,66 GHz
      Number of Processors:          2
      Total Number of Cores:          4
      L2 Cache (per Processor):          4 MB
      Memory:          6 GB
      Bus Speed:          1,33 GHz
      Boot ROM Version:          MP11.005D.B00
      SMC Version (system):          1.7f10
      Serial Number (system):          CK7XXXXXXGP
      Hardware UUID:          00000000-0000-1000-8000-0017F20F82F0
    System Software Overview:
      System Version:          Mac OS X 10.7.5 (11G63)
      Kernel Version:          Darwin 11.4.2
      Boot Volume:          Macintosh HD(2)
      Boot Mode:          Normal
      Computer Name:          Mac Pro van Juko de Vries
      User Name:          Juko de Vries (jukodevries)
      Secure Virtual Memory:          Enabled
      64-bit Kernel and Extensions:          No
      Time since boot:          11 days 20:39
    Message was edited by Host

    Java 6 you can't as Apple maintains it, and Java 7 you could if you uninstall it and Oracle provides the earlier version which they likely won't his last update fixed 37 remote exploits.
    Java broken some software here and there, all you'll have to do is wait for a update from the other parties.

  • I get a a message "javascript: void (0)" when I turn on online radio. This problem is related also with other browsers. I reinstalled java but nothing changed

    This problem is related also with chrome, opera and explorer. I reinstalled java but nothing changed

    To avoid confusion:
    *http://kb.mozillazine.org/JavaScript_is_not_Java
    Note the javascript: void(0); is often use as a placeholder URL to indicate that an onclick event is tied to the link to do the actual action.<br />
    If JavaScript is blocked for some reason then this javascript: void(0); links comes into view.
    Make sure that you do not block JavaScript.
    *http://kb.mozillazine.org/JavaScript
    Also make sure that your security software isn't blocking JavaScript if it happens in other browsers as well.
    You can try these steps in case of issues with web pages:
    Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loop

    sir i have given lot of effort but i am not able to solve my problem either with notifiers or with occurence fn,probably i do not know how to use these synchronisation tools.

    sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loopHi Sam,
    I want to pass along a couple of tips that will get you more and better response on this list.
    1) There is an un-written rule that says more "stars" is better than just one star. Giving a one star rating will probably eliminate that responder from individuals that are willing to anser your question.
    2) If someone gives you an answer that meets your needs, reply to that answer and say that it worked.
    3) If someone suggests that you look at an example, DO IT! LV comes with a wonderful set of examples that demonstate almost all of the core functionality of LV. Familiarity with all of the LV examples will get you through about 80% of the Certified LabVIEW Developer exam.
    4) If you have a question first search the examples for something tha
    t may help you. If you can not find an example that is exactly what you want, find one that is close and post a question along the lines of "I want to do something similar to example X, how can I modify it to do Y".
    5) Some of the greatest LabVIEW minds offer there services and advice for free on this exchange. If you treat them good, they can get you through almost every challenge that can be encountered in LV.
    6) If English is not your native language, post your question in the language you favor. There is probably someone around that can help. "We're big, we're bad, we're international!"
    Trying to help,
    Welcome to the forum!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • New to JAVA, but old school to programming

    Objects & Classes & Methods, Oh my!
    I'm pretty new to java, but I've been programming in several languages over the years. I thought it was about time to update my skill set, especially with the job market as it is today. I wanted to go JAVA because it's not specific to any environment.
    I picked up a begining JAVA book and was a little confused. When I was learning programming a program was called a program. a peice of code in a program called by a statement was called a subroutine (it was performed then control returned to the calling line and continued).
    Now I'm trying to make sense of everything I have read so far and trying to relate it back to my old school of thinking. I was hoping it would make it easier to retain and I could expand it as I learn and possibly realize that it IS different. I know it's a new way of thinking, but stay with me for minute.
    What I used to call a program is now a CLASS in JAVA (this can be a collection of code or other objects). A sub-routine in a CLASS is a Method. I know that the language part will come as I use it since I understand if's then's and whatever you use to gosub or goto, but I want to make sure I have down the lingo before I go to deep.

    I have no idea how you can compare Java to Cobol.
    DataFlex? How about that! In about '84 I switched to
    DataFlex from dBaseII. In '91 DataFlex changed from
    procedural to OOP. It took most of us at least a year
    to adjust, and then some to write concrete code. It
    was tough. They had bugs and we were limited with DOS.
    BUT, it was a great OOP training experience. Anyhow,
    needless to day Java is miles ahead on all fronts.Small world. I was stuck in the old DataFlex Ver 2.3 at that time. The company I worked for had the newer OOP package. I did get to work with it some, but not enough to become totally familiar with it. We started to move out of DataFlex towards PowerBuilder towards the end of 1995. I did get some OOP from that experience, but again only enough to learn about global variables, instance variables, and a few other items. I hoping that I will be able to get the solid OOP background that I need from JAVA since I hear through the grapevine that it may be a new tool that we will be looking at to enhance our programming. I was looking at PERL but even the PERL programmers we have agree that JAVA is more scalable.

  • Using Google GWT to create (Dashcode) widgets for iBook Author  I would like to embed interactive widgets in iBooks using iBookAuthor. The widgets in question started life in Java but GWT has allowed them to be converted to javascript and to run on web pa

    I would like to embed interactive widgets in iBooks using iBookAuthor. The widgets in question started life in Java but GWT has allowed them to be converted to javascript and to run on web pages (for example, http://softoption.us/content/node/437 scroll to the bottom). In theory, iBookAuthor can bring in most html5, and much javascript. The technique is to wrap the html in a folder, with 2 extra files, a plist and a default png and then change the extension of the folder to ‘.wdgt’. This is the technique for making Dashboard widgets for the Mac, and Apple even have the Dashcode software to do it. So what you really do is to make a Dashboard widget, then iBookAuthor can import it.  So far, so good. And some  folk have been doing this, for example http://www.prweb.com/releases/2012/2/prweb9242432.htm http://www.panophoto.org/forums/viewtopic.php?f=64&t=10417&p=158330#p158423 However, if you start with GWT and create a single page with one button and a Hello World, compile it, and get the WAR file (I use Eclipse here)… the Safari browser and others will run it properly (even on an iPad). Then if you wrap it, a proper Dashboard widget is created, which runs properly on a Mac. Then if you go to iBookAuthor and put a custom widget in the Text, then drag it in. It is accepted by the text and shown as being there. However, if you use Preview to look at it on an iPad, it is gone (or was never there in the first place). Anyone any ideas on this? [And iBook Author seems to give no warnings.] The widget is at https://dl.dropbox.com/u/46713473/Test6.wdgt.zip I have bells and whistles that I’d like to get into an iBook!
    Thanks for any insights.
    Martin

    I do have a little to add, which might help someone. Indeed, opening a blank page and dragging the widget straight in seems good in difficult cases. But, actually, I was also able to insert successfully from the Toolbar especially to blank pages. So, it may have been something to do with the columns and stuff like that. Anyway back then the insertion would show in iBooks Author but not in the Preview on the iPad. I moved on to actual Google Web Toolkit output javascript. Basically I had three at hand to try: a Hello World with a button which went straight it, one of moderate complexity, (for example with a built in Lisp interpreter), which also went straight in, and finally a more complex one that initially was rejected by iBook Author. Author complained that there was an unsupported media file (of course, Author does not tell you which one it is, that would be too easy). [Remember, this was a proper working Dashboard widget which could be installed on a Mac]. Among other things I had read remarks about .gif files. When looking through the GWT war directory at the actual javascript etc files, I noticed there were two gifs there one called ‘clear.cache.gif ‘  and a second one called  ‘0F89659FF3F324AE4116F700257E32BD.cache.gif’. (Now, there is obfuscation so the numbers here may be different from case to case.) The clear.cache.gif did not seem to be anything special. But the other one is an animation. It is three little boxes that twinkle (rather like a waiting spinning cursor).  So, I opened that file and saved it to itself (that picks the top frame of the animation and saves only that, leaving you with an unanimated gif). The resulting widget drags and drops into iBooks Author (and seems to work properly at a quick glance). So, if you are having trouble with ‘unsupported media files’ converting animated gifs into unanimated gifs might help in some cases.

  • Downloaded new version of Java but doubled clicked on it and it will not install, message says i need to open it with an application and wants me to choose one.

    firefox disabled my version of java, i went to the free download site to get the newest version, clicked on download then doubled click on it in the download list, this should have started the intallation but instead i got a message saying i needed an application to open the link and wanted me to choose an app. Install box did not come up as it has with other downloads. I do not want to open it i want to install it.

    Where did you download the java?
    Download it from here [https://www.java.com/en/download/index.jsp https://www.java.com/en/download/index.jsp]

  • HT5559 JAVA WITH CHROME!!! I am trying to login to my bank account at nordea.dk. This website uses somekind of java thing. Chrome cant't load it. Works perfect with Safari. How to make it work in Chrome?

    I am trying to login to my bank account at nordea.dk. This website uses somekind of java thing. Chrome cant't load it. Works perfect with Safari. How to make it work in Chrome?

    Do you speak of true blue Java or Javascript?  If the latter then it is a problem with the Browser.
    But if it is the real Java, do you have the offical version of Java from Oracle installed?
    Getting applications to see official Java is a nightmare.  If you install the Runtime Environment only (JavaRTE) most applications do not see it.
    To force offical Java system wide, I found you have to install the Java Developer Kit (JavaJDK).  It's a larger install as it also comes with documentation and compilers but it make offical Java system wide.

  • The application is saying I don't have updated Java, but I do.

    I am using the Kies Air Discovery Service for my new Samsung Phone.  Trying to download more than one photo at a time, it says that I need to update Java, but it's already updated.    Help? !

    On the right side, next to the recycle bin and documents...
    Perhaps it is called Applications. I am running the Norwegian language...
    The application you are looking for is called "Java Preferences".
    This is what you are looking for: JavaPreferences.png

  • Uninstalled Java, but my apps still work??

    I'm wondering if there's something I'm not looking for -- some way Java can start up.
    I uninstalled it and I don't understand why some Java-based apps still work.
    How is that possible?
    The reason I care about this is because I removed Java in response to a virus.
    I haven't found traces of the virus (possibly "Win32/TrojanDownloader.Agent.PDF trojan") anymore.
    I've used all kinds of utils to get rid of it:
    Manually: ProcessExplorer, HiJackThis, Process Scanner
    Automated: NOD32, Malwarebytes, Ad-Aware, Spybot, TrojanHunter, Trojan Remover
    I uninstalled Java with Windows Add/Remove.
    And I don't have any "Java"-titled processes listed as currently running in my Windows Task Manager.
    But now some Java programs work and some say they can't find Java.
    Working: OpenOffice, FileZilla
    Not Working: jEdit, Spark, DirSyncPro
    I just noticed and deleted some "java" titled items in my Prefetch directory.
    I'll restart now.

    Ok, nothing reappeared in the "Prefetch" directory, but OpenOffice and FileZilla both work fine.

  • NO clue about JAVA but need help please

    I am cleaning up someone's else work who used to be employed here. I know ZIP about Java but am becoming more and more familiar with WAR files and deplying them with Jrun on an NT2K Server.So here is what I have. I have a deployed app from months ago. I have a new app to deploy. I did this successfully. I can access it, etc. But I am getting some SQL error.
    Can anyone give me any idea what it could be? I have looked at my sqlcustomauthentication.java file and i have not anything to it. Why would something change on this when all I really did was re-deploy it.
    Here is the error.
    Thanks a TON!!
    java.lang.NullPointerException:
         at allaire.jrun.security.SQLCustomAuthentication.getName(SQLCustomAuthentication.java:76)
         at jrun__members2ejspc._jspService(jrun__members2ejspc.java:62)
         at allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java:39)
         at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:228)
         at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:196)
         at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
         at allaire.jrun.session.JRunSessionService.service(JRunSessionService.java, Compiled Code)
         at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled Code)
         at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java, Compiled Code)
         at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
         at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
         at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java, Compiled Code)
         at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java, Compiled Code)
         at allaire.jrun.ThreadPool.run(ThreadPool.java, Compiled Code)
         at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code)

    It looks like maybe you are having a problem in the way you are accessing the authentication on your db. From the error message, I would say the name field needed to log in is never being set

  • The problem is this: In the phase "Create Java Users"

    Hello,
    I am installing Solution Manager 4.0 Release 2 (with Red Hat Enterprise Linux Server release 5.1 and Oracle 10 and my java version is: j2sdk1.4.2_14) The problem is this: In the phase "Create Java Users" I get the next error
    WARNING 2009-02-13 14:53:22
    Execution of the command "/usr/sap/PTS/DVEBMGS00/exe/jlaunch UserCheck.jlaunch com.sap.security.tools.UserCheck /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/lib:/tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/sharedlib:/tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install -c sysnr=00 -c ashost=sap-vpmn -c client=001 -c user=DDIC -c XXXXXX -a checkCreate -u SAPJSF -p XXXXXX -r SAP_BC_JSF_COMMUNICATION_RO -message_file UserCheck.message" finished with return code 2. Output:
    java.lang.ClassNotFoundException: com.sap.security.tools.UserCheck
    at com.sap.engine.offline.FileClassLoader.findClass(FileClassLoader.java:691)
    at com.sap.engine.offline.FileClassLoader.loadClass(FileClassLoader.java:600)
    at com.sap.engine.offline.FileClassLoader.loadClass(FileClassLoader.java:578)
    at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:79)
    INFO 2009-02-13 14:53:22
    Removing file /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/dev_UserCheck.
    INFO 2009-02-13 14:53:22
    Removing file /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/dev_UserCheck.clone.
    ERROR 2009-02-13 14:53:22
    CJS-30196
    ERROR 2009-02-13 14:53:22
    FCO-00011 The step createJSF with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_Doublestack|ind|ind|ind|ind|3|0|createJSF was executed with status ERROR .
    Thanks & Regards

    Hi,
    This problem normally arises with the wrong combination of JDK and OS and for the Linux machines, its better to use IBM Java instead of SUN java
    I remember that I have solved this type of problem by using lower version of IBMJava2-AMD64-142-SDK-1.4.2-10.0.x86_64.rpm which is SR10. You can download this version from
    http://www.ibm.com/developerworks/java/jdk/linux/download.html
    go to download _12 and then just change the sr12 to sr10 in the header url....
    FCO-00011 The step createJSF with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_Doublestack|ind|ind|ind|ind|3|0|createJSF was executed with status ERROR .
    with the higher versions of java for 64bit systems create serious stack over flow problems.....
    what I suggest you is to start reinstallating SolMan after installing IBM java sr10 version...
    Regards,
    Naveen.

  • Can anyone help me with Magicjack? after I purchased US number I am unable to log in on my Iphone, I keep getting an error "YOUR DEVICE IS NOT ON THIS ACCOUNT" I contacted MJ support but they are very much useless and dont know how to fix it!

    can anyone help me with Magicjack? after I purchased US number I am unable to log in on my Iphone, I keep getting an error "YOUR DEVICE IS NOT ON THIS ACCOUNT" I contacted MJ support but they are very much useless and dont know how to fix it!

    There's a whole lot to read in your post, and frankly I have not read it all.
    Having said that, this troubleshooting guide should help:
    http://support.apple.com/kb/TS1538
    In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it.

  • I tried to sync music from iTunes to my iPhone and when I click on "on this phone" the songs are there, but they are greyed out and have a circle in front of them.  I can not click on those songs and when I eject the phone they are not on the phone.

    I tried to sync music from iTunes to my iPhone and when I click on "on this phone" the songs are there, but they are greyed out and have a circle in front of them.  I can not click on those songs, delete or anything and when I eject the phone they are not on the phone.  I tried to re-add the songs and it says it can't add songs because they've already been added.  So HOW can I get the songs to actually ADD to my phone to where I can listen to them?  It's like they're stuck in Sync limbo or something!  Any help would be greatly appreciated.

    I am having the same problem. I have just tried this. Unplug iphone > open itunes > delete all music from itunes library > close itunes > re-open itunes > add music from original folder > plug in iphone > select songs > press sync > unplug iphone using eject button onscreen > checked phone .... still nothing in music folder on phone. On itunes the "On this iphone" tab the songs remain there but greyed out.

  • So I keep trying to sync music to my iPhone from iTunes, and whenever I select the album the sync goes by really fast and nothing goes onto my phone. Then when I click "On this iPhone" it shows the songs, but they're grey, and I can't click on them. Help?

    So I keep trying to sync music to my iPhone from iTunes, and whenever I select the album the sync goes by really fast and nothing goes onto my phone. Then when I click "On this iPhone" it shows the songs, but they're grey, and I can't click on them. Help?

    Ok, sorry. And yes, I just restored my iPhone as new and tried to put all the songs on there before I even restored with my previous backup, but it still does the same thing... even when I just checked the option to sync only "selected music or videos". How's that possible?
    P.S. After I tried syncing with checked songs only, nothing showed up under Music on my phone and this message popped up in iTunes: "The iPhone "..." could not be synced because the sync session failed to finish." If you could, please tell me what that means, thanks.

Maybe you are looking for

  • ALV .  How to remove the sort buttons on toolbar in ALV report?

    Hi,experts   As you know, in default case , the alv report will display two sort buttons(ascending ,descending) on its toolbar , So How to remove the sort buttons on toolbar in ALV report?   Thanks for your help .

  • Using mercury test scripts in eCATT

    Can anyone tell me if its possible to use the test case built in Mercury QTP be used as eCATT test case to run the test. If thats possible wats the way to use them. All along i hav been using Mercury to Test Sap application now i need to build the te

  • The Sims 2 UB Rev E..FINALLY!

    YAY!!! I just checked the ASPYR website and they have come out with the Universal Binary Patch Rev E which according to ASPYR "Fixes a bug on Intel Macs where all offspring of a couple had identical facial features." The Rev D drove me crazy with the

  • A start of 960 x 600 for new larger monitors? Maybe a larger size?

    In Bowser Chrome my 960 width comes out to be 13" or so, perfect!, but with IE, Safari, Firefox, it displays much smaller? Q #1: Am I missing something to achieve this? Thanks for any info! Q #2: The blurs only work in Chrome. Why? It seemed that the

  • Resource Search without WFM Core

    Hi all, Is it possible to search for resources in cProjects frontend without using WFM Core? Please guide. Thanks, Vivek Pandey