Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Why should a programmer follow GUI standards in programming the user interface?

  1. #1
    Junior Member
    Join Date
    Jun 2014
    Posts
    29
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Why should a programmer follow GUI standards in programming the user interface?

    I am new when it comes to the GUI interface and I am trying to understand it. Regarding my question, is it because the programmer should be clear and specific, such as using verbs that indicate the action following the user's choice? As well as fitting the appearance of the UI to the user environment? I.e. a game, web page, professional, children etc.? As well as reducing the learning curve.

    And would a simple example be if the user closes out the program or interface, display a friendly message box asking "Are you sure you want to exit?"


  2. #2
    Member Ada Lovelace's Avatar
    Join Date
    May 2014
    Location
    South England UK
    Posts
    411
    My Mood
    Angelic
    Thanks
    27
    Thanked 61 Times in 55 Posts

    Default Re: Why should a programmer follow GUI standards in programming the user interface?

    One of the main reasons goes back to the UML (Unified Modelling Language). An application would be
    broken into sections and verbs were used to form class or object names. There really is no "standard"
    way to create a GUI in the sense you can pick your own names for things (as long as you use the syntax for
    labels and panels 'JOptionsPane' for example).

    Also, the type of verbs and personal standards you use should generally follow the theme of the GUI your a building
    as closely as possible - be it using Swing Awt or even ACM. Application development is all about planning, logic and
    algorithm - what works well for one person may not work well for another. The standard guidelines for any program,
    be it GUI or console application - are there to re-enforce good principles and better software engineering. It is down to
    you, the programmer, to decide if you want to follow such guides. The compiler couldn't care less either way as long as
    the syntax is correct

    Wishes Ada xx
    If to Err is human - then programmers are most human of us all.
    "The Analytical Engine offers a new, a vast, and a powerful language . . .
    for the purposes of mankind
    ."
    Augusta Ada Byron, Lady Lovelace (1851)

  3. The Following 2 Users Say Thank You to Ada Lovelace For This Useful Post:

    Caffeine (July 14th, 2014), GregBrannon (July 14th, 2014)

  4. #3
    Junior Member
    Join Date
    Jun 2014
    Posts
    29
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Re: Why should a programmer follow GUI standards in programming the user interface?

    So it just comes down to the programmer and as long as you follow the syntax? Interesting. Thanks Ada, much more understanding now

  5. #4
    Forum VIP
    Join Date
    Jun 2011
    Posts
    339
    My Mood
    Busy
    Thanks
    48
    Thanked 104 Times in 87 Posts
    Blog Entries
    5

    Default Re: Why should a programmer follow GUI standards in programming the user interface?

    Conventions exist for two very good reasons; you and the other guy. It might be amusing to through all manner of craziness into your code but when it comes to maintenance you will wish you had stuck to the tried and true methodology. As someone maintaining an iOS app that was designed by a room full of schizophrenic parrots; please, please please stick to the standards of your language and platform.

Similar Threads

  1. calculation in GUI interface
    By noone in forum What's Wrong With My Code?
    Replies: 6
    Last Post: May 13th, 2014, 05:18 PM
  2. please assist me to run this code in a java Graphical User Interface
    By Mikonkidial in forum What's Wrong With My Code?
    Replies: 3
    Last Post: November 15th, 2013, 06:17 AM
  3. Blackjack programming error (programmer is new to programming)
    By JSingh in forum What's Wrong With My Code?
    Replies: 4
    Last Post: September 27th, 2012, 09:13 PM
  4. User Interface Problems
    By pmg in forum What's Wrong With My Code?
    Replies: 6
    Last Post: April 4th, 2011, 07:32 AM
  5. Problem while implementing a basic user interface menu
    By Rastabot in forum File I/O & Other I/O Streams
    Replies: 3
    Last Post: April 3rd, 2009, 04:38 PM