Don't understand private access error message.

I am calling createAndShowGui from another file and am getting an error message from the compiler that says:
createAndShowGUI has private access in masterfilemaint.MasterFileMaint.
I don't understand because the method is public. Here is the call.
thanks.
    public void actionPerformed(ActionEvent e) {
        if ("Fil".equals(e.getActionCommand())) {   ///  The Call......
               callItemMaint.createAndShowGUI();
            if ("Tab".equals(e.getActionCommand()))  {
               callSimpleTableDemo.createAndShowGUI();   
            if ("Quit".equals(e.getActionCommand())) {
               quit();
            /*else {
              quit();
    }       ..............And here is the method.
       public void createAndShowGUI() {// was static
        // set decor
        JFrame.setDefaultLookAndFeelDecorated(true);
        // create/set-up window
        JFrame frame = new JFrame("Guide");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        // set up content pane.
        addComponentsToPane(frame.getContentPane());
        // Display window
        frame.pack();
        frame.setVisible(true);
}

Is the createAndShowGUI in a public class?
Yes here is the first few lines of the class:
package masterfilemaint;
import java.awt.*;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class MasterFileMaint {                //   Class is public .........
    final static boolean shouldFill = true;
    final static boolean shouldWeightX = true;
    final static boolean RIGHT_TO_LEFT = false;
    final static boolean DEBUG = false;
    public JTextField textFieldOne, textFieldTwo,
                         textFieldThree, textFieldFour, textFieldFive;
    public JLabel label;
    public JButton button;
    public String one, two, three, four, five, six;
    Is callItemMaint an instance of that class or an instance of a base class or interface?
callitemMaint is an instance of MasterFileMaint instantiated in the calling class. Here is the first few lines of MaterFileMaint.
package probuyermain;
import CalculatorOne.*;
import simpletabledemo.*;
import masterfilemaint.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.JCheckBoxMenuItem;
import javax.swing.JRadioButtonMenuItem;
import javax.swing.ButtonGroup;
import javax.swing.JMenuBar;
import javax.swing.KeyStroke;
import javax.swing.ImageIcon;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JScrollPane;
import javax.swing.JFrame;
public class ProBuyerMain implements ActionListener {
    JTextArea output;
    JScrollPane scrollPane;
    MasterFileMaint callItemMaint = new MasterFileMaint();        // The instance
    CalculatorOne callCalculator = new CalculatorOne();
    SimpleTableDemo callSimpleTableDemo = new SimpleTableDemo();
    public JMenuBar createMenuBar() {
        JMenuBar menuBar;
        JMenu fileMenu, submenu;
        JMenuItem menuItemOne, menuItemTwo,
                    menuItemThree, menuItemFour, menuItemFive;
        //Create the menu bar.
        menuBar = new JMenuBar();

Similar Messages

  • "Permission to access" error messages when coping folders

    When I try to drag my Home directory to another drive to keep a backup copy, I get the no "Permission to access" error message on various programs. "Get Info" has the option of making me the owner but it is grayed out on any of those programs I can't copy. It's my computer and I have the only account and I'm the administrator. Why can't I get access to copy my files? I've followed other strings on this topic but none of them appear the exact same problem. I am trying drag my home directory to an external drive for back up. My new IMAC i7 has a bad internal 1T drive and I'm trying to get everything off it before the local Apple Store replaces the drive in a couple of days (when they get the replacement drive). I do use Time Machine but still want to make another copy of my Home drive. Any help on how to get around this problem would be appreciated.

    If you wish to make a separate backup of your Home folder or even a bootable backup of your system drive, then do it properly - NO drag and drop. Use a backup utility that knows how to protect the file permissions assigned to everything you backup. See:
    Backup Software Recommendations
    Backuplist
    Carbon Copy Cloner
    Data Backup
    Deja Vu
    iBackup
    JaBack
    Silver Keeper
    MimMac
    Retrospect
    Super Flexible File Synchronizer
    SuperDuper!
    Synchronize Pro! X
    SyncTwoFolders
    Synk Pro
    Synk Standard
    Tri-Backup
    Others may be found at VersionTracker or MacUpdate.
    Visit The XLab FAQs and read the FAQ on backup and restore. Also read How to Back Up and Restore Your Files.
    All of the above may be used to backup individual files, folders, or the entire drive. Backups may also be scheduled so you can backup regularly and automatically. Backup should be done to a partition on a backup drive that will be dedicated for the backup. Preferably a single hard drive.

  • HT1386 How do I sync my iphone when my computer keeps giving me a "you don't have enough access priviliges" message

    How do I sync my iphone when keep getting a "you don't have enough access priviliges" message?

    I don't know all the details but will ask some basic questions:
    Did you download iTunes on your computer? You sync your phone to your computer by starting iTunes on your computer and connecting your phone.
    Another tip is to use the View menu in iTunes on your computer to View Sidebar. Your phone should show up in the left sidebar of iTunes on your computer when connected to your computer. You select it there and then use the tabs to the right to select items to sync to your iPhone.
    Sorry if these suggestions are too obvious.

  • Login or Access error messages

    How can I best change or add messages when login attempt fails using SSO through the portal to backend SAP systems instead of getting login prompts? Also how can we change access error messages to be display to user when access fails occur.

    I've struggled with that one myself and have given up on playing with services.war.
    To update the error messages, try updating amAuthUI_<locale>).properties (i.e. amAuthUI_en.properties) and restart the web container.
    As for Login.jsp, any changes you make to it should be reflected immediately without a restart.
    For future installs, you can add these modified pages to your amserver.war file.

  • ITunes podcast downloading problem.  "Authorization is required to access" error message.

    I've been subsribing to a podcast through iTunes for years with no problems, but today I get the error message:
    "There was a problem downloading (podcast name).  Authorization is required to access (url feed)"
    Its a BBC podcast and I now get the same error message for all the other BBC podcasts that I subscribe to.  I also cant play or download any BBC podcasts from the iTunes Store.  All other podcasts by all other providers are fine.
    Weirdly this problem seems to be limited to the Macbook Pro as the iMac on the same network can access the problem podcasts with no hassle.
    A few web searches have turned up very little, any ideas in Apple Communities-land!

    Hey Roger and thanks for your amazingly quick response.
    I did a quick confirm: it doesn't seem to work on any Windows machines I can get my hands on, so it isn't something specific to me (whew!).  It definitely DOES work on any Mac I can get my hands on (which you also confirmed - thanks).
    That link, the feedproxy.google.com one, works fine on Windows and Mac alike.  I very much imagine that someone else is using FeedBurner and while I'm not huge into podcasts, there are a lot of others who are.  This issue would've come up if it were something like that.  Either way: I can access that link (and thus the content) just fine on any machine I'm on.
    So, what you're saying is to ditch FeedBurner entirely and just submit the raw feed to iTunes.  That sounds good (and, if I want more indepth statistics later, I'll cross that bridge then)...but I'm afraid I'm not sure how to do that.  I've already submitted the FeedBurner feed to iTunes and I'm not sure how I'd go about changing it.  Would I simply ask iTunes to delete the old feed and more or less resubmit?
    Thanks for the help about the artwork.  The individual files may very well be missing the metadata, as when I asked the guy doing that if he had included the artwork, he indicated he was rather confused.  I'll test that out in a bit.  The feed artwork, however, I must admit ignorance about.  Where might I be able to change that?  I'm using WordPress and...PowerPress/BluBrry (or whatever it's referred to).
    Thanks again for being so incredibly helpful with all this.  And so timely, too.

  • Database access error message????

    Hello,
    Could U please Help??????
    I am getting the below error message when running the program. Is there any mistake in the database connection method? I am using MS Access database and below is the connection code
    java.sql.*;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String database = "jdbc:odbc:MinuteMgt";
    Connection conn = DriverManager.getConnection(database," ", " ");
    java.sql.SQLException: Column not found
    java.lang.Throwable(java.lang.String)
    java.lang.Exception(java.lang.String)
    java.sql.SQLException(java.lang.String, java.lang.String)
    int sun.jdbc.odbc.JdbcOdbcResultSet.findColumn(java.lang.String)
    int sun.jdbc.odbc.JdbcOdbcResultSet.getInt(java.lang.String)
    minutemgt.datalayer.UserData minutemgt.datalayer.UserFactoryImpl.logonUserData(java.lang.String)
    boolean minutemgt.business.SecurityService.validate(java.lang.String, java.lang.String)
    void minutemgt.ui.LoginUI.enterButton_ActionPerformed(java.awt.event.ActionEvent)
    void minutemgt.ui.LoginUI.connEtoC1(java.awt.event.ActionEvent)
    void minutemgt.ui.LoginUI$IvjEventHandler.actionPerformed(java.awt.event.ActionEvent)
    void com.sun.java.swing.AbstractButton.fireActionPerformed(java.awt.event.ActionEvent)
    void com.sun.java.swing.AbstractButton$ForwardActionEvents.actionPerformed(java.awt.event.ActionEvent)
    void com.sun.java.swing.DefaultButtonModel.fireActionPerformed(java.awt.event.ActionEvent)
    void com.sun.java.swing.DefaultButtonModel.setPressed(boolean)
    void com.sun.java.swing.plaf.basic.BasicButtonListener.mouseReleased(java.awt.event.MouseEvent)
    void java.awt.Component.processMouseEvent(java.awt.event.MouseEvent)
    void java.awt.Component.processEvent(java.awt.AWTEvent)
    void java.awt.Container.processEvent(java.awt.AWTEvent)
    void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
    void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
    void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
    void java.awt.LightweightDispatcher.retargetMouseEventjava.awt.Component, int, java.awt.event.MouseEvent)
    boolean java.awt.LightweightDispatcher.processMouseEvent(java.awt.event.MouseEvent)
    boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
    void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
    void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
    void java.awt.EventDispatchThread.run()
    THANK YOU VERY MUCH!!!

    You most probably have a typo in your column name (likeint i = rs.getInt ("cutsomer");Kind regards,
      Levi

  • I do not understand the compiler error message

    The code below is supposed to get multiple integer inputs from the console, place them on an array, and check for the NumberFormatException. When I compile it, it is giving an error message that I do not understand.
         A console program that accepts integer input from the user and throws a NumberFormatException if the entry is not an integer.
         Created on: August 20, 2003
    import javax.swing.*;
    import java.util.*;
    public class ArgstoNumbers2
         public static void main(String[] args)
              //Prompt user for input
              System.out.print("Enter a number: ");
              //Create and array to accept the user's input
              int [] integerArgs;
              //Fill array with users input
              while(true)
                   try
                        integerArgs = getInt();
                        break;
                   //Verfy that the input is an integer
                   catch (NumberFormatException e)
                        System.out.println("Not a number. Please enter a number.");
                        System.exit(1);
         //Start of the getInt() method
         public static int getInt()
              String numberString;
              int intVal = 0;
              boolean endChar = false;
              while(!endChar)
                   try
                        numberString = getString();
                        intVal = Integer.parseInt(numberString);
                        endChar = true;
                   catch (NumberFormatException e)
                        System.out.println("Not a number. Please enter a number.");
                        System.exit(1);
              return intVal;
         //End of the getInt() method
         //Start of the getString() method
         public static String getString()
              int aChar = -1;
              String consoleChars = "";
              boolean endChar = false;
                   while(!endChar)
                        try
                             aChar = System.in.read();
                             if ((aChar == 10) || (aChar == 13)) endChar = true;
                             else consoleChars = consoleChars + (char)aChar;
                        catch (Exception e)
                             System.out.println(e.getMessage());
                             System.exit(0);
              return consoleChars;
         //End of the getString() method

    Hi,
    A possible problem would be at line
    integerArgs = getInt();
    since here you would get an incompatible types error since 'integerArgs' is an array and 'getInt()' returns a primitive int value.
    This needs to be changed and then am sure your code should compile.
    Hope the above helps.
    John Morrison
    PS: As paul was saying, putting in the error message would be a faster way to get an answer since most developers on the forum would be hard pressed for time and may not be able to actually try out your code.

  • How to access error messages from gateway response in browser?

    hi,
    i get 400 bad request as response with error messages and transaction id .
    i need those messages in my alert box.
    how to do it?
    thanks and regards,
    kartik

    Hi,
    Now just use below code.
      oModel.read( sRead, null, null, true, function(oData, oResponse){
                          alert("Read successful: " + JSON.stringify(oData));
    },function(oError){
                          alert("Read failed");
                       var oXmlData = oError.response.body;
                       var oXMLModel = new sap.ui.model.xml.XMLModel();
                       oXMLModel.setXML(oXmlData);                              
                        console.log(oXMLModel.getProperty("/message")); 
                        console.log(oXMLModel.getProperty("/code")); 
                        console.log(oError);
    with above code, you will be able to read the response from body. also no need to add messages to header that I mentioned in earlier reply.
    I believe with above code, you will be able to read exact error messages.
    Regards,
    Chandra

  • My application won't open, even from the original app file. I don't even get an error message. What can I do?

    I have lightroom 5.7 x64bit. I've had the most recent upgrade for over a year. I had to shut my computer off, so I closed out of LR and now the applicaton will not start. I've tried opening it from shortcut, from point of origin file. the window churns then stops, no error message--nothing. Help

    Try the following:
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - Run Option #1, Repair Permissions.
    OT

  • TS3276 The links within all my incoming emails don't work.  The error message= No associated application could be found.

    In all my incoming messages, links do not work.  The error message reads=No associated application can be found.  Any hints?

    Open Safari. From the Safari menu bar click Safari > Preferences then select the General tab.
    Select Safari from the pop up menu next to:  Default web browser
    If that doesn't help, launch Disk Utility located in HD > Applications > Utilities
    Select the startup disk on the left then select the First Aid tab.
    Click:  Verify Disk Permissions
    Restart your Mac when it's finished.
    Try Mail.
    messaged edited by:  cs

  • Cannot update or reinstall iTunes - receiving access error message

    Hello
    I tried to install the most recent iTunes update the other night and received the below errow.  I uninstalled and tried to reinstall and am still receiving the same error -
    Error writing to C:\Program Files(x86)\iTunes\iTunes.Resources\fr.prj\printing Template\15.Media.PlainPaper.SS.xml.  Verify you have access to that directory.
    I am the administrator on my computer and none of the files are hidden, they dont appear to be read only either.
    Please can anyone shed any light on what this could be?
    Thanks in advance

    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • I don't understand the following error on apache tomcat

    Good afternoon!
    I am using tomcat 6.0.13.When i try to perform my servlet, the following exception is gone off :
    exception
    javax.servlet.ServletException: Error allocating a servlet instance
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    java.lang.Thread.run(Thread.java:595)
    root cause
    java.lang.NoClassDefFoundError: mypackage/Transportadora (wrong name: Transportadora)
    java.lang.ClassLoader.defineClass1(Native Method)
    java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1817)
    org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1325)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    java.lang.Thread.run(Thread.java:595)
    Would be this a problem in the definition of the class?
    web.xml:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlnssi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">
    <display-name>Transportadora </display-name>
    <description>
    Projeto Transportadora
    </description>
    <servlet>
    <servlet-name>Transportadora</servlet-name>
    <servlet-class>mypackage.Transportadora</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Transportadora</servlet-name>
    <url-pattern>/transp</url-pattern>
    </servlet-mapping>
    </web-app>
    A great one I hug and grateful for the attention!
    Message was edited by:
    tarssa
    Message was edited by:
    tarssa
    Message was edited by:
    tarssa

    java.lang.NoClassDefFoundError: mypackage/Transportadora (wrong name: Transportadora) You need to make sure all your classes are in the classpath and/or you need to make sure you're calling the class by its correct name.

  • No save as dialog box in elements 11, don't even get an error message.

    Tonight I tried to use save as to save an image in elements 11 and nothing happened.  No errors, no save as boxes, just nothing.  It won't just save either, again, nothing happens.  I've been running this program for months and this is the first time this has happened, it worked just fine yesterday.  I'm using windows 8.
    Thanks for your help!

    Wouldn't you know it. By entering this question a similar question finally showed up. The answer is to right-click in the top of the window and select "Restore." Problem solved.

  • Update Itunes now can not access, error message

    updated Itunes, now cannot open the itunes, getting error message

    See Troubleshooting issues with iTunes for Windows updates.
    tt2

  • Online account access - error message

    Trying to get into my account and keep getting this:
    Content can be added here
    Sorry we're unable to show your account details at the moment due to a technical fault. Please try again later or contact us.
    Is it just me?  It was fine yesterday.

    Hmm, mine was also fine earlier...
    Now I too get
    The 'My services' sections are normal
    -+-No longer a forum member-+-

Maybe you are looking for