Swings
Swings
A group of 14 packages to do with the UI 451 classes as at 1.4 (!) Part of JFC Java Foundation Classes (compare now defunct MFC)
Since we are evaluating user interface toolkit itself, in this case Java Swing, users will be software developers, not software users I believe that most Java developers use Eclipse as their developing platform so we will evaluate Java Swing with Eclipse based on ten usability heuristics by Jakob Nielson 1. Visibility of system status: This may be a strong advantage of Java Swing over other UI toolkits, not because of Java Swing itself is great, but because Eclipse provides such sophisticated checking on what is going on now Constantly checks for syntax errors Lists available methods or variables when press . (dot) However, you dont have synchronous result view You will have to run it in order to see the status of your program 2. Match between system and the real world: First of all, it is Java It follows Java convention It consists of 18 public packages of Java classes Its classes and methods are reasonably named Unless you are the first time programmer, you dont have to worry about its syntax or convention 3. User control and freedom : Eclipse supports strong undo and redo features You cant possibly go wrong and have to rewrite every code You can always fix it even though it may take you some effort and time Java Swing also provides undo and redo package javax.swing.event.UndoableEditEvent; javax.swing.event.UndoableEditListener; javax.swing.undo.UndoableEdit; 4. Consistency and standards : Similar to #2 Java Swing follows Java convention Packages, classes, methods, parameters, variables Mainly constructor, getter, setter 5. Error prevention : First of all, Java is a strongly typed language: primitives and objects Eclipse checks for syntax and type errors continuously It gives red underline to errors and small red box to let you know which line in document it is located If you move your mouse over the error, then it suggests possible solutions to the error
2
If you think one of the suggestions is a solution, then simply click on it to apply it Of course, it wont compile and run until you fix all the syntax errors However, you dont have any idea about runtime errors except that you will have to run it and find out 6. Recognition rather than recall : Its a programming language, so its better and faster for you if you memorize names and their functions of classes or methods However, whenever you press dot after name of package, class, or object, then eclipse provides you a list of all possible subclasses, functions and variables If you move your mouse over almost anything, then eclipse provides you with a text document associated with it, usually javadoc, or you can click on it and it directs you to online javadoc page You dont have a help of graphical interface to develop a graphical interface, so it maybe a disadvantage of Java Swing with eclipse. By the way, you can have a graphical interface if you use NetBeans IDE instead of eclipse
Eclipses support for javadoc (already covered) Conclusion :: Java Swing is easier to learn than others because its Java You can use any helpful tools out there that are for Java development like eclipse IDE, NetBeans IDE Lacks live graphical and interactive help while developing Has unlimited possibilities depending on how you implement your software
Run the GUI by instantiating the class in the classs main method