Save and load variables in java

Hi ,
I need a help about Save and load .
I have a project(tool) which have JText, JRadioButton and other things also.
I want to save all the changes for the next execution ( fresh startup or fresh bring up of the tool).
Please let me know what will be the better way to save and load.
can i get below use of C# in Java similar way ( below one is the C# code)
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
    internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
        private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
        public static Settings Default {
            get {
                return defaultInstance;
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("PATH")]
        public string SourceDirectory {
            get {
                return ((string)(this["SourceDirectory"]));
            set {
                this["SourceDirectory"] = value;
}Can i do Strore and load without any File storage?
Thanks in advance

Assuming you are deploying applet or webstart than perhaps you can use PersistenceService?
http://download-llnw.oracle.com/javase/1.5.0/docs/guide/javaws/developersguide/examples.html#PersistenceService

Similar Messages

  • Save and load jtree

    Hi,
    I have a jtree which I would like to save and then load and display in a JPanel. Just for info, the nodes of the tree are instances of a user object i have created. Now I have looked into two ways of doing this:
    1) Serialize the actual JTree object; write it to a file using objectoutputstream and then read it in using objectinputstream, OR
    2) Serialize the tree model again using objectoutputstream then read the model back and create a new JTree initialising with the model i read in.
    I made some progress using the second approach, but when I load the tree model back and create a new tree with that model it just displays as a blank root with blank children. (Although the tree structure is the same).
    What am i doing wrong?
    The code is:
    public void saveTheTree() {
            TreeModel tm = tree1.getModel();
            try {
                 ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream("treeModel"));
                 out.writeObject(tm);//the actual tree object
                 out.flush();
                 out.close();
            catch(IOException e){}
      public void openTheTree() {
           ObjectInputStream in = null;
             try {
                 in = new ObjectInputStream(new FileInputStream("treeModel"));
                 TreeModel atm = (TreeModel) in.readObject();
                 JTree loaded = new JTree(atm);
                 abPanel3.removeAll();
                 abPanel3.revalidate();
                 abPanel3.add(loaded, BorderLayout.CENTER);
                 abPanel3.revalidate();
             catch(Exception e) {
                  e.printStackTrace();
      }abPanel3 is where the tree is displayed and tree1 is my tree.
    Any help would be much appreciated!

    well the leaves are defaultmutabletreenodes instantiated with a user object which attaches a link and level to each one. According to the java documentation, defaultmutabletreenode is serializable, but do i need to serialize each node of the tree as well?
    Has anyone managed to save and load a jtree before?
    Thanks.

  • Save and load game into and from binary file

    hello!
    I'm new to java and i'm doing a game at school.
    i�m doing the same game and i�m doing a "save" and "Load" game. i'm doing this to save the game:
    public void jMenuJogoSalvar_actionPerformed(ActionEvent e) {
    System.out.println("SAlvar o Jogo actual");
    FileOutputStream out = null;
    ObjectOutputStream s = null;
    int valorRet = jFileChooserSalvar.showSaveDialog(this);
    if (valorRet == jFileChooserSalvar.APPROVE_OPTION) {
    try {
    out = new FileOutputStream(jFileChooserSalvar.getSelectedFile().getAbsoluteFile());
    s = new ObjectOutputStream(out);
    s.writeObject(mesa);
    s.flush();
    catch (FileNotFoundException fNFExc) {
    System.out.println("FileNotFound");
    catch (IOException ioExc) {
    ioExc.printStackTrace();
    finally {
    try {
    if (s != null) {
    s.close();
    if (out != null) {
    out.close();
    catch (IOException ex) {
    and i'm getting this error:
    java.io.NotSerializableException: com.sun.java.swing.plaf.windows.WindowsFileChooserUI
    i have already implemented the method Serializable into the classes that i'm trying to write and the classes they use but i still have this.
    Tell me what to do .
    thanks for the time.

    Does the Object mesa have a com.sun.java.swing.plaf.windows.WindowsFileChooserUI
    object in side it? or does any of the object that are in side it have a com.sun.java.swing.plaf.windows.WindowsFileChooserUI
    object?
    If you post code please use the code button

  • Save and load public/private RSA key on file

    hi
    i'm triyng to save and load an RSA key to a file
    i generate the keys:
            KeyPairGenerator generator=null;
            KeyPair coppia=null;
            PrivateKey c_privata=null;
            PublicKey c_pubblica=null;
                generator=KeyPairGenerator.getInstance("RSA");
                //imposto la dimensione
                generator.initialize(1024);
                //genero le 2 chiavi
                coppia=generator.genKeyPair();
                //imposto la privata
                c_privata=coppia.getPrivate();
                //imposo la pubblica
                c_pubblica=coppia.getPublic();
    //i save the key
            FileOutputStream file = new FileOutputStream("key");
            file.write(c_pubblica.getEncoded());
            file.close();and then i use another program that imports the key:
       Key chiave=null;
       FileInputStream file=new FileInputStream("key");
       byte[]byte_chiave=new byte[162];
                 X509EncodedKeySpec chiave_spec = new X509EncodedKeySpec(byte_chiave);
                KeyFactory keyFactory = KeyFactory.getInstance("RSA");
                chiave = keyFactory.generatePublic(chiave_spec);but when i try to reload he key i get:
    java.security.InvalidKeyException: IOException : DER input, Integer tag error
    where am i wrong?
    thanks

    sorry...
    this is the correct code:
            Key chiave=null;
            FileInputStream file=new FileInputStream(path);
            byte[]byte_chiave=new byte[file.available()];
            System.out.println("leggo: "+file.read(byte_chiave));
            X509EncodedKeySpec chiave_spec = new X509EncodedKeySpec(byte_chiave);
            KeyFactory keyFactory = KeyFactory.getInstance("RSA");
            chiave = keyFactory.generatePublic(chiave_spec);

  • Saving and Loading variables in a .txt file (Offline)

    I'm working a software we've done with Flash, but we'd want
    people to be able to save the variables they selected. We need them
    to be able to save the value of about 10 variables in a file on
    their desktop, and then be able to load that file again.
    Is it possible to do that without having to use php or stuff
    like that (that's why we want to make it an offline applications so
    we don't have to use php to be able to save files).
    I know Actionscript looks a lot like Javascript and with
    Javascript it's really easy to do, but all the saving functions are
    blocked in Flash for security reasons.
    If anyone knows how to do that, to simply save and load a
    .txt file, please let me know. If it would be possible also to
    change the .txt to whatever else it would be even better. The file
    can still be opened in Notepad but at least it looks a bit more
    professionnal to have our own extension. Again in Javascript or
    with a .bat file it's really easy to save variables to whatever
    type of file, even to non existing types, it simply creates a text
    file with an unknown ending.
    Thanks!

    I found a page that explains in a really easy way how to
    communicate with Javascript if the flash object is contained in an
    html page, but I couldn't find any page explaining how it works if
    it's not in an html page. On our side, before using the software
    we're creating we'll convert it to a .exe. How can we call a
    Javascript from that .exe since we can't incorporate the Javascript
    in the container since there isn't really a container... Is there a
    way to link to a Javascript (.js) that would be in the same folder
    as the .exe? Or would there be a way to incorporate the Javascript
    right into the .exe?
    Let me know if any of you have a solution for that.
    Thanks!
    http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts&file=00000342.html#wp126566

  • SQL Dev 2.1:Ability to save and load visual query models?

    At SQL Dev 2.1, do we now have the ability to save and load visual query models as with TOAD? Or has that functionality been rolled into the for-pay Data Modeler extension? Seemed strange to hide the functionality deep within SQL Worksheet, then not allow query models to be saved or loaded. From what I recall, load/save was scheduled to be in 2.0.
    I've not yet downloaded and installed 2.1, but also as I recall, it was promised to be a significant (e.g. new-feature rich) release. Has it lived up to that promise? Hoping also that it's not so buggy as to not merit an upgrade. At my workplace, folks have different versions of SQL Dev 1.X installed, each for the purpose of retaining functionality that got broken in future releases, etc. Would love to be able to advise them to retire their 1.X installs in favor of 2.1.
    Edited by: Dana N on Jan 21, 2010 6:45 AM

    Dana, We are working on the query builder. We have not done anything with it in recent releases as we knew that it needed completely overhauled and a
    couple of bug fixes were not going to give us the query builder we needed. Sue will be able to tell you more as the we get closer to releasing it as a feature.Thanks Barry. I know it's probably impossible to give firm dates, but my colleagues would love to know, ballpark, when query builder might be ready. Any particular year/quarter that's targeted for?
    A lot of the bugs in the 2.1 are probably my fault as we decided to build a framework which allowed tasks to be scheduled like eclipse and push them to the
    background. Coupled with this, we tore apart the worksheet to allow us to fit tasks in, but to also give us the ability to do some of the enhancement requests
    that you guys, our users, have been asking for. While its not perfect, I believe its getting much better from both a functionality and performance standpoint. The
    worksheet will not change again and there are no enhancements logged or scheduled which will do that. The issues that have come as part of 2.1 are being
    addressed and we are fixing the highest priority ones as we speak. One of my priorities is to make these components as rock solid as possible.Thanks again. It really is a nice tool to work with, and I'm grateful to have it. I would choose stability for existing features over new ones, but I suppose there always has to be a balance in development. What was really scary in the past was getting bizarre / wrong answers in query results--that's a complete show stopper; e.g. clicking on a row/col intersection in a result set row would show strange and false values. New features can wait, but core functionality must be solid. If one can't presume integrity of query results, it's game over--using a version of SQL Developer that returns inconsistent result sets between runs could be Considered Harmful, or so it is to me.
    Anyway, thanks for responding and I hope Oracle Corp gets you whatever assistance you need to improve the quality of existing functionality while adding new features; with one not being at the expense of the other. :-) Glad also to see Sue has authored a book on the tool. Hopefully that will drive customer demand and force increased allocation of development resources toward the product. I'd like to think having out-of-the-box tools that are a joy to use might even increase market share.
    Data Modeler I would love to use, but am completely priced out of it. Enterprise Architect from Sparx Systems is the best value there so far as I can tell.
    Dana

  • Query property "Save and reuse variable value" doesn't work in BW EHP1

    We have a workbook which contain 4 queries, every different worksheet is a different query.
    All the queries are on the Same InfoCube and all the queries use the same variables.
    In the properties of the query n.2 we set the parameter "Save and reuse variable values" then we refresh the 1st query and all work fine (the system asks the variable values) but when we refresh the 2nd query the system doesn't use the same variable values that we have inserted for the query n.1
    We don't have the same problem in 7.0.
    Any help is appreciated.
    Luca

    Hi,
    I suppose, you need to set the 'Save and reuse variable values' for each query individually in the workbook. I am not sure however there is a option where you can specify to apply the settings of one query to all queries in the work book.
    Please check and hope it helps.
    Regards,
    Adarsh Mhatre

  • Cannot Read From Registry - Need to save and load config

    I have code the I have tested in other programs. I cannot read or write to the registry from a plugin. Any ideas?
    Any suggestions for the best way to save and load config information?
    Thanks!!!

    Hi Srikanth,
    Thank you for responding.
    I had a problem on one material. So deleted the request and Reload it from PSA. That issue got solved.
    And Now the problem is , Now my senior is saying Delete the data from April-09 till date and Reload it. The issue is My CUBE ( ZSD_C03 ) is updated with 4 data sources. 2LIS_11_V_ITM   ,  2LIS_13_VDITM   ,  2LIS_12_VCHDR  , 2LIS_11_VAITM .
    And I need to delete data from 2LIS_13_VDITM  data source . How Can I proceed for the current issue   ?
    Please suggest   ...
    Thank you ,
    Utpal

  • Core Data - Save and Load

    Hi
    I need to add functionality to my iPad app so that I can save and load notes from a UITextView then load them when the user selects the date in the UIDatePicker that it was originally saved on, much like a calendar, notes for different dates.
    I have asked around on StackOverFlow and people have been spoon feeding me code samples but I am not quite latching on. Complain all you like, but I really want to learn how to do this, however currently its fairly important that I get the functionality added in.
    Here is where I asked:
    http://stackoverflow.com/questions/4133405/core-data-iphone-save-load-depending- on-date
    http://stackoverflow.com/questions/4177398/save-and-load-data-coredata
    I have unsuccessful so far and if anyone can help me here I would be ever so grateful and even more so if you would take a short time to take a peek at my project. You can email me at [email protected], its a fairly simple project and Im sure especially for you guys you could see what I am doing.
    Hope you can help me out.

    Core Data pretty much does away with the concepts of saving and loading. The data is just there. If you want a particular view of data, on a specific date, for examples, you create a predicate to pull only the matching data into a particular controller/UI control.

  • I want to save and load the swf-file to a local disk of any user. Possible?

    Hi, It's good to see you.
    I am a developer in Web Flash Game.( I use AS3.0 )
    I want to save and load the swf-file to a local disk of any user,
    Because I want to decrease the time for loading a flash movie from site.
    Is it possible?
    If it is possible, I hope the swf-file has only one loading from site and
    it will be loaded from a local disk of any user after that.
    (I know a concept of Internet temporary file.
    I want to know the other techniques of only using AS3.0.)

    Hi,
    I have similar problem. We are producing a 70 meg browser based game and would like the user to be able to cache the game to avoid reloading the game the next time. Can this be done if the user authorise the save? If, so how? We don't care where the game is cached .
    Can we prompt the user to download the file by providing a link from within the SWF application?

  • How do you create a Browser cookie in Captivate to save and load a set of variables?

    Using the below tutorial I am trying to set a cookie that remembers the menu of sections that have been viewed when the browser reopens. Basically sets and loads 6 variables with a cookie. But it's not working and I can't find the JavaScript to debug in Chrome. Alternately does anyone know of a better tutorial for setting cookies in Captivate then this post?
    Eating JavaScript Cookies with Adobe Captivate - CaptivateDev.com

    Thanks for replying. The variables define a number of states within the training. Mostly a main menu showing modules completed or not and also defining areas as locked or unlocked. So it's more then a text caption. I'd like a button on the intro/splash screen that when clicked loads about 6 variable as 0 or 1 from the cookie. Then the user would continue to the training with all the variables loaded.

  • Parent  changes between save and load of a PDF file

    I am using LiveCycle 8.2 and Acrobat 9.2 - and Reader 9.2
    I have an automated process that uses a plug-in to fill out and save a PDF form using XML data.
    This works well - saves time , etc.
    I have a problem where a certain data element seems to have a different heirarchical relationship in the Reader  than in Acrobat..
    I have added some xfa.host.MessageBox() statements to print out data as the form is being saved  and then when it is loaded into the Reader - these  values are not the same -
    but i have checked and when I laod it using Acroabt everyhting is the same as when the data was saved - but there a different relationship apparently exists when I load the form using the reader.
    Has anyone seen this before ?
    Is there anything that I can do about it ?
    Any help is appreciated - thanks

    a snippet of the code involved is listed here :
    Provider.page2.Practice.Associatec.AssociateType.AssociateTypeDescription::initialize - (JavaScript, client)
     var CovgYN;
    var msg; var lineofdata; 
    var assttype = this.rawValue;msg
    = "Check1 : " + assttype + " = " + this.parent.parent.AssociateLastName.rawValue;xfa.host.messageBox(msg);
    lineofdata= this.parent.parent.AssociateFirstName.rawValue + " " + this.parent.parent.AssociateLastName.rawValue + " " + assttype + " -" + CovgYN; 
    The data contained in the msg and lineofdata variables - is different in Acrobat 9.2 and The Reader ... It is correct in Acrobat when I load the form and Import the XML data file.
    When the correct data Form is saved and loaded using the reader the values "parent" is different so - the values are not the same -=
    This is a serious problem !.
    Is this a known bug or issue  ?
     

  • Please help me understand making and loading variable classes

    Hi guys ,
    I know that I am stupid but I just can't get this!  AS3 says you need to load variables into a class?  Please please give me a simple example
    my variables look like this... (the whole point of playing around with variables was that if I had to make a change I could access one place and change them...
    but now I realse that I can't access or call them outside the movie clip they are in:(
    please hlep me!
    var ans1="";
    var ans2="";
    var w1="ABN";
    var def1="An ABN (Australian Business Number), is a personal number for your business that makes it easier and quicker to deal with  government and other businesses.";
    var w2="ACN";
    var def2="An ACN is an Australian Company Number, which is a special number that each company gets to identify it.  No two companies can have the same ACN";
    var w3="Action Plan";
    var def3="A business Action Plan will show What needs to be done and When it needs to be done by."
    var w4="Advertising";
    var def4="Advertising is producing information to let people know about your business and try to increase sales."
    var w5="Promotions";
    var def5="Promotions are where your business tries to increase the sales of a particular item through offering a good deal, advertising or a special display.";
    var w6="Benefit";
    var def6="A benefit is something good that you get.  One benefit of doing exercise is getting fit, another benefit is losing weight.";
    var w7="Business Mentor";
    var def7="A business mentor is a trusted guide. Someone who has experience and has been successful in business and can help and advise you.";
    var w8="Business Name";
    var def8="A Business name is the name a business uses to do its work.  It lets customers know who you are.";
    var w9="Business Registration";
    var def9="When you start a business you need to register your ABN, you may need to register your business name.";
    var w10="Cash flow";
    var def10="Cash Flow for a business is having enough cash saved to be able to pay your bills when they are due.";
    var w11="Characteristic";
    var def11="The characteristics of something are describing words about that thing.";
    var w12="Charges";
    var def12="A charge is something you have to pay, an expense.";
    var w13="Company";
    var def13="Is the same as a corporation. A company is a type of business that needs to be registered (either State or Federal) and has special legal status.  A company can put Pty. Ltd after it’s business name.";
    var w14="Competitor";
    var def14="A competitor is another business that is challenging you for customers.";
    var w15="Constitution";
    var def15="A constitution in business is a list of rules and principles that a company has agreed to follow.";
    var w16="Corporations Aboriginal and Torres Strait Islander Act";
    var def16="In the 1960s and 1970s, various reviews advised the Australian Government of the need for legislation to make it easier for Indigenous communities and organisations to form corporations. As a result, the ACA Act was passed, allowing Aboriginal and Torres Strait Islander groups to form corporations for any social or economic purpose.";
    var w17="Corporations Act";
    var def17="The Australian Securities and Investments Commission (ASIC) have laws that apply to corporations and these are found in the Corporations Act.";
    var w18="Cultural knowledge";
    var def18="Cultural knowledge is special information that is held by a particular cultural group, this could include technologies (e.g. special ways of using materials, making and using tools), stories, language and song, cultural rules, taboos, regulations and oral history.";
    var w19="Customer";
    var def19="The customer is someone who is buying something from a business.";
    var w20="Debt";
    var def20="Is something that you have to pay back. If you borrow 20 dollars you have a $20 debt.";
    var w21="Direct competitor";
    var def21="Is selling exactly the same thing as your business and competing for your customers.";
    var w22="Dividend";
    var def22="A dividend is money that is paid to shareholders regularly out of the company’s profits.";
    var w23="(Microsoft) Excel";
    var def23="Microsoft Excel is a computer program that lets you keep lists of numbers and also add up totals and do other sums to those numbers.";
    var w24="Fees";
    var def24="A fee is something that you have to pay, an expense.";
    var w25="Financial Management";
    var def25="Financial Management is the planning, organising, checking  and controlling of the income, expenses and Tax for a business.";
    var w26="Franchise";
    var def26="A franchise is a type of business you can buy. When you buy a franchise you set up the same type of business that has been successful somewhere else.";
    var w27="General ledger";
    var def27="A general ledger for a business is where all of the income and expenses for that business are kept in a document.";
    var w28="Goal";
    var def28="A goal is a target that you set yourself or your business.  Something that you want to achieve.";
    var w29="Growth opportunity";
    var def29="A growth opportunity is a chance for a business to get bigger.";
    var w30="GST";
    var def30="The Goods and Services Tax is paid when you buy things. Some items like food and medicine do not have the Goods and Services tax charged to them.";
    var w31="ICN";
    var def31="Indigenous Corporations Number is a special number given each indigenous corporation to identify it. No two indigenous corporations can have the same ICN.";
    var w32="Incorporate";
    var def32="Incorporate is what people do when they create a company or corporation.";
    var w33="Indirect competitor";
    var def33="An indirect competitor is selling a similar product or service to your business.  E.g. If you had a pizza shop, a fried chicken shop is an indirect competitor because it sells food and your customers might want to eat chicken instead of pizza.";
    var w34="Labour";
    var def34="Labour is all the work done by people (including you) in your business.";
    var w35="Legal name";
    var def35="Your Legal Name is the name that is on your Birth Certificate.";
    var w36="Legal protection";
    var def36="Legal protection means you are protected under the law from certain things happening.";
    var w37="Legal structure (business)";
    var def37="Legal structure is the type of business, sole trader, company, partnership.";
    var w38="Liability";
    var def38="A liability is something you are responsible for.";
    var w39="Licence";
    var def39="A license is proof that you have permission to do something.  For example, if you have a driving license you can drive a car.";
    var w40="Lodge";
    var def40="To lodge a form means to send it to where it has to go.";
    var w41="Manufacturing";
    var def41="A manufacturing business makes things.";
    var w42="Marketing budget";
    var def42="A marketing budget is the amount of money you have set aside for advertising and promotion for your business.";
    var w43="Minor criminal convictions";
    var def43="A minor criminal conviction is something small you have been in trouble over with the police.  Shop lifting is an example of a minor criminal conviction. ";
    var w44="MYOB";
    var def44="MYOB is financial management software for business.";
    var w45="Networks";
    var def45="A network for business is all of your contacts, customers and the people you know through doing business. ";
    var w46="Obligations";
    var def46="Obligations are things you are responsible for.";
    var w47="One off";
    var def47="A “one off” cost is something that only needs to be paid for once.";
    var w48="Operating budget";
    var def48="The Operating Budget is a record of the income and expenses of a business.";
    var w49="Overheads";
    var def49="Overheads are the expenses or costs in running your business, the things you have to pay for.";
    var w50="Partnership";
    var def50="A partnership is where two or more people own and run a business.";
    var w51="Permission";
    var def51="Permission is where you ask if you can do something.  If you ask and the person, group or council and they say yes, you have permission.";
    var w52="Permit";
    var def52="A permit is a special license or permission to do something";
    var w53="Personal assets";
    var def53="Personal assets are things that you own, like your car, house and furniture.";
    var w54="Personal protection";
    var def54="Being part of a company offers the shareholders some personal protection from legal and debt liabilities. This means that they have less responsibility than a Sole trader.";
    var w55="Photo identification";
    var def55="Photo Identification is a document that shows who you are and has your photo on it, like a Driver’s License, 18+ card or a passport.";
    var w56="Postal address";
    var def56="Your postal address is the address where you get your mail sent.  It might be different to the address where you live.";
    var w57="Pricing structure";
    var def57="Pricing structure is where prices for something can change depending on how much the customer orders.  The bigger the order the cheaper the price becomes.";
    var w58="Private";
    var def58="Private means not part of government.";
    var w59="Profitable";
    var def59="Profitable means that there is money left over after a business pays for all of its expenses out of the money it has made.";
    var w60="Promote";
    var def60="When you promote something you try to advertise or increase the amount of people who know about it.";
    var w61="Public liability insurance";
    var def61="Public Liability Insurance gives legal protection to the business owner against getting sued by a member of the public for things like injury or property damage. ";
    var w62="Quickbooks";
    var def62="Quickbooks is financial management software for business. ";
    var w63="Registered";
    var def63="Registered means that you have recorded your information on an official list.  You register your car to be able to drive it on the road.";
    var w64="Regulations";
    var def64="Regulations are rules or laws that control what you can and can’t do.";
    var w65="Retail";
    var def65="Retail is where things get sold in small amounts to customers.  Retail usually happens in a shop and the prices are higher.";
    var w66="Service";
    var def66="A Service business provides a service, like lawn mowing or accounting services.";
    var w67="Shareholders";
    var def67="Shareholders are people that own part of a company.";
    var w68="Sole trader";
    var def68="A sole trader is where one person owns and runs a business.";
    var w69="Start up budget";
    var def69="A Start Up Budget is the first Budget that gets done for a starting business and includes all of the costs involved in setting up the business.";
    var w70="strategy";
    var def70="A strategy in business is a plan of attack, or a plan of how to get something done.";
    var w71="system";
    var def71="A system is business is a set of detailed plans and rules for how to do something in your business.";
    var w72="Vision";
    var def72="Vision in business is being able to imagine and see something in the future.  To set up a new business you need to be able to see something new that wasn’t there before.";
    var w73="Wholesale";
    var def73="Wholesale is where things get sold in large amounts, usually for a cheaper price. The Wholesale price. A wholesaler is usually a big shed where goods are stored. Wholesale is not usually available to just anyone.";

    no, that's not a reason you would use a class file.
    anyway, your document class variables are defined on the main timeline so to reference them from any timeline you can use:
    MovieClip(root).w36;  // for example  (but it's really undesirable to have coding in more than one timeline)

  • How can I Save and Load the Configurat​ion File of a VNA HP8510C with LabView

    Hello, I'm working with a HP8510C. In order to simplfy the use, I try to save and to load the configuration file. Actually, such files are saved in the HP8510C, but there is only 4 places to save. It will be more interresting when I can storage this file in the computer with Labview. I don't have found anything about in the Documentation.
    Has someone already deal with such a question?
    Géraud DEVOS
    IWE Karlsruhe

    geraudIWE a écrit:
    Hello, I'm working with a HP8510C. In order to simplfy the use, I try to save and to load the configuration file. Actually, such files are saved in the HP8510C, but there is only 4 places to save. It will be more interresting when I can storage this file in the computer with Labview. I don't have found anything about in the Documentation.
    Has someone already deal with such a question?
    Géraud DEVOS
    IWE Karlsruhe
    Hello GerauIWE,
    Have you try to use the Hewlett-Packard 8510C Instrument Driver?
    You can download it on :
    http://sine.ni.com/apps/we/niid_web_display.drv_re​sults?p_app_area=&p_man=hewlettPackard&p_keywords=​8510c&p_inst_type=&p_env=845&p_drv_type=&p_int=
    Best Regards,
    Sanaa T
    National Instruments France
    Sanaa T.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> http://www.nidays.fr/images/081110_ban_nidays09_468X60.gif

  • Possible to script palette menus Save and Load Curves?

    Is it possible to script CS4 Photoshop's palette menus? Specifically, the "Save Curves Preset ..." and "Load Curves Preset" ... of the Adjustments Palette.
    I have 600 images, some of which have layer>new adjustment layer>curves applied.
    I want to save the curves using the image name. Later, I want to be able to load the appropriate curve.
    E.g., for image001.tif, the curve would be image001.acv
    (I already have a loop set up to iterate through the files and get the file names.)

    Thank you.
    I got both scripts working without JS or AS errors, but, when trying to load .acv files generated by the second script, CS4 Photoshop gave an error:
    "Could not load the curves because the file is not compatible with this version of Photoshop"
    (The loading script works fine when loading .acv files created directly from Photoshop.)
    The only change I made to your Save Curves code was:
    FROM: var myACV = new File('~/desktop/myCurve.acv')
    TO: var myACV = new File(file);
    and made the code a function:
    saveCurves(file)
    YOUR CODE HERE
    so that I could incorporate it into the Applescript.
    Maybe that was naive (I'm not very knowledgeable about JS).
    Here are the scripts I'm using:
    SAVE CURVES:
    set gammaFolder to "/Users/me/Desktop/myproject/gamma/"
    tell application "Finder"
              set TheFolder to choose folder
              set FileList to every file of entire contents of TheFolder as alias list
    end tell
    repeat with theFile in FileList
              set thefilename to theFile as string
              set text item delimiters to ":"
              set thefilename to last text item of thefilename --remove path
              set text item delimiters to "."
              set thefilename to first text item of thefilename --remove extension
              tell application "Adobe Photoshop CS4"
      activate
      open theFile
                        tell current document
                                  if exists layer "Curves 1" then
                                            set current layer to layer "Curves 1"
                                            do javascript "saveCurves('" & gammaFolder & thefilename & ".acv');
    function saveCurves(file) {
    -- SAVE CURVES JAVASCRIPT HERE
    };" --show debugger on runtime error
                                  end if
                        end tell
              end tell
    end repeat
    LOAD CURVES:
    set gammaFolder to "/Users/me/Desktop/myproject/gamma/"
    tell application "Finder"
              set TheFolder to choose folder
              set FileList to every file of entire contents of TheFolder as alias list
    end tell
    repeat with theFile in FileList
              set thefilename to theFile as string
              set text item delimiters to ":"
              set thefilename to last text item of thefilename --remove path
              set text item delimiters to "."
              set thefilename to first text item of thefilename --remove extension
              set acvFile to gammaFolder & thefilename & ".acv"
              tell application "Finder" to set acvExists to exists my POSIX file acvFile
              if acvExists then
                        tell application "Adobe Photoshop CS4"
      activate
      open theFile
                                  tell current document
                                            if not (exists layer "Curves 1") then
                                                      do action "Create Curve Layer" from "MyActions"
                                            end if
                                            set current layer to layer "Curves 1"
                                            do javascript "loadCurves('" & gammaFolder & thefilename & ".acv');
    function loadCurves(file) {
    -- LOAD CURVES JAVASCRIPT HERE
    };" --show debugger on runtime error
                                  end tell
                        end tell
              end if
    end repeat

Maybe you are looking for

  • How to look into a method?

    Hello all: I am wondering if there is a way to look into a method simply by its name? As we all know, we can get the detail description of most of the classes in JAVA by browsing online documentation: - API & Language Documentation - Java 2 Platform

  • User cancelled the payment run by mistake

    Hi friends user has cancelled the payment run by mistake. below is what I see on status screen on R3P Parameters have been entered Payment proposal has been created Payment run has been cancelled please let me know what should I do in order to run it

  • I need help finding an app that can take 2 pics and make into 1

    I am looking for an app for my iphone 4 or ipad that I can take two pics from my camera roll and make them into one picture so it looks like the two people are at the same place. Any help is appreciated. I have downloaded so many and none seem to hav

  • How to sort folios on Library View

    Hello: Is there a way to sort the folios in the Library? I know they appear on the library in the order you published them on the Folio Producer but wanted to know if there's a way to do it (maybe changing the cover date or something else) Saludos,

  • Update - can i get rid of it?

    Is there any way to uninstall this latest update?  it's awful....I made the mistake of installing and regret it.  too many problems to list...