Question:
What is a GUI based program ?
YouThinkYouKnowMe
2011-09-21 05:50:34 UTC
Pls tell me what is it in short. what is it used for and how is it different from other forms of programming?
Is java is a GUI based program or not ?
Nine answers:
Red
2011-09-21 06:06:54 UTC
A GUI based application is one that has a graphical user interface -- in layman's terms a GUI program is a "windows" program, as opposed to an "MS-DOS" or "shell" program. GUI programs, such as word processors or web browsers, are based around interaction with the user. Shell programs, such as MS-DOS's "DIR" or Linux's "chmod", tend to be given something to do via their "command line arguments" then end when they've done it.



"Java" is a programming language with accompanying programming libraries that can be used to write all manner of different types of application for internet server computers, desktop/laptop computers, and even phones. Through it's AWT, Swing and JavaFX libraries it can create GUI programs for Windows, Linux and Mac OS-X.



--



@garrysurrey : small point -- the JVM doesn't process UI events; that's part of the AWT native code JavaSE loads if AWT is referenced.
garrysurrey
2011-09-21 05:53:07 UTC
Graphical user interface programming is inherently more complex than ordinary applications programming because the graphical interface computation is driven by a stream of graphical input actions. All of the input actions performed by a program user including moving the mouse, clicking a mouse button, and typing a keystroke are processed by code in the computer operating system. This code determines when an input action of potential interest to the application occurs. Such an input action is called an ``event''. Typically mouse movement alone does not constitute an event; the operating system updates the position of the cursor on the screen as the mouse is moved. When a mouse button is clicked or a key is typed, the operating system interrupts the application program and informs it that the specified event has occurred. The Java virtual machine includes an event monitor that processes these interruptions. This event processing code filters input events just as the operating system code filters inputs. For some events such as typing a key (other than return), the Java event monitor simply echoes the character on the screen in the appropriate place. For other events such as a mouse click on a button, the Java event monitor generates a program Event object that it places on a queue of pending Events for processing by the running Java program.
jplatt39
2011-09-21 06:24:23 UTC
A gui-based program is a program which has a graphic user interface. Java is a gui based LANGUAGE but the actually java executable is generally not called from a window with a mouse click. The PROGRAM Java is not GUI-based.
koppe74
2011-09-21 06:27:18 UTC
GUI = Graphical User Interface as opposed to old-fashion CLI = Command Line Interface



All Windows-programs (and X programs under Unix/Linux) are GUI-programs. GUI-programs are programs where you use a pointer (ie. the mouse) to give commands to the program, by clicking buttons, menus, check-boxes and drop-down lists and so on.



This is different from a "terminal" (CLI) program, where you typically gives orders to the program either at start-up or by typing keys at the keyboard. It may be you get a menu and type in a number or letter based on that menu (which may bring forth another menu of choices), or it may be you write more complex commands that the program parses.



Java is a programming-language, so it's neither. You may write both GUI and CLI programs in Java. Odds are the the editor or IDE you write your programs in are GUI. (The actual Java-compiler is CLI, as it just takes options and arguments on the command-line and goes to work without more interacting.)



In Java you can write both simple CLI-programs that are run in the command-prompt (you'll probably do this for your first simple programs)... but you can also write fully featured GUI-programs, as Java includes widgets (thats buttons, check-boxes, radio-buttons and so on) you can use in your programs.



A huge difference between a CLI and GUI is what it does when it waits for a user command. CLI-programs will usually just stop and wait -- pause -- until the user type a key or press enter.



GUI-programs on the other hand, usually runs an "idle loop". During this loop, it constantly checks if an event -- like a key being pressed, the mouse being moved or the mouse being clicked -- has occured. If it has, it checks if it applies to it (the program), and if it does, it calls a program corresponding to the that particular event for that particular widget (e.g. ButtonStart was clicked or CheckBoxRandom was checked).



Because of the difference between just waiting (CLI) and having to constantly check if something has happened (GUI), GUI-programs uses more resources even when they appear to do nothing. On top of that, GUI-programs must redraw -- and occationally reporocess -- parts of themselves, if things happens, like another window being moved over it.
madcama
2011-09-21 05:54:54 UTC
GUI based program is computer application that user controls with mouse. It can be also controlled with keyboard.

Java is programing language, created by Sun Microsystems (now owned by Oracle). And yes, with java you can build GUI based programs.
skhr
2011-09-21 06:30:21 UTC
GUI graphical user interface : there wil always two types of views for any software and programme , you can view the information with the binary system using command prompt or u can view d information in graphical format using any app lik ie .for example when we ping websites we get d info about the website responding or opening on d pc sme way u can use ie to pull up ur webpage.
?
2016-10-07 08:36:05 UTC
What Is A Gui
anonymous
2016-04-11 04:48:38 UTC
For the best answers, search on this site https://shorturl.im/aw17H



gtk++ is available as well, which enables your application to be compiled on either Windows or Unix (of course assuming you don't have any Windows specific library function calls in your code).
anonymous
2011-09-21 08:40:53 UTC
GUI means graphical user interface.!! GUI proggramming is quite tuff ..!! bcoz proper x dimensions an y dimesndins shuld be matched..


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...