Error won't let me access another class(has got me tearing my hair off)

Alright peeps, so basically i have 2 buttons in the mainfraime class. The first button leads to the contestant's page and the second to the voters page. The first button works and directs the user to the PasswordDemo page, but to the hell of me i cant figure out why it refuses to recognize the "Profile" class that its supposed to go to when the user clicks the second button. It keeps on telling me that "The method Profile() is undefined for the type Mainframe". Please help.
Mainframe class:
//The applications first or the main frame
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Mainframe extends JFrame {
        private JButton myFirstButton;
        private JButton mySecondButton;
        private javax.swing.JButton jButton1;
        private javax.swing.JButton jButton2;
        private javax.swing.JLabel jLabel1;
        private javax.swing.JLabel jLabel2;
        private javax.swing.JLabel jLabel3;
        // Constructor for a new frame
        public Mainframe() {
                super("Welcome Page");
                myFirstButton = new JButton("Contestant");
                myFirstButton.setFont(new Font( "Arial", Font.BOLD, 18));
                myFirstButton.setBackground(Color.red);
                mySecondButton = new JButton("Voter");
                mySecondButton.setFont(new Font( "Arial", Font.BOLD, 18));
                mySecondButton.setBackground(Color.ORANGE);
                Container c = getContentPane();
                FlowLayout fl = new FlowLayout(FlowLayout.LEFT);
                c.setLayout(fl);
                c.add (myFirstButton);
                c.add (mySecondButton);
                ButtonHandler handler = new ButtonHandler();    //creation of a new Object
                myFirstButton.addActionListener(handler);          // Attach/register handler to myFirstButton
                mySecondButton.addActionListener(handler);        //Attach/register handler to mySecondButton
                setSize(400, 300);
                show();
        public static void main(String [] args) {
                // Make frame
                Mainframe f = new Mainframe();
                f.addWindowListener(
                        new WindowAdapter() {
                                public void windowClosing(WindowEvent e) {
                                        // This closes the window and terminates the
                                        // Java Virtual Machine in the event that the
                                        // Frame is closed by clicking on X.
                                        System.out.println("Exit via windowClosing.");
                                        System.exit(0);
        } // end of main
        // inner class for button event handling
        private class ButtonHandler implements ActionListener {
                public void actionPerformed(ActionEvent e) {
                        if (e.getSource() == myFirstButton) {
                             PasswordDemo inputForm = new PasswordDemo();
                                //inputForm.setVisible(true);
                                try
                                PasswordDemo.createAndShowGUI();
                                inputForm.setVisible(false);
                                catch(Exception d)
                               // new PasswordDemo();
                        if (e.getSource() == mySecondButton) {
                       //     Profile p = Profile();
                       //     p.setVisible(true);
        public void actionPerformed (ActionEvent e)
            String cmd = e.getActionCommand();
            if (mySecondButton.equals(cmd)) {
                 boolean success=true;
                 if(success)
                 Profile p = Profile();
                   p.setVisible(true);
      //  private void mySecondButtonActionPerformed(java.awt.event.ActionEvent evt)
     //        Profile p = Profile();
     //       p.setVisible(true);
} // end of outer class
}Profile class:
import java.awt.event.ActionListener;
import java.sql.*;
public class Profile extends javax.swing.JFrame {
    public Profile() {
        initComponents();
    @SuppressWarnings("unchecked")
    private void initComponents() {
        titleLabel = new javax.swing.JLabel();
        nameAccess = new javax.swing.JLabel();
        ageAccess = new javax.swing.JLabel();
        heightAccess = new javax.swing.JLabel();
        weightAccess = new javax.swing.JLabel();
        lastNameAccess = new javax.swing.JLabel();
        descriptionAccess = new javax.swing.JLabel();
        nameLabel = new javax.swing.JLabel();
        lastNameLabel = new javax.swing.JLabel();
        ageLabel = new javax.swing.JLabel();
        heightLabel = new javax.swing.JLabel();
        weightLabel = new javax.swing.JLabel();
        descriptionLabel = new javax.swing.JLabel();
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        titleLabel.setFont(new java.awt.Font("Gungsuh", 1, 18)); // NOI18N
        titleLabel.setText("\"User\"'s Profile");
        nameAccess.setText("Name: ");
        nameLabel.setText("");
        lastNameAccess.setText("Last Name: ");
        lastNameLabel.setText("");
        ageAccess.setText("Age: ");
        ageLabel.setText("");
        heightAccess.setText("Height: ");
        heightLabel.setText("");
        weightAccess.setText("Weight: ");
        weightLabel.setText("");
        descriptionAccess.setText("Description: ");
        descriptionLabel.setText("");
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(titleLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 246, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(nameAccess)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(nameLabel))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(lastNameAccess)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lastNameLabel))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(ageAccess)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(ageLabel))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(heightAccess)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(heightLabel))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(weightAccess)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(weightLabel))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(descriptionAccess)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(descriptionLabel)))
                .addContainerGap(151, Short.MAX_VALUE))
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(titleLabel)
                .addGap(13, 13, 13)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(nameAccess)
                    .addComponent(nameLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lastNameAccess)
                    .addComponent(lastNameLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(ageAccess)
                    .addComponent(ageLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(heightAccess)
                    .addComponent(heightLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(weightAccess)
                    .addComponent(weightLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(descriptionAccess)
                    .addComponent(descriptionLabel))
                .addContainerGap(139, Short.MAX_VALUE))
        pack();
    }// </editor-fold>
     * @param args the command line arguments
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Profile().setVisible(true);
    // Variables declaration - do not modify
    private javax.swing.JLabel ageAccess;
    private javax.swing.JLabel ageLabel;
    private javax.swing.JLabel descriptionAccess;
    private javax.swing.JLabel descriptionLabel;
    private javax.swing.JLabel heightAccess;
    private javax.swing.JLabel heightLabel;
    private javax.swing.JLabel lastNameAccess;
    private javax.swing.JLabel lastNameLabel;
    private javax.swing.JLabel nameAccess;
    private javax.swing.JLabel nameLabel;
    private javax.swing.JLabel titleLabel;
    private javax.swing.JLabel weightAccess;
    private javax.swing.JLabel weightLabel;
    // End of variables declaration
}PasswordDemo class:
import javax.swing.*;
import java.sql.*;
import java.awt.*;
import java.awt.event.*;
import java.util.Arrays;
import java.net.*;
import java.io.*;
import java.util.Scanner;
public class PasswordDemo extends JPanel
                          implements ActionListener  {
    private static String OK = "ok";
    private static String HELP = "help";
    private static String Register = "Register";
    private JFrame controllingFrame; //needed for dialogs
    private JTextField username;
    private JPasswordField passreg;
    private JTextField usernamefield;
    private JPasswordField passwordField;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private JTextField name;
    private JTextField age;
    private JTextField height;
    private JTextField weight;
private javax.swing.JPanel jPanel1;
    private void gothere() {
                  JFrame f = new JFrame("This is a test");
                  f.setSize(400, 300);
                  Container content = f.getContentPane();
                  content.setBackground(Color.white);
                  content.setLayout(new FlowLayout());
                 // content.add(new JButton("Button 1"));
                  //content.add(new JButton("Button 2"));
         name = new JTextField("Please put your name here", 20);
          name.setFont(new Font("Serif", Font.PLAIN, 14));
          content.add(name);
          age = new JTextField("Please put your age here", 20);
          age.setFont(new Font("Serif", Font.PLAIN, 14));
          content.add(age);
          height = new JTextField("Please indicate your height here", 20);
          height.setFont(new Font("Serif", Font.PLAIN, 14));
          content.add(height);
          weight = new JTextField("Please indicate your weight here", 20);
          weight.setFont(new Font("Serif", Font.PLAIN, 14));
          content.add(weight);
          content.add(new JButton("Submit"));
           f.setVisible(true);
     public PasswordDemo(JFrame f) throws Exception {
        //Use the default FlowLayout.
        controllingFrame = f;
        //Create everything.
        usernamefield = new JTextField(10);
        usernamefield.setActionCommand(OK);
        usernamefield.addActionListener(this);
        passwordField = new JPasswordField(10);
        passwordField.setActionCommand(OK);
        passwordField.addActionListener(this);
        passreg = new JPasswordField(10);
        passreg.setActionCommand(Register);
        passreg.addActionListener(this);
        username = new JTextField("This is a sentence", 20);
        username.setActionCommand(Register);
        username.addActionListener(this);
        JLabel reg = new JLabel("If you are a new contestant please register: \n");
        JLabel user = new JLabel("Username: \n");
        user.setLabelFor(username);
        JLabel pass = new JLabel("Password: \n");
        user.setLabelFor(passreg);
        JLabel label = new JLabel("Enter your username and password to log in: ");
        label.setLabelFor(usernamefield);
        label.setLabelFor(passwordField);
        JComponent buttonPane = createButtonPanel();
        //Lay out everything.
        JPanel textPane = new JPanel(new FlowLayout(FlowLayout.TRAILING));
        textPane.add(reg);
        textPane.add(user);
        textPane.add(pass);
        textPane.add(username);
        textPane.add(passreg);
        textPane.add(label);
        textPane.add(usernamefield);
        textPane.add(passwordField);
        add(textPane);
        add(buttonPane);
    public PasswordDemo() {
          // TODO Auto-generated constructor stub
     protected JComponent createButtonPanel() {
        JPanel p = new JPanel(new GridLayout(0,1));
        JButton okButton = new JButton("OK");
        JButton helpButton = new JButton("Help");
        JButton regButton = new JButton("Register");
        okButton.setActionCommand(OK);
        helpButton.setActionCommand(HELP);
        regButton.setActionCommand(Register);
        okButton.addActionListener(this);
        helpButton.addActionListener(this);
        regButton.addActionListener(this);
        p.add(okButton);
        p.add(helpButton);
        p.add(regButton);
        return p;
    public void actionPerformed (ActionEvent e)
        String cmd = e.getActionCommand();
        if (OK.equals(cmd)) { //Process the password.  
            boolean success=true;                        //Sign In
             String Username="";
             String Password="";
             Username = this.usernamefield.getText();
             Password = this.passwordField.getText();
             try
                 success=check2(Username,Password);
             catch(Exception d)
                  System.out.println("Got out");
             if(success)
             JOptionPane.showMessageDialog(controllingFrame, "Sign in Successful");
             Form F = new Form(Username);
             F.setVisible(true);
             else
             JOptionPane.showMessageDialog(controllingFrame, "Sign in was unsuccessful");     
        else if(HELP.equals(cmd)) { //The user has asked for help.
            JOptionPane.showMessageDialog(controllingFrame,
                "You can get the password by searching this example's\n"
              + "source code for the string \"correctPassword\".\n"
              + "Or look at the section How to Use Password Fields in\n"
              + "the components section of The Java Tutorial.");
        else if(Register.equals(cmd)) {  //*****************************************************
             boolean success=true;
             String Username="";
             String Password="";
             Username = this.username.getText();
             Password = this.passreg.getText();
             try
                  success=check(Username,Password);
             catch(Exception d)
                  System.out.println("Something bad happened");
             if(success)
             JOptionPane.showMessageDialog(controllingFrame, "Registration successful");
             else
             JOptionPane.showMessageDialog(controllingFrame, "Registration was unsuccessful");
    //Must be called from the event dispatch thread.
    protected void resetFocus() {
        passwordField.requestFocusInWindow();
    static void createAndShowGUI() throws Exception {
        //Create and set up the window.
        JFrame frame = new JFrame("Registration Page");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        //Create and set up the content pane.
        final PasswordDemo newContentPane = new PasswordDemo(frame);
        newContentPane.setOpaque(true); //content panes must be opaque
        frame.setContentPane(newContentPane);
        //Make sure the focus goes to the right component
        //whenever the frame is initially given the focus.
        frame.addWindowListener(new WindowAdapter() {
            public void windowActivated(WindowEvent e) {
                newContentPane.resetFocus();
        //Display the window.
        frame.pack();
        frame.setVisible(true);
    public static void main(String args[]) {
        //Schedule a job for the event dispatch thread:
        //creating and showing this application's GUI.
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                //Turn off metal's use of bold fonts
          UIManager.put("swing.boldMetal", Boolean.FALSE);
          try{
          createAndShowGUI();
            catch(Exception e)
    public void sendUserPass(String user,String pass)throws Exception
         //Send request
         Class.forName("com.mysql.jdbc.Driver");
          Connection con = DriverManager.getConnection("jdbc:mySql://localhost:3306/Contest","root","");
          System.out.println("connected :D:D:D:D");
          PreparedStatement state = con.prepareStatement("Insert Into Contestant (USERNAME,PASSWORD) values ('"+user+"','"+pass+"')");
          state.executeUpdate();
          /*while(Result.next())
               System.out.println(Result.getString(1)+"\t"+Result.getString(2));
          //server should reply by updating database
    public boolean check(String user,String pass)throws Exception
         //Send request
         Socket Sock = new Socket ("LocalHost",5000);
         DataOutputStream toServer = new DataOutputStream(Sock.getOutputStream());
         BufferedReader buff = new BufferedReader(new InputStreamReader(Sock.getInputStream()));
         String sentence="";
         toServer.writeBytes("1\n");
         sentence=buff.readLine();
         System.out.println(sentence+"\n");
         toServer.writeBytes(user+" "+pass+"\n");
         String answer="";
         answer = buff.readLine();
         if(answer.equals("No"))
              return false;
         return true;
         /*Class.forName("com.mysql.jdbc.Driver");
          Connection con = DriverManager.getConnection("jdbc:mySql://localhost:3306/Contest","root","");
          System.out.println("connected :D:D:D:D");
          PreparedStatement state = con.prepareStatement("Select Username From Contestant where '"+user+"'= username");
          ResultSet Result = state.executeQuery();
          if(!Result.next())
          return true;*/
          //server should reply by updating database
    public boolean check2(String user,String pass)throws Exception
         Socket Sock = new Socket("localhost",5000);
         DataOutputStream toServer = new DataOutputStream (Sock.getOutputStream());
         BufferedReader buff = new BufferedReader(new InputStreamReader(Sock.getInputStream()));
         toServer.writeBytes("2\n");
         System.out.println("Well I sent the message");
         String sentence = buff.readLine();
         toServer.writeBytes(user+" "+pass+"\n");
         System.out.println(sentence);
         sentence=buff.readLine();
         System.out.println(sentence+"\n");
         if(sentence.equals("No"))
              return false;
         return true;
}

Profile p = Profile();That says "call a method name 'Profile' that's defined in the current class."
Perhaps what you meant was:
Profile p = new Profile();which says "create a new instance of the Profile class, and invoke its no-arg constructor."

Similar Messages

  • Hello everybody,i've forgot my apple password and i wanted to reset it to a new one but i also forgot the security question and the alternative email does not work and i am really need to log in to my apple i d because my iPhone 4g won't  let me access it

    Hello everybody,i've forgot my apple password and i wanted to reset it to a new one but i also forgot the security question and the alternative email does not work and i am really need to log in to my apple i d because my iPhone 4g won't  let me access it so anyone can help me with it or can i put another apple id to it without putting the first password?THANKS FOR YOUR HELP.

    Then call AppleCare and talk to someone in account security.

  • How can I access another class in a MembershipRule's Expression

    Hello,
    I want to create an InstanceGroup using Module Microsoft.SystemCenter.GroupPopulator.
    I need to collect all Logical Disks which contain an MS SQL DB Log File.
    I would start as follows:
    <DataSource ID="DS" TypeID="SC!Microsoft.SystemCenter.GroupPopulator">
      <RuleId>$MPElement$</RuleId>
      <GroupInstanceId>$Target/Id$</GroupInstanceId>
      <MembershipRules>
        <MembershipRule>
          <MonitoringClass>$MPElement[Name="Windows!Microsoft.Windows.LogicalDisk"]$</MonitoringClass>
          <RelationshipClass>$MPElement[Name="MSIL!Microsoft.SystemCenter.InstanceGroupContainsEntities"]$</RelationshipClass>     
    <Expression>
            <And>
      <!--
       First Expression
      -->
              <Expression>
                <SimpleExpression>
                  <ValueExpression>
                    <Property>$MPElement[Name="Windows!Microsoft.Windows.LogicalDevice"]/Name$</Property>
                  </ValueExpression>
                  <Operator>Equal</Operator>
                  <ValueExpression>
      <!--
        How can I access another class's properties ? 
      -->
                    <GenericProperty>$MPElement[Name="SQL!Microsoft.SQLServer.2008.DBLogFile"]/Drive$</GenericProperty>
                  </ValueExpression>
                </SimpleExpression>
              </Expression>
              <Expression>
                <SimpleExpression>
                  <ValueExpression>
                    <HostProperty>
                      <MonitoringClass>$MPElement[Name="Windows!Microsoft.Windows.Computer"]</MonitoringClass>
                      <Property>PrincipalName</Property>
                    </HostProperty>
                  </ValueExpression>
                  <Operator>Equal</Operator>
                  <ValueExpression>
                    <GenericProperty>$MPElement[Name="SQL!Microsoft.SQLServer.2008.DBLogFile"]/Drive$</GenericProperty>
                  </ValueExpression>
                </SimpleExpression>
              </Expression>
            </And>
          </Expression>
        </MembershipRule>
      </MembershipRules>
    </DataSource>
    In the first expression you "see" my question:
    I want to compare the LogicalDisk's Name Property with the DB Log File's Drive property.
    But how can I access the DB Log File's Drive property in this MembershipRule ?
    Furthermore LogicalDisk and DB Log File must be hosted on the same Windows Computer.
    Would be great if somebody could help.
    Thanks
    Sebastian

    Hi Niki,
    thanks for the idea, but that will not work. $Target/Id$ refers always to the group to be discovered.
    On last week end I was given following idea, hope it will work:
    Step 1
    Collect all the DB SQL Logfile Objects and write computername (PrincipalName?) and Driveletter into a textfile, line by line. Shouldn't be a problem, PowerShell is your friend.
    Step 2
    Read the file from Step 1, build discovery data for each disk drive as object of class "Logical Disk (Server)",
    and then discover the containment-relationships from those Logical Drive(Server) Objects to the InstanceGroup.
    Perhaps I must do it for the OS-Version related Disks, because I need the target classes  of the Logical Disk Freespace monitors. Some more work. "Risks": I donot know the discovery algorithm for the Logical Disk(Server) Objects, but a "deep
    dive" into the MPs should help.
    Thanks to all, who have read.
    I will inform you about progress and success
    sebastian

  • I accidentally updated iPhoto on my (now) external hard drive and now it won't let me access any of my photos. What can I do?

    I accidentally updated iPhoto on my (now) external hard drive and now it won't let me access any of my photos. What can I do?

    So, you have two versions of iphoto? One from the old machine and one from the new?
    If so, forget about opening with the older version of iPhoto.
    For the newer version:
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  

  • Access another class function

    Hey,
    I am trying to access another class function. I have 2 Classes and my main menu features are in my Main Class and I want to call that function from my Level Class
    What is a good idea to approach this, some how I need to import it in a way but I don't know how I could do that.
    Thanks,
    McbainGames11

    Fixed it myself
    Answer:
                        public static var instance:Main;
                        public function Main()
                                  instance = this;
    And I called a function from Main Class in my Level Class using:
    Main.instance.function();

  • Accessing another class

    A have my "main" class (a JPanel) and the thing I want to do is simply to access another class' data and methods through my main class (That class also extending JPanel and is added together with the main class to a JFrame in a third class). The thing is i have this JTextPane that i wished to edit from my main class. Like:
    //Main class
    public class Main extends JPanel {
         private class Listener implements KeyListener{
              public void keyPressed(KeyEvent ke) {
                   if (ke.getKeyCode() == foo){
                        //Do like:
                        Log.appendLogText(bar);
    }//My JTextPane handling class
    public class Log extends JPanel {
         private JTextPane logText;
         public Log(){
              logText = new JTextPane();
              logText.setContentType("text/html");
         public void appendLogText(String str){
              String text = str;
              Document textDoc = tempLogText.getDocument();
              int end = textDoc.getLength();
              try {
                   textDoc.insertString(end, text, logText.getLogicalStyle());
                   logText.setText(textDoc.getText(0, textDoc.getLength()));
              } catch (BadLocationException e) {}
    }This is just scraps of code, if there is a better way to do it please tell me, what i want is (again) simply one JPanel displaying something where you can edit the JTextPane in another JPanel (and class).

    public class Main extends JPanel {
        private Log log;
        public void setLog(Log log) {
            this.log = log;
        log.appendLogText(bar);
    }It's up to the builder code that instantiates Main and Log classes to call:
    tehMain.setLog(tehLog);For an extra schmear of abstraction, you can do this variant:
    public interface ILog {
        void appendLogText(String s);
    public class Main extends JPanel {
        private ILog log;
        public void setLog(ILog log) {
            this.log = log;
        log.appendLogText(bar);
    public class Log extends JPanel implements ILog {...}That way, you can pass Main other ILogs -- for testing Main, for example.

  • After putting my iPad onto airplane mode it won't let me access apps without connecting to iTunes but it won't let me connect to iTunes how can I resolve this?

    After putting my iPad onto airplane mode it won't let me access apps without connecting to iTunes but it won't let me connect to iTunes how can I resolve this?

    Try "Pacifist"!
    Pacifist is an application for Mac OS X that opens up .pkg installer packages, .dmg disk images, .zip, .tar, .tar.gz, .tar.bz2, .pax, and .xar archives, and more, and lets you install individual files out of them. This is useful if you need to install just one file out of a package instead of the entire package

  • How can I open a new page (using "Pages") when I already have another page open?  It just keeps reverting to the page I have opened already and won't let me open another one?

    How can I open a new page (using "Pages") when I already have another page open?  It just keeps reverting to the page I have opened already and won't let me open another one?

    To make a new document, go to File > New From Template chooser and choose the type of document you wish to create.
    To add a new page to an existing document go to Insert > Sections > Blank.

  • Router won't let me access website

    Hi, i have a Lynksys wireless router model number WRT54HG and im haveing this problem where it won't let me access this website tera.enmasse.com or the game they host "Tera: Rising" throught its launcher. I've bypassed the router and connected stright to the modem and the website loads. I've tried to troubleshoot the problem by restarting the router, turning it on and off, i've even upgraded its firmwere but nothing works and i've come here to see if anyone can help me. One more thing, for some reason i have access to the tera support page support.enmasse.com but nothing else.
    Solved!
    Go to Solution.

    You can ask for the port numbers that you can trigger on the router from the website’s administrator. With the port or ports being triggered, the router will send a request to access the server for the game Tera: Rising. Refer to the links below on how to enable port triggering on the router once you obtained the port numbers. Also, disable the Filter Anonymous Internet Requests on the router by un-checking the box which you can find under the Security of tab of the router’s user interface.
    Setting up port range triggering on your Linksys Wi-Fi router
    http://kb.linksys.com/Linksys/ukp.aspx?vw=1&docid=82e45c13dbcb4ff189c9f3a455951f0b_21486.xml&pid=80&...
    Difference between Port Forwarding and Port Triggering
    http://kb.linksys.com/Linksys/ukp.aspx?pid=80&vw=1&articleid=3706

  • My Apple TV won't let me access Netflix, but all other internet choices work fine. It keeps saying Accessing Netflix and never connects. Any suggestions?

    My Apple TV won't let me access Netflix, but all other internet connections work.  It keeps saying :"accessing netflix" and won't connect Any ideas as to the problem?
    Thanks

    are you in a country where netflix is supported ?

  • My iPhone was fine earlier today, but in settings....it won't let me access iCloud, FaceTime, mail settings.....what the heck? I've tried everything. My iPad is fine and iCloud etc. works

    My iPhone was fine earlier today, but in settings....it won't let me access iCloud, FaceTime, mail settings.....what the heck? I've tried everything. My iPad is fine and iCloud etc. works!

    Turn OFF the restriction to allow changes to accounts you've set in Settings > General > Restrictions.

  • I bought a new computer, and iTunes doesn't have my music or anything on there. I want to get everything on my iPhone to my new computer/itunes. But no matter what i do, it won't let me. My desktop has everything, and I want all that on my laptop..

    I bought a new computer, and downloaded  iTunes, therefore  the new itunes doesn't have my music or anything on there. I want to get everything on my iPhone to my new computer/itunes. But no matter what I do, it won't let me. My desktop has everything that my phone has on it, I just want it all moved to my laptop. Does that make sense? I could really use some help. I don't live with this desktop anymore so I need to be able to use my laptops itunes. Please help me. Thanks in advance!

    These are two possible approaches that will normally work to move an existing library to a new computer.
    Method 1
    Backup the library with this User Tip.
    Deauthorize the old computer if you no longer want to access protected content on it.
    Restore the backup to your new computer using the same tool used to back it up.
    Keep your backup up-to-date in future.
    Method 2
    Connect the two computers to the same network. Share your <User's Music> folder from the old computer and copy the entire iTunes library folder into the <User's Music> folder on the new one. Again, deauthorize the old computer if no longer required.
    Both methods should give the new computer a working clone of the library that was on the old one. As far as iTunes is concerned this is still the "home" library for your devices so you shouldn't have any issues with iTunes wanting to erase and reload.
    I'd recommend method 1 since it establishes an ongoing backup for your library.
    Note if you have iOS devices and haven't moved your contacts and calendar items across then you should create one dummy entry of each in your new profile and iTunes should  merge the existing data from the device.
    If your media folder has been split out from the main iTunes folder you may need to do some preparatory work to make it easier to move. See make a split library portable.
    Should you be in the unfortunate position where you are no longer able to access your original library or a backup then then seeRecover your iTunes library from your iPod or iOS device for advice on how to set up your devices with a new library with the maximum preservation of data.
    tt2

  • Access Another Class' Property Value That is Defined in the faces-config?

    I have a private property "dataTransferType" with public getter and setter in the DataFile class. The initial value of the "dataTransferType" is defined in the faces-config.xml file. I want to get the "initial value" of the "dataTransferType" in another class and the compiler does not like the way I access this property.
    Here is the snippet of the DataFile class, which shows the declaration and the getter and setter for the property:
    public class DataFile implements java.io.Serializable
         private String dataTransferType;
         public DataFile(){}
        public DataFile( String aDataTransferType )
            this.dataTransferType = aDataTransferType;
         public String getDataTransferType()
              return dataTransferType;
         public void setDataTransferType( String dataTransferType )
              this.dataTransferType = dataTransferType;
    }Here is the way that the initial value of the "dataTransferPropery" is set in the faces-config.xml file:
    <managed-bean>
      <managed-bean-name>dataFile</managed-bean-name>
      <managed-bean-class>propertyBeans.DataFile</managed-bean-class>
      <managed-bean-scope>session</managed-bean-scope>
      <managed-property>
       <property-name>dataTransferType</property-name>
       <property-class>java.lang.String</property-class>
       <value>importFile</value>
      </managed-property>
    </managed-bean>Now, in another class FileManagementBean, I first instantiate the DataFile class
    private DataFile datafile;and then in the constructor of the FileManagementBean I tried to access the initial value of the property "dataTransferType":
    this.recordItems = this.getRecordsList( datafile.dataTransferType );The compiler did not like it at all.
    But, if I arbitrary introduced a String in the FileManagementBean:
    String defaultSelectedDataTransferType = "importFile";
    this.recordItems = this.getRecordsList( defaultSelectedDataTransferType );My code worked as I had expected without any problem.

    Thanks for all your attention.
    The runtime error is rather strange:
    >
    javax.servlet.ServletException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'actions.DataManagementBean'.. class actions.DataManagementBean : java.lang.NullPointerException
    The DataManagementBean is the class that accesses the property "dataTransferType" in the DataFile class. And the initial value of the "dataTransferType" is defined in the faces-config.xml file.
    If I arbitrarily introduced a String value in the DataManagementBean:
    String defaultSelectedDataTransferType = "importFile"and in the DataManagementBean's constructor, I use this statement:
    this.recordItems = this.getRecordsList( defaultSelectedDataTransferType );Things worked as I had expected without problem. But, I think this is not an elegant way of coding it. Because there is a pre-defined value of dataTransferType in the faces-config.xml file, I should access it from there.
    But, when I specify:
    this.recordItems = this.getRecordsList( datafile.getDataTransferType() );The DataManagementBean cannot even be instantiated!
    In my faces-config.xml file, I have:
    <managed-bean>
      <managed-bean-name>dataManagementBean</managed-bean-name>
      <managed-bean-class>actions.DataManagementBean</managed-bean-class>
      <managed-bean-scope>session</managed-bean-scope>
      <managed-property>
       <property-name>datafile</property-name>
       <property-class>propertyBeans.DataFile</property-class>
       <value>#{dataFile}</value>
      </managed-property>
    </managed-bean>
    <managed-bean>
      <managed-bean-name>dataFile</managed-bean-name>
      <managed-bean-class>propertyBeans.DataFile</managed-bean-class>
      <managed-bean-scope>session</managed-bean-scope>
      <managed-property>
       <property-name>dataTransferType</property-name>
       <property-class>java.lang.String</property-class>
       <value>importFile</value>
      </managed-property>
    </managed-bean>
    ......

  • Facebook won't load properly. Takes forever and then I get a script page with log-in and then that takes forever and gives me further script that won't let me access anything. Other sites load and work OK!

    Started after last auto update several days ago. A few other sites are slow to load while many are good but Facebook just won't present it's usual mix of pre-programmed scripts and links but comes up eventually as part HTML script with a log-in box and when you log-in it then takes forever again and just gives HTML type script for "Friends" "messages" etc. but if you click these it goes nowhere!
    Also it won't let me clear history at all despite many tries. I removed and reloaded the program last night but no positive effect.

    I still haven't resolved this problem. Here is some more information...
    youtube is the only website that has started working, but it sometimes stops working again.
    There are many other sites that don't work, cnn.com, washingtonpost.com (sometimes), and a lot of others.
    I have contacted our internet service provider and they said that they had nothing to do with the problem.
    Some websites will not work at all. Safari tells me that it can't find the server. Some that do this are ups.com, computerworld.com, and others.
    I think that the problem is that, for some reason, our mac computers can't access certain servers where we are. (We are at a small ski resort (on the mountain) in Canada.) I think this because when a site doesn't load properly there are several errors and they are all "can't find host" errors from a couple of the same sites (ex. example.something.something).
    *Also, I ran a test on speedtest.net on the laptop and one of our iMacs and the results were way faster than anything actually loads/downloads or than the activity monitor shows, even when checking the activity monitor at the same time as running the test.

  • I have several Outlook accounts and want to switch between them but Firefox defaults to the main one and won't let me access the others.

    Outlook now makes me sign out and sign back in to each of my email accounts. When I try to sign back in, it defaults to the main account and won't let me type in the other email addresses. This only happens in Firefox, both Google and IE leave the email address blank and let me type in the one I want to access. I'd rather use Firefox, but it doesn't let me type in a different email address. Can I fix this?

    This can be caused by corrupted cookies or cookies that are blocked (check the permissions on the about:permissions page).
    *https://support.mozilla.org/kb/fix-login-issues-on-websites-require-passwords
    Clear the cache and the cookies 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"
    If clearing cookies doesn't work then it is possible that the <i>cookies.sqlite</i> file that stores the cookies is corrupted.
    Rename (or delete) <b>cookies.sqlite</b> (cookies.sqlite.old) and delete other present cookie files like <b>cookies.sqlite-journal</b> in the Firefox profile folder in case the file cookies.sqlite got corrupted.
    *http://kb.mozillazine.org/Cookies
    *https://support.mozilla.org/kb/Deleting+cookies

Maybe you are looking for