Page 1 of 2 12 LastLast
Results 1 to 20 of 28
Like Tree2Likes

Thread: How to periodically savew my work

  1. #1
    alan2 is offline Member
    Join Date
    Mar 2013
    Posts
    44
    Rep Power
    0

    Default How to periodically savew my work

    Working through learnning course and it's becoming clear!

    However, I am used to saving my work frequently so that I don't lose it if eg the machine hangs up. I find the save, save all and save as frequently are greyed out. Is there a shortcut for saving the project so far which I can use frequently as I develop?

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    3,771
    Rep Power
    5

    Default Re: How to periodically savew my work

    I don't want to be rude but what does this have to do with Java?

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #3
    alan2 is offline Member
    Join Date
    Mar 2013
    Posts
    44
    Rep Power
    0

    Default Re: How to periodically savew my work

    Hi Jim

    I thought my question was self-explanatory! I am developing projects as a beginner (exercises in a course). I want to save what I am doing now and then so that I don't lose my work if the computer hangs up. How do I do this when I am developing Java projcets?

  4. #4
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    3,771
    Rep Power
    5

    Default Re: How to periodically savew my work

    This has nothing to do with Java. This has to do with whatever editor or IDE you are using!

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  5. #5
    alan2 is offline Member
    Join Date
    Mar 2013
    Posts
    44
    Rep Power
    0

    Default Re: How to periodically savew my work

    Yes, understood! Allow a raw beginner of 73 some blind spots! Perhaps I should have mentioned that I am using Netbeans. I am quite familiar with saving my work periodically on all other platforms, eg Word, Visual Basic 6, dot.net, etc.

  6. #6
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    3,771
    Rep Power
    5

    Default Re: How to periodically savew my work

    Well, I can't help you since I don't use NetBeans. There is a forum on this site for NetBeans questions. But do not double post to that forum. The moderators will probably move it for you.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  7. #7
    ritesh is offline Member
    Join Date
    Mar 2013
    Posts
    1
    Rep Power
    0

    Default Re: How to periodically savew my work

    I use Netbeans too, I believe it intelligently "auto-saves" at compilation and as you type. However, if there's a problem with your code (stopping it from compiling) but want to save anyway will you see "Save", "Save As" and "Save All" in the File Menu.

  8. #8
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    760
    Rep Power
    8

    Default Re: How to periodically savew my work

    I guess modern IDE will autosave your work before any compilation started. In your case what makes your computer hangs up? If your code then it mean everything should be saved by the IDE before you run the program. If not maybe there is a problem with your current computer configuration. Do you have enough RAM installed for example?

  9. #9
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

  10. #10
    alan2 is offline Member
    Join Date
    Mar 2013
    Posts
    44
    Rep Power
    0

    Default Re: How to periodically savew my work

    Thanks all and thanks for putting up with me Jim! Looking at the folders it does seem that Netbeans does autosave. BTW, ample RAM. Homebuilt machine. I'll probably pester the Netbeans newsgroup. I'll probably be programming mostly using swing as my projects in vb6 that I'd like to port are all form based.

    Cheers and thanks again

  11. #11
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,407
    Rep Power
    20

    Default Re: How to periodically savew my work

    Quote Originally Posted by alan2 View Post
    I'll probably be programming mostly using swing
    A word of friendly advice: play with the visual designer by all means, but don't use it for anything serious until you're capable of hand rolling a functional GUI (i.e. by writing code). By which time you'll find the visual designer much less attractive, and may not want to invest the time to learn its quirks.

    db
    Fubarable likes this.
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  12. #12
    alan2 is offline Member
    Join Date
    Mar 2013
    Posts
    44
    Rep Power
    0

    Default Re: How to periodically savew my work

    Quote Originally Posted by DarrylBurke View Post
    A word of friendly advice: play with the visual designer by all means, but don't use it for anything serious until you're capable of hand rolling a functional GUI (i.e. by writing code). By which time you'll find the visual designer much less attractive, and may not want to invest the time to learn its quirks.

    db
    I appreciate the sentiments but time is rather of the issue here. In vb6 I worked almost exclusively with the form designer, coding as necessary in between generated code. This was a much more efficient way of working, in which my task was to produce a working accounting package rather than pure programming for programming's sake! As a one time coder in a number of much earlier and cruder languages (producing financial software that sold and worked (always a good comnination!)), it seems to me that the idea of cold rolling all the code to produce a working GUI-based application is taking several steps backwards. After all, we do not code in machine language any more, pure though it may be. So I'd like to persist with Swing. I am learning Java not for any theoretical exercise but specifically to eventually port my (now quite large) accounting application that in daily business use to a language which is independent of Micro$oft! And then maybe to move on to producing or porting other applications.

  13. #13
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,407
    Rep Power
    20

    Default Re: How to periodically savew my work

    Quote Originally Posted by alan2 View Post
    ... time is rather of the issue here.
    I don't think anyone who hasn't first learned to hand-code a fully functional Swing GUI can actually save time by using the designer. Unlike a VB6 (or VFP6, with which I have quite a bit of experience) 'form' and 'control' a Swing component doesn't have the same set of methods, events and properties; responding to events is done by various listeners, each a separate class, added to the components and/or their models. Oh, and in VB6/VFP6, the main form usually *is* the application; not so in Java, though the visual designer may lead you down that path, with an associated large-scale refactoring once you are sufficiently familiar with Java.

    As I've often said here, it is my stand that learning the quirks of the designer is only worthwhile for someone intending to make a career of designing Swing GUIs. And with the fast-maturing JavaFX2 already integrated into the JDK and JRE, who would that be?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  14. #14
    alan2 is offline Member
    Join Date
    Mar 2013
    Posts
    44
    Rep Power
    0

    Default Re: How to periodically savew my work

    Thanks for the reply. Appreciated. My end application, from the user's point of view, will certainly consist only of forms (and printed reports by the way -- that is another story!) as it does now. Maybe I'm looking at a language inherently unsuitable for business applications and more suited to coders for coding's sake? VFP6? I don't know it, but assume you are familiar with VB6?

  15. #15
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,087
    Rep Power
    20

    Default Re: How to periodically savew my work

    If you want to avoid creating by hand, then frankly go for JavaFX 2.
    It's a more modern take on how to build a GUI and, unlike Swing, it is built with builders in mind (JavaFX "screens" are defined in XML).

    It is mature enough for almost anything you'd be wanting to throw at it.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  16. #16
    alan2 is offline Member
    Join Date
    Mar 2013
    Posts
    44
    Rep Power
    0

    Default Re: How to periodically savew my work

    Is JavaFX 2 an alternative IDE?

  17. #17
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,087
    Rep Power
    20

    Default Re: How to periodically savew my work

    No, it's the replacement for Swing.
    It's incorporated into Java 7 now (I'm pretty sure anyway).
    And it's built with graphical builders in mind (hence the use of XML).

    Netbeans has plugins for it.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  18. #18
    alan2 is offline Member
    Join Date
    Mar 2013
    Posts
    44
    Rep Power
    0

    Default Re: How to periodically savew my work

    Thanks. I will look into this.

  19. #19
    alan2 is offline Member
    Join Date
    Mar 2013
    Posts
    44
    Rep Power
    0

    Default Re: How to periodically savew my work

    Probably I'll need to start a new thread, but re FX2, it appears that this is for web based applications. I don't want that. I want to create an accounting application that runs on a standalone desktop machine and is form based.

  20. #20
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,407
    Rep Power
    20

    Default Re: How to periodically savew my work

    Quote Originally Posted by alan2 View Post
    Thanks for the reply. Appreciated. My end application, from the user's point of view, will certainly consist only of forms (and printed reports by the way -- that is another story!) as it does now.
    I added emphasis. What an application is from the user's viewpoint isn't necessarily what it is from the programmer's viewpoint. To better understand the 'Java way' of tackling a forms-based application, search the net for MVC (Model-View-Controller).

    Quote Originally Posted by alan2 View Post
    Maybe I'm looking at a language inherently unsuitable for business applications and more suited to coders for coding's sake? VFP6? I don't know it, but assume you are familiar with VB6?
    No, you're looking at an object oriented language, with the attendant separation of responsibilities, abstraction and encapsulation.

    I've played around a little with VB6 but not enough to say I'm familiar with it. VFP6 and its predecessors, starting with dBaseIII+ ... those I used for almost 20 years, creating small applications that made life easier wherever I worked (I'm not a programmer).

    Is JavaFX 2 an alternative IDE?
    JavaFX Documentation Home | JavaFX 2 Tutorials and Documentation

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 2
    Last Post: 11-25-2012, 02:51 AM
  2. Why. Does. This. Not. Work.
    By Kaytes in forum New To Java
    Replies: 1
    Last Post: 04-06-2012, 07:50 PM
  3. applet call dll work in Win2000 but not work in WinXP
    By manhcuongtin4 in forum Java Applets
    Replies: 1
    Last Post: 07-14-2011, 01:45 PM
  4. Server/clients connection periodically
    By akis3110 in forum New To Java
    Replies: 4
    Last Post: 06-28-2011, 03:03 PM
  5. Cant seem to get this to work
    By nivekeleets in forum Java 2D
    Replies: 4
    Last Post: 11-13-2010, 07:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •