Problems accessing variables and methods, not sure if this is even possible

Hi
Ive been having problems with a noughts and crosses game. Perhaps i structured it wrong, but i would welcome some advice on how to overcome this problem. I thought i had pretty much completed the game.
What i have so far is a class called Main and it has a gridlayout. i have 9 JPanels called "Choice" on this main frame, Choice contains a button which is either noughts or crosses depending on whose turn it is. Once pressed the button on the JPanel Choice dissappears and is replaced with a image.
Now although this works fine, the problem im having is making all the other Buttons on the Choice Jpanels on the Frame Main to turn to the opposite to what they are. The getters and setters are all there, but i just cant seem to figure out how to send information from the buttons upwards to the frame and then backwards to each of the individual buttons.
It would be easier if i just put it all into one class, but i didnt want it to be messy, is there anyway to send information in this manor?
I tried to add all my code but it said it exceeded the message length. But let me know if you would like it, perhaps i can send it in bits....The only two classes missing are Noughts.java and Cross.java, they are just classes that create images from urls. Hope that helps
package NoughtsAndCrossesButtons;
import javax.swing.*;
import java.awt.*;
public class Cross extends JPanel{
    private static Image image;
    public Cross(){
        try{
            image = javax.imageio.ImageIO.read(new java.net.URL("http://upload.wikimedia.org/wikipedia/commons/thumb/5/58/Knotwork-cross-multicolored.svg/600px-Knotwork-cross-multicolored.svg.png"));
        }catch(Exception e){
    protected void paintComponent(Graphics g)
    super.paintComponent(g);
    if (image != null)
      g.drawImage(image, 0,0,this.getWidth(),this.getHeight(),this);
package NoughtsAndCrossesButtons;
import java.awt.event.*;
import javax.swing.*;
public class Choice extends JPanel implements ActionListener{
    private JButton choiceButton = new JButton("Noughts");
    private Cross cross = new Cross();
    private Noughts nought = new Noughts();
    private int x = 5;
    private int y = 10;
    private int bounds = 100;
    private String state = "n";
    public Choice(){
     this.add(choiceButton);
     choiceButton.setBounds(x,y,bounds,bounds);
     choiceButton.addActionListener(this);
     this.setLayout(null);
     //this.setSize(200,200);
     //choices.addActionListener(this);
    public void actionPerformed(ActionEvent e){
        //Object source = e.getSource();
       if(choiceButton.getText().equals("Noughts")){
           this.remove(choiceButton);
           this.add(nought);
           nought.setBounds(x,y,bounds,bounds);
           this.revalidate();
           this.repaint();
       if(choiceButton.getText().equals("Crosses")){
           this.remove(choiceButton);
           this.add(cross);
           cross.setBounds(x,y,bounds,bounds);
           this.revalidate();
           this.repaint();
    public void setState(String s){
        state = s;
        checkState();
    public String getState(){
        return state;
    public void checkState(){
        if(getState().equals("n")){
            choiceButton.setText("Noughts");
        if(getState().equals("c")){
            choiceButton.setText("Crosses");
}Thank you
SSkenth

Thank you for you replys, both of which were helpful. I found out a way of getting what i as looking for by creating a counter.. called clicked
Each time the button is pressed it adds 1 to its int value of click. (since it can only be clicked once) I then know whos turn it is, by using a modulus of the clicked value... so if its divisible by 2 its a nought otherwise its a cross or vice verse. heres the code for reference
This code is in the JPanel for choice
public void actionPerformed(ActionEvent e){
      // Object source = e.getSource();
       if(choiceButton.getText().equals("Noughts")){
           clicked +=1;
           this.remove(choiceButton);
           this.add(nought);
           nought.setBounds(x,y,bounds,bounds);
           state = "c";
           this.revalidate();
           this.repaint();
          // System.out.println(source);
       if(choiceButton.getText().equals("Crosses")){
           clicked +=1;
           this.remove(choiceButton);
           this.add(cross);
           cross.setBounds(x,y,bounds,bounds);
           state = "n";
           this.revalidate();
           this.repaint();
    } This is in the Main class, so im constantly checking for changes
public void run(){
        while(true){
            int clicks = whosTurn()+1;
            try{
                if(clicks%2==0){
                    setStateNought();
                }else{
                    setStateCross();
                this.sleep(100);
             }catch(InterruptedException e){
                System.err.print("error in main thread");
     public int whosTurn(){
        return choice.clicked()+choice2.clicked()
                +choice3.clicked()+choice4.clicked()+choice5.clicked()
                    +choice6.clicked()+choice7.clicked()+choice8.clicked()+choice9.clicked();
     public void setStateNought(){
         choice.setState("n");
         choice2.setState("n");
         choice3.setState("n");
         choice4.setState("n");
         choice5.setState("n");
         choice6.setState("n");
         choice7.setState("n");
         choice8.setState("n");
         choice9.setState("n");
     public void setStateCross(){
         choice.setState("c");
         choice2.setState("c");
         choice3.setState("c");
         choice4.setState("c");
         choice5.setState("c");
         choice6.setState("c");
         choice7.setState("c");
         choice8.setState("c");
         choice9.setState("c");
     }As im sure you guessed im fairly new at this, well, i seem to do ok with coding its just the GUI i struggle with. Please feel free to criticise(positive that it)
Thank you again
SSKenth

Similar Messages

  • I have purchased a new iPad2 and I was wondering if there is a way to get iPod content onto this new device. I am having difficulty finding any information on this kind of transfer and I am not sure if it is even possible. Thanks

    I have purchased a new iPad2 and I was wondering if there is a way to get iPod content onto this new device. I am having difficulty finding any information on this kind of transfer and I am not sure if it is even possible. Just not looking forward to loosing my progress in games and information in notes and other apps. Thanks

    Have you been syncing the iPod with iTunes? Then you just connect the iPad and set it up through iTunes and sync any content you want onto it.
    http://support.apple.com/kb/ht1386
    In terms of games/apps. If they are not universal (you will see a + symbol next to them) or made for iPad (you would see an HD in the name, usually) then they won't look good on an iPad as those apps will open in a iPod sized window, giving you the option to enlarge.

  • I have just received an email asking me to verify if I have used my account to spend 20$ which I have not, I've followed the link and am not sure if this is a hoax ?

    I have just received an email asking me to verify if I have used my account to spend 20$ which I have not, I've followed the link and am not sure if this is a hoax ?

    What does the email say, and is it personalised (e.g. does it have your name in the email or just something like 'dear customer') ? There are regular phishing emails trying to get account and payment details.
    You can view your account's purchase history by logging into your account on your computer's iTunes via the Store > View Account menu option, and you should see a Purchase History section with a 'see all' link to the right of it, click on that and you should then see a list of your purchases. If you are using an iOS device then you can view the last 90 days purchases via http://reportaproblem.apple.com

  • 1131 in autonomous mode. Not sure the below is even possible

    Hi all,
      My boss asked me to try and set up an 1131 with 2 SSID's; serve dhcp for both SSID's from the AP and I cant trunk from f0 because the device the AP will connect to cant accept dot1q.  Does anyone know if this is possible?  If so pointing me at a doc would be greatly appreciated.
    Thanks,
    Bill

    Can be done.  Don't create any subinterface.  Just put the two SSIDs into the radio interface.

  • Input/Output And Method Not Found Problem

    Ok so firstly I think I should apologise on two fronts.
    Firstly, 'cause this is probably posted in the wrong board but I'm not sure this was suitable for the Swing board just 'cause I've been using Swing? And secondly 'cause the code I'm gonna post is so shoddy I would think this constitutes as flaim-bait. >_>
    In my defense this is purely for a little class project to give something to write some documentation on so I'm really not too bothered about the efficiency or ace-mazingness of the end result. I just want it to work.
    To the problem at hand.
    I'm trying to write a program that asks the user a question and then outputs their answer to a file, from which a tally of answers can later be made for the purpose of displaying "results".
    My problem is I've been having problems with the input/output of saving the answers given to the program.
    I'm still learning and input/output is probably my weakest subject (other than, y'know, being good at Java). I've had a bash at it in the following code but all it does it overwrite what is in the file with a single answer so no list of results accumulate. I generally don't have an idea what to try for that one so any pointers would be appreciated.
    Also, my second problem is, in trying to gather results by tallying what is contained in the file, I've run across a problem with the charAt() method not being found and I'm not sure why. Isn't that method a part of java.lang?
    Here's the code thus far:
    //libraries
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.text.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.text.*;
    import java.io.*;
    class CaseStudy {
         public static void main(String args[]) {
              GUI maininterface = new GUI();
              maininterface.setupMenu();
              maininterface.display();
    class GUI {
         //for the actionlisteners
         int whatframe = 0;
         //creates mainframe and border content panel
         JFrame mainframe = new JFrame("Survey Client");
         JPanel borderpanel = new JPanel(), bottompanel = new JPanel();
         JButton quizbutton = new JButton("Take the quiz"), tallybutton = new JButton("Show Results"), submitbutton = new JButton("Submit Results"), menubutton = new JButton("Return To Menu");
         QuizQuestions toppanel = new QuizQuestions();
         QuizResults toppanel2 = new QuizResults();
         GUI() {
              //sets border in borderpanel, this spaces the main content in from the sides of the window
              borderpanel.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              //sets up the frame and panels and adds on borders
              mainframe.setDefaultCloseOperation(mainframe.EXIT_ON_CLOSE); // exits java when clicking on close on main frame
              mainframe.getContentPane().add(borderpanel); // adds the panel as a component to the frame, the panel can hold stuffs
              borderpanel.setLayout(new BoxLayout(borderpanel, BoxLayout.PAGE_AXIS));// page_axis means it'll layout vertically
              bottompanel.setLayout(new BoxLayout(bottompanel, BoxLayout.LINE_AXIS));// line_axis means it'll layout horizontally
              //gives button an action
              quizbutton.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        setupQuiz();
              tallybutton.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        if(whatframe == 1) setupResults();
                        else {
                             int rusure = JOptionPane.showConfirmDialog(null, "Are you sure you wish to show results? Any current quiz answers won't be saved.", "Please Choose One", JOptionPane.YES_NO_OPTION);
                             if(rusure == JOptionPane.YES_OPTION) setupResults();
              menubutton.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        setupMenu();
              submitbutton.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        toppanel.doQuiz();
              borderpanel.add(bottompanel);
         public void setupMenu() {
              if(whatframe == 3) {
                   bottompanel.remove(menubutton);
                   borderpanel.remove(toppanel2);
              whatframe = 1;
              //adds components and lays them out
              bottompanel.add(quizbutton);
              bottompanel.add(Box.createRigidArea(new Dimension(0,10)));
              bottompanel.add(tallybutton);
              display();
         public void setupQuiz() {
              bottompanel.remove(quizbutton);
              bottompanel.remove(Box.createRigidArea(new Dimension(0,10)));
              bottompanel.remove(tallybutton);
              whatframe = 2;
              bottompanel.add(submitbutton);
              bottompanel.add(Box.createRigidArea(new Dimension(0,10)));
              bottompanel.add(tallybutton);
              borderpanel.add(toppanel);
              display();
         public void setupResults() {
              if(whatframe == 1) {
                   bottompanel.remove(quizbutton);
                   bottompanel.remove(Box.createRigidArea(new Dimension(0,10)));
                   bottompanel.remove(tallybutton);
              else {
                   bottompanel.remove(submitbutton);
                   bottompanel.remove(Box.createRigidArea(new Dimension(0,10)));
                   bottompanel.remove(tallybutton);
                   borderpanel.remove(toppanel);
              whatframe = 3;
              bottompanel.add(menubutton);
              borderpanel.add(toppanel2);
              display();
         public void display() {
              //sets the size of the frame around it's components and then shows it
              mainframe.pack();
              mainframe.setVisible(true);
              mainframe.validate(); //makes referenced container relayout it's components
    class QuizQuestions extends JPanel {
         LoadingSaving loadsave = new LoadingSaving();
         JPanel popm = new JPanel(), pop1 = new JPanel(), pop2 = new JPanel(), pop3 = new JPanel(), pop4 = new JPanel();
         JFormattedTextField ques = new JFormattedTextField(), op1 = new JFormattedTextField(), op2 = new JFormattedTextField(), op3 = new JFormattedTextField(), op4 = new JFormattedTextField();
         JButton bop1 = new JButton("1"), bop2 = new JButton("2"), bop3 = new JButton("3"), bop4 = new JButton("4");
         char answer;
         QuizQuestions() {
              popm.setLayout(new BoxLayout(popm, BoxLayout.PAGE_AXIS));
              pop1.setLayout(new BoxLayout(pop1, BoxLayout.LINE_AXIS));
              pop2.setLayout(new BoxLayout(pop2, BoxLayout.LINE_AXIS));
              pop3.setLayout(new BoxLayout(pop3, BoxLayout.LINE_AXIS));
              pop4.setLayout(new BoxLayout(pop4, BoxLayout.LINE_AXIS));
              this.add(popm);
              popm.add(ques);
              popm.add(pop1);
              popm.add(pop2);
              popm.add(pop3);
              popm.add(pop4);
              pop1.add(op1);
              pop1.add(bop1);
              pop2.add(op2);
              pop2.add(bop2);
              pop3.add(op3);
              pop3.add(bop3);
              pop4.add(op4);
              pop4.add(bop4);
              //sets up question text fields
              ques.setEditable(false);
              op1.setEditable(false);
              op2.setEditable(false);
              op3.setEditable(false);
              op4.setEditable(false);
              bop1.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        answer = 'a';
              bop2.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        answer = 'b';
              bop3.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        answer = 'c';
              bop4.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        answer = 'd';
              Question1();
         public void doQuiz() {
              loadsave.save(answer);
         public void Question1() {
              ques.setValue("Who's your favourite X-Men character?");
              op1.setValue("Cyclops");
              op2.setValue("Xavier");
              op3.setValue("Wolverine");
              op4.setValue("Rogue");
    class QuizResults extends JPanel {
         LoadingSaving loadsave = new LoadingSaving();
         JPanel popm = new JPanel();
         JFormattedTextField op1 = new JFormattedTextField(), op2 = new JFormattedTextField(), op3 = new JFormattedTextField(), op4 = new JFormattedTextField();
         int[] answerarray = new int[4];
         QuizResults() {
              popm.setLayout(new BoxLayout(popm, BoxLayout.PAGE_AXIS));
              this.add(popm);
              popm.add(op1);
              popm.add(op2);
              popm.add(op3);
              popm.add(op4);
              op1.setEditable(false);
              op2.setEditable(false);
              op3.setEditable(false);
              op4.setEditable(false);
              answerarray = loadsave.load();
              op1.setValue(answerarray[0]);
              op2.setValue(answerarray[1]);
              op3.setValue(answerarray[2]);
              op4.setValue(answerarray[3]);
    class LoadingSaving {
         public void save(char answer) {
              FileReader fr;
              FileWriter fw;
              BufferedReader br;
              String s;
              try {
              //ERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERROR
                   fr = new FileReader("casestudyoutput.txt");
                   fw = new FileWriter("casestudyoutput.txt");
                   br = new BufferedReader(fr);
                   if (br.readLine() == null) s = "x";
                   else s = br.readLine();
                   s = s + answer;
                   fw.write(s);
                   fr.close();
                   fw.close();
              //ERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERROR
              catch(FileNotFoundException exc) {
                   JOptionPane.showMessageDialog(null, "File not found.");
                   return;
              catch(IOException exc) {
                   JOptionPane.showMessageDialog(null, "Something bad happened.");
                   return;
         public int[] load() {
              FileReader fr;
              BufferedReader br;
              int[] answerarray = new int[3];
              String s;
              long length;
              int a = 0, b = 0, c = 0, d = 0;
              answerarray[0] = 0;
              answerarray[1] = 0;
              answerarray[2] = 0;
              answerarray[3] = 0;
              try {
                   fr = new FileReader("casestudyoutput.txt");
                   br = new BufferedReader(fr);
                   if (br.readLine() == null) return answerarray;
                   else s = br.readLine();
                   length = s.length();
                   for(int i = 0; i < length; i++) {
                        char ch = charAt(i); //ERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERROR
                        switch(ch) {
                             case 'a':
                                  a++;
                                  break;
                             case 'b':
                                  b++;
                                  break;
                             case 'c':
                                  c++;
                                  break;
                             case 'd':
                                  d++;
                                  break;
                   answerarray[0] = a;
                   answerarray[1] = b;
                   answerarray[2] = c;
                   answerarray[3] = d;
                   fr.close();
              catch(FileNotFoundException exc) {
                   JOptionPane.showMessageDialog(null, "File not found.");
                   return answerarray;
              catch(IOException exc) {
                   JOptionPane.showMessageDialog(null, "Something bad happened.");
                   return answerarray;
         return answerarray;
    }Any pointers/tips/solutions/angry posts to tell me to stop trying to learn Java would be greatly appreciated.
    Thanks in advance!
    Oh, and in trying to work with it a bit further I realised I'm having a few problems with runtime errors due to exceptions. The first was due to the array being assigned out of bounds (fixed in the above code). But the second reads the following:
    Exception in thread "main" java.lang.NullPointerException
         at Loadingsaving.load(CaseStudy.java:330)
         at QuizResults.(init)(CaseStudy.java.259)
         at GUI.(init)(CaseStudy.java:34)
         at CaseStudy.main(CaseStudy.java:15)Not quite sure what this one means or how to handle it. =\
    Edited by: ThePermster on May 19, 2008 8:08 AM

    A NullPointerException means a method has been called on a null object, or a variable that isn't pointing to any object. Your Exception points to line 330, which is:
    length = s.length();A NPE on that line means that s is null. So let's look at where s is set:
    if (br.readLine() == null) return answerarray;
    else s = br.readLine();s gets it's value from br.readLine(), so that method must be returning null. You have a logical error here. Look at your If-Else. It reads a line, makes sure it isn't null...then it reads another line. Well what if that line is null? You are performing 2 reads here instead of 1.
    Since your If condition returns a value, there's no need for an Else. The code will continue on until it reaches another return. Try this:
    s = br.readLine();
    if (s == null) return answerarray;

  • Firefox keeps crashing now that I have Windows 8. I have updatd my Adobe Flash and am not sure what the problem is. Very frustrating.

    Firefox keeps crashing now that I have Windows 8. I have updatd my Adobe Flash and am not sure what the problem is. Very frustrating.

    Hi may you please ask a new question, sclutterd, it gives us troubleshooting info. Nightly is pretty unstable anyways.
    * https://support.mozilla.org/en-US/questions/new

  • My screen freezes after a few seconds on my iphone 5c and the display fades slightly so you can see faint lines in the background. I'm not sure whether this is easily fixable or a major problem. Have reset the device, but this has worked. Any ideas?

    My screen freezes after a few seconds on my iphone 5c and the display fades slightly so you can see faint lines in the background. I'm not sure whether this is easily fixable or a major problem. Have reset the device, but this has worked. Any ideas?

    To make sure that this is not software related, set it up as new device, explained in this article:
    How to erase your iOS device and then set it up as a new device or restore it from backups

  • I have been getting this message " no sim installed " too many times then my phone goes off , its iphone 4S , its really a problem i cant get calls or anything and im not sure how to take the SIM out then insert it again , what to do ??

    i have been getting this message " no sim installed " too many times then my phone goes off , its iphone 4S , its really a problem i cant get calls or anything and im not sure how to take the SIM out then insert it again , what to do ??

    Use the sim tool that came with your phone or a safety pin and just insert it into the hole at the side of the sim tray and push it in and then pull it out.  It is no more difficult than that and then just close it again.

  • How do I access classes and methods defined in a wsdl file

    I have been provided a wsdl file I need to find out how do I access classes and methods defined in a wsdl file directly instead of doing a wsdl2java...

    Several comments :
    1- is there any reason to have blank chars inserted after the path ? Seems that you already have a problem there. If possible, try to solve the problem at the source
    2- the end of line char is usually CR (Carriage Return, aka ASCII char 13 = $0D = Control-D). But LF (Line Feed = 10 = $0A = control-A) is also used (platform dependent). In LV, you can use the "Concatenate strings" function to add/insert control chars (found in the String Control Palette). However, this will not solve your problem of unwanted added blank chars at the end of your string.
    3- you can use the Trim white space.vi (in the "Additionnal string functions" sub-palette) to remove ALL the spaces in your string
    4- you can build your own "end space remover" function. :
    reverse the string, wire to a "Match pattern" function, use " +" (space + "+") to search for any number of spaces, reverse again the "after substring".
    5- there is no point 5 :-)
    You may find interesting description of ASCII chars here
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • Have been a Verizon customer since I got my first cell phone in my 30's - I am 50 now! A year ago, I stupidly opted to get a new phone on the EDGE program because I was trying my first Samsung device and was not sure I would like it having been an IPhone

    have been a Verizon customer since I got my first cell phone in my 30's - I am 50 now! A year ago, I stupidly opted to get a new phone on the EDGE program because I was trying my first Samsung device and was not sure I would like it having been an IPhone user for years.I was right! Or so I thought.... The Note 3 has been horrible. I am on my second phone(replaced it under warranty) and it still freezes, shuts off on its own, and will not come back on for long periods of time. Having had enough, I decided to EDGE Up to another device. On March 16th I tried to edge up my device online but was unable to. I immediately called to figure out what the problem was. Back in October I had a mix up in my billing where I had set up a payment. It was not done properly by customer service and as a result my line was cut off. I called the EXACT day it went off, filed a complaint about the lack of follow through for my arranged payment, and thought I had it straightened out as the payment was made that same day. That incident, although it was a Verizon error, caused my Edge Contract to be "hotlined". I spent an hour on the phone on March 16th clearing the whole mess up. When the conversation ended, the Verizon representative admitted it was a Verizon error, documented everything, and then told me she was filing a release for the hotline hold that would take a couple of days. Her name was Linda and I stupidly trusted what she said.
    The days passed as I prepared to have a major foot surgery and to get my classroom straight before I would be out recovering for 3 weeks. All the time, my Samsung continued to glitch out like it has since I got it! While sitting on the couch recovering, I decided to deal with the phone issue again and EDGE UP. I figured 10 days latter, Linda would have taken care of the issue. Unfortunately, I faced the same problem and was told it was not eligible to edge up at this time. BACK on the phone again, 2 supervisors, 3 customer service reps. ( JOE from New York being the rudest customer service rep. I have EVER worked with) and 4 frustrating HOURS latter, Jason, the equally rude supervisor from Rochester, New York, informed me that Linda gave me BAD information, there was NOTHING he could do, and I am NOT eligible until April 14th!!!!! The WORST experience I have EVER had with a company. They were completely inept, rude, and not concerned about my time, my frustration, or the problems I was facing with their product in the LEAST. I have 4 LINES on Verizon that I am going to talk to Sprint about buying out. It was a horrible experience, and I can NOT believe I have no recourse or anyone to talk to....

    Edge has very clear restrictions, one being that you must have 6 months of clean payment history which you don't. Either wait until April 14, or good luck at Sprint.
    I am unsure how it can be determined the payment mix up was the fault of CS, but regardless, the mix up was done. There can be any number of reasons why a payment could be missed without any fault on your part, however you are still the responsible party for the account and must live with the repercussions.

  • When I click on an email address on a web page, a page no longer opens in my email program. Not sure if this is a problem due to Firefox or due to recent installation of Office 2010. I use a PC with Vista.

    When I click on an email address embedded in a web page, a page would open in my email program with this address in the "To" line. I recently installed Microsoft Office 2010 and now when I click on an email address nothing happens. I am not sure if this is due to Office 2010 or a Firefox problem. I use a PC with Vista.

    https://support.mozilla.org/en-US/kb/change-program-used-open-email-links

  • Ever since i plugged my iphone into the computer, all of my music has been messed up. The songs don't have the right album cover i guess they all just got mixed up somehow. i dont know but its annoying and im not sure how to fix it.

    Ever since i plugged my iphone into the computer, all of my music has been messed up. The songs don't have the right album cover i guess they all just got mixed up somehow. i dont know but its annoying and im not sure how to fix it.

    If not this:
    iOS: Wi-Fi or Bluetooth settings grayed out or dim
    If not successful, an appointment at the Genius Bar of an Apple store is usually in order.
    Apple Retail Store - Genius Bar
    Then
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          

  • I'll ask this again.  I'm running Yosemite, LR 4.4 everything was running fine and I'm not sure if this is connected but when I loaded the last security update from Apple I started getting the "no content" box when I tried to publish to LR (Facebook OK),

    I'll ask this again.  I'm running Yosemite, LR 4.4 everything was running fine and I'm not sure if this is connected but when I loaded the last security update from Apple I started getting the "no content" box when I tried to publish to Flickr (Facebook OK), now I can't get it to authorize, I loaded 3rd party JR plug in and still get can't authorize.  Can anybody help?  Basically LR is useless, it has been nothing but problems.

    It would probably be better to continue your previous thread on the same question than to start a new one.

  • Even after adding the country code i can't seem to make any international calls.im not sure if this is relevant but apparently, the option dial assist is not to be found on my setting.pls direct me...thank you.and my phone moddle is 5s(A1457)gold

    even after adding the country code i can't seem to make any international calls.im not sure if this is relevant but apparently, the option dial assist is not to be found on my setting.pls direct me...thank you.and my phone moddle is 5s(A1457)gold  eddition.

    Hi, Thilina66.  You say you have entered the country code but still cannot make international calls.  I suppose you are adding the international access code before the country code.  This internaltional access code (011 in the US, 00 in Europe, etc.) can be substituted by adding a + sign before the country code.
    For example, to call a number in the UK from the US you have to dial:
    011 44 7540 267898
    or
    +44 7540 267898
    To call a number in the US from the UK you have to dial:
    00 1 212 456 1470
    or
    +1 212 456 1470
    Please check that the contact number in your address book is correctly written if you are dialing directly from the address book or that you enter the correct numbers in the keyboard if you are dialing from the keyboard.

  • Problems accessing my compareTo method

    Could you any one help me on this please.
    I have 3 classes :
    1- "Test class" that creates the object (works fine) and redefines compareTo method
    2. "XListeChainee" that manage my linked list :
    - insert a new node (problems) in order
    3. "Test" which is the classe containing the main method. here is the code
    class Test {
    public static void test(){
    XListeChainee liste = new XListeChainee();
    liste.insererOrdonne(new TestClass("A"));
    liste.insererOrdonne(new TestClass("B"));
    liste.insererOrdonne(new TestClass("C"));
    liste.insererOrdonne(new TestClass("E"));
    liste.insererOrdonne(new TestClass("D"));
    // ------- here is the main method
    public static void main(String[] args){//main
    Test obj = new Test();/
    obj.test();
    }//end main
    here is the class TestClass with the compareTo method
    class TestClass implements Comparable{
    String data;
    TestClass(String data)
    this.data = data;
    }//end constructor
    public String toString(){
    return (data);
    public int compareTo(Object o) {
    TestClass n = (TestClass)o;
    int compData = data.compareTo(n.data);
    return compData ;
    }//end TestClass
    and this is my XListeChainee class (some of the code)
    public class XListeChainee
    private Noeud premierNoeud; //reference to first node
    private Noeud dernierNoeud; //reference to last node
    boolean estVide(){
    return premierNoeud == null;
    // ------ Insert an object: in order
    void insererOrdonne(Object element) {        
    // Creates a new node with the new element
    Noeud unNoeud;
    unNoeud = new Noeud();
    unNoeud.majElement(element) ;
    if ( premierNoeud == null ) { // if first node = null
    premierNoeud = unNoeud; // new node become first
    //------------------------- problem------------------------------
    //---- Compare the element in the first node with the element : Doesn't work
    // ---- System says that cannot resolve symbol - compareTo
    // This line says: if (firstNode.element.compareTo(element)>=0)
    else if ( premierNoeud.obtenirElement().compareTo(element) >= 0 ) {
    // Le nouvel element est < que le 1er element, alors il est inser� a la tete
    unNoeud.majSuivant(premierNoeud);
    premierNoeud = unNoeud;
    else {
    // Chercher la position du nouvel element dans la liste
    Noeud parcourir; // un noeud pour parcourir la liste
    Noeud prec; //un noeud toujour avant celui qui parcours la liste
    parcourir = premierNoeud.obtenirSuivant();
    prec = premierNoeud;
    while (parcourir != null && parcourir.obtenirElement().compareTo(element) < 0) {
    previous = parcourir;
    parcours = parcourir.obtenirSuivant();
    unNoeud.majSuivant(parcourir); // Insert newNode after previous.
    prec.majSuivant(unNoeud);
    Could you help me doing this please? I' sorry about some variable and method's names but I'm writing a program in french

    [snip]
    public int compareTo(Object o) {
    TestClass n = (TestClass)o;
    int compData = data.compareTo(n.data);
    return compData ;
    }//end TestClass[snip]
    : if (firstNode.element.compareTo(element)>=0)
    else if (
    e if (
    premierNoeud.obtenirElement().compareTo(element) >=0
    ) {What's up with the >=0 business in your method call?
    Based on what your method expects (an Object) I
    I don't know what you're trying to accomplish there?
    Also, please use code tags.Nevermind, after staring at it I can see the closing paranthesis now.

Maybe you are looking for

  • IPhone 4 iOS 5.0.1 stops receiving calls and text messages

    Hi all, My iPhone 4 (iOS 5.0.1) suddenly stopped receiving calls and text messages. However, I'm still able to send them. The workaround for fixing this issue is to make an hard reset to the iPhone. This only occured with 5.0.1 version. It's very ann

  • Addint new field to the standard sapscript form.

    FOR SALES INVOICE DOCUMENT FORM PRINTING TRANSACTION CODE: VF01 OUTPUT TYPE : FJCI PROGRAM NAME: RVADAUS1 SAPSCRIPT FORM NAME: SD_EXPORT_FJCI ENTRY ROUTINE: ENTRY_FJCI. STRUCTURE USED FOR THIS OUTPUT TYPE = V55EFJCI THE QUERY IS AS FOLLOWS: I WANT TO

  • How can I make 16:9 the default import  format in PE7?

    Clips recorded in 16:9 (PAL) format on my JVC Everio hard drive camcorder show up in 4:3 format when imported into Premiere Elements 7. This means all the clips are distorted vertically. I have discovered that I can convert them to 16:9 by displaying

  • Long Parameter In Discoverer?

    Hi All , Is it possible to create long parameter in discoverer Plus. Regards mani

  • Share media and projects?

    Hi, I have a question regarding FCP 6, Xsan/Xserver & project sharing. Is it possible? I've read some things that say people used to be able to with FCP 5 but not 6. Permissions issue and all that. I come from several years of working on avid and sha