Found 16 repositories(showing 16)
rick2785
I specifically cover the following topics: Java primitive data types, declaration statements, expression statements, importing class libraries, excepting user input, checking for valid input, catching errors in input, math functions, if statement, relational operators, logical operators, ternary operator, switch statement, and looping. How class variables differ from local variables, Java Exception handling, the difference between run time and checked exceptions, Arrays, and UML Diagrams. Monsters gameboard, Java collection classes, Java ArrayLists, Linked Lists, manipulating Strings and StringBuilders, Polymorphism, Inheritance, Protected, Final, Instanceof, interfaces, abstract classes, abstract methods. You need interfaces and abstract classes because Java doesn't allow you to inherit from more than one other class. Java threads, Regular Expressions, Graphical User Interfaces (GUI) using Java Swing and its components, GUI Event Handling, ChangeListener, JOptionPane, combo boxes, list boxes, JLists, DefaultListModel, using JScrollpane with JList, JSpinner, JTree, Flow, Border, and Box Layout Managers. Created a calculator layout with Java Swing's GridLayout, GridBagLayout, GridBagConstraints, Font, and Insets. JLabel, JTextField, JComboBox, JSpinner, JSlider, JRadioButton, ButtonGroup, JCheckBox, JTextArea, JScrollPane, ChangeListener, pack, create and delete files and directories. How to pull lists of files from directories and manipulate them, write to and read character streams from files. PrintWriter, BufferedWriter, FileWriter, BufferedReader, FileReader, common file exceptions Binary Streams - DataOutputStream, FileOutputStream, BufferedOutputStream, all of the reading and writing primitive type methods, setup Java JDBC in Eclipse, connect to a MySQL database, query it and get the results of a query. JTables, JEditorPane Swing component. HyperlinkEvent and HyperlinkListener. Java JApplet, Java Servlets with Tomcat, GET and POST methods, Java Server Pages, parsing XML with Java, Java XPath, JDOM2 library, and 2D graphics. *Created a Java Paint Application using swing, events, mouse events, Graphics2D, ArrayList *Designed a Java Video Game like Asteroids with collision detection and shooting torpedos which also played sound in a JFrame, and removed items from the screen when they were destroyed. Rotating polygons, and Making Java Executable. Model View Controller (MVC) The Model is the class that contains the data and the methods needed to use the data. The View is the interface. The Controller coordinates interactions between the Model and View. DESIGN PATTERNS: Strategy design patternis used if you need to dynamically change an algorithm used by an object at run time. The pattern also allows you to eliminate code duplication. It separates behavior from super and subclasses. The Observer pattern is a software design pattern in which an object, called the subject (Publisher), maintains a list of its dependents, called observers (Subscribers), and notifies them automatically of any state changes, usually by calling one of their methods. The Factory design pattern is used when you want to define the class of an object at runtime. It also allows you to encapsulate object creation so that you can keep all object creation code in one place The Abstract Factory Design Pattern is like a factory, but everything is encapsulated. The Singleton pattern is used when you want to eliminate the option of instantiating more than one object. (Scrabble letters app) The Builder Design Pattern is used when you want to have many classes help in the creation of an object. By having different classes build the object you can then easily create many different types of objects without being forced to rewrite code. The Builder pattern provides a different way to make complex objects like you'd make using the Abstract Factory design pattern. The Prototype design pattern is used for creating new objects (instances) by cloning (copying) other objects. It allows for the adding of any subclass instance of a known super class at run time. It is used when there are numerous potential classes that you want to only use if needed at runtime. The major benefit of using the Prototype pattern is that it reduces the need for creating potentially unneeded subclasses. Java Reflection is an API and it's used to manipulate classes and everything in a class including fields, methods, constructors, private data, etc. (TestingReflection.java) The Decorator allows you to modify an object dynamically. You would use it when you want the capabilities of inheritance with subclasses, but you need to add functionality at run time. It is more flexible than inheritance. The Decorator Design Pattern simplifies code because you add functionality using many simple classes. Also, rather than rewrite old code you can extend it with new code and that is always good. (Pizza app) The Command design pattern allows you to store a list of commands for later use. With it you can store multiple commands in a class to use over and over. (ElectronicDevice app) The Adapter pattern is used when you want to translate one interface of a class into another interface. Allows 2 incompatible interfaces to work together. It allows the use of the available interface and the target interface. Any class can work together as long as the Adapter solves the issue that all classes must implement every method defined by the shared interface. (EnemyAttacker app) The Facade pattern basically says that you should simplify your methods so that much of what is done is in the background. In technical terms you should decouple the client from the sub components needed to perform an operation. (Bank app) The Bridge Pattern is used to decouple an abstraction from its implementation so that the two can vary independently. Progressively adding functionality while separating out major differences using abstract classes. (EntertainmentDevice app) In a Template Method pattern, you define a method (algorithm) in an abstract class. It contains both abstract methods and non-abstract methods. The subclasses that extend this abstract class then override those methods that don't make sense for them to use in the default way. (Sandwich app) The Iterator pattern provides you with a uniform way to access different collections of Objects. You can also write polymorphic code because you can refer to each collection of objects because they'll implement the same interface. (SongIterator app) The Composite design pattern is used to structure data into its individual parts as well as represent the inner workings of every part of a larger object. The composite pattern also allows you to treat both groups of parts in the same way as you treat the parts polymorphically. You can structure data, or represent the inner working of every part of a whole object individually. (SongComponent app) The flyweight design pattern is used to dramatically increase the speed of your code when you are using many similar objects. To reduce memory usage the flyweight design pattern shares Objects that are the same rather than creating new ones. (FlyWeightTest app) State Pattern allows an object to alter its behavior when its internal state changes. The object will appear to change its class. (ATMState) The Proxy design pattern limits access to just the methods you want made accessible in another class. It can be used for security reasons, because an Object is intensive to create, or is accessed from a remote location. You can think of it as a gate keeper that blocks access to another Object. (TestATMMachine) The Chain of Responsibility pattern has a group of objects that are expected to between them be able to solve a problem. If the first Object can't solve it, it passes the data to the next Object in the chain. (TestCalcChain) The Interpreter pattern is used to convert one representation of data into another. The context cantains the information that will be interpreted. The expression is an abstract class that defines all the methods needed to perform the different conversions. The terminal or concrete expressions provide specific conversions on different types of data. (MeasurementConversion) The Mediator design pattern is used to handle communication between related objects (Colleagues). All communication is handled by a Mediator Object and the Colleagues don't need to know anything about each other to work together. (TestStockMediator) The Memento design pattern provides a way to store previous states of an Object easily. It has 3 main classes: 1) Memento: The basic object that is stored in different states. 2) Originator: Sets and Gets values from the currently targeted Memento. Creates new Mementos and assigns current values to them. 3) Caretaker: Holds an ArrayList that contains all previous versions of the Memento. It can store and retrieve stored Mementos. (TestMemento) The Visitor design pattern allows you to add methods to classes of different types without much altering to those classes. You can make completely different methods depending on the class used with this pattern. (VisitorTest)
rahmanenjozz
Inspiration UI Java Swing design jtable
mnanda021
Part I (This is for your own exercise; there is no need to hand in the run results): 1. GUI Create the GUI programs listed in Chapter 14 and 25 of the textbook using a Java IDE tool to generate the GUI code. You may use NetBeans or Eclipse as your IDE. These IDEs can be installed from textbook CD or download from Internet. For each of the above java program, please add a Java utility class java.util.Calendar to display the date and time on the outputs. Please generate the GUI code using an IDE such as Netbean or Eclipse, do not write the GUI code yourself. 2. JDBC 1. Create the database “books” from chapter 28 of the textbook in MySQL. The instructions and sql scripts can be found either from the lecture notes or textbook CD. a. You can create your MySQL account in CS99 using the script at https://cs99.bradley.edu/~firewall/register.pl (You may need to use a version of IE or Firefox or Chrome that allows you to proceed and ignore the security warning, since CS99 HTTPS may still have some certificate issues at this time.) b. Click the MySQL Book script link to download the SQL script to create the database. You can either create the books database use the phpMyAdmin or use the following commands: $mysql –u username –p >(type in password) … mysql> source mysqlbooks.sql; 2. Create and test the JDBC programs in chapter 28. --------------------------------------------------------------------------------------------------------------------------- Part II: 1. GUI Design and develop a Book client GUI application program using NetBeans/Eclipse Java IDE tool to insert, update and delete Book data entries using stub functions (stub function is a place holder function that is empty except print out what it will do). Each group should have your unique GUI design. Please generate the GUI code using an IDE, do not write the GUI code yourself. The user interface window(s) should have as many of the following major GUI swing components (beans) as possible: Basic Controls: JLabel, JTextfield/JPasswordField, JTextArea, JCheckBox, JButton, JRadioButton/ButtonGroup, JComboBox (Drop-down list), and JList/JScrollPane. Container components: JPanel, JTabbedPane, JDialog, JMenuBar, JMenu, JMenuItem, JCheckBoxMenuItem, and JRadioButtonMenuItem. (Extra Credit) Provide user with dynamically generated database tables and a data table (JTable) to insert, update and delete data entries. 2. JDBC Develop a Java application program that implements the stub functions with sql statements against the MySQL Book database. - Use connection string “jdbc:mysql://cs99.bradley.edu:3306/s_yourLoginName” for MySQL on cs99. 1. Develop a sqlQuery function using sql Statements to query the Book database tables. Develop a sqlUpdate function using sql Prepared Statements to insert/delete/update the Book database tables. 2. Test the above functions with the Book database. 3. Two-Tier client-database System Combine the 1 and 2 into a two-tier client/database application. 1. Rewrite the JDBC code in the Java application program into a Java JDBC class. 2. Redirect the I/O in GUI from the local stub functions to the JDBC class functions. 3. Test the GUI application with the Book database.
Transcriptics
Originally taken from http://fjreport.sourceforge.net in order to refactor it. About this project: This is the free java report project ("fjreport") This project was registered on SourceForge.net on Apr 14, 2006, and is described by the project team as follows: Swing based report for java with "What You See is What You Get" graphic editor. Design a report by drawing line and setting cell properties. Paged printing facility for JTable. Also includes some useful components such as DatePicker, StatusBar.
chun337163833
Advertising Bidding System Application (Java, OO Design) • Designed and developed an advertisement exchange system using Java Swing and DB4O database.• Built enhanced UI with JTable, JTree, JFree-Charts, pages related with user profile, company workplace, ad publisher workplaceand advertisement bidding result report.Advertising Bidding System Application (Java, OO Design) 09/2013 -12/2013• Designed and developed an advertisement exchange system using Java Swing and DB4O database.• Built enhanced UI with JTable, JTree, JFree-Charts, pages related with user profile, company workplace, ad publisher workplaceand advertisement bidding result report.Designed and developed an advertisement exchange system using Java Swing and DB4O database
XeeshanAnsari
how to use Jtable in design form for it we can add,update and delete tha product name,categroy and price
Muneshdama18
Designed and developed a Library Management System using Java for backend logic and Swing (JFrame, JPanel, JTable, JButton) for the graphical user interface.
Rohitjadhav5
Created a Java Swing Book Management System with a UI-based , CRUD operations, dynamic data validation, sorting, and file-based persistence. Enabled professional PDF-style printable reports using JTable and delivered a modular, OOP-driven design.
PainnIrene
🎯Aim: This project created to learn Basic OOP in Java Programming, Try Catch exception, Reading/Writing File with ObjectInputStream/ObjectOuPutStream, Design User Interface with Swing GUI (supported by netbeans IDE). Moreover, we also learn some algorithms with JTable.
cosminadr09
Desktop application with a layered architecture which manages and processes orders. I used a relational database for storage, created a simple UI for CRUD operations, used Singleton design pattern to implement the database connection. Technologies: Java, MySQL database, JTables.
ayesh156
Java Swing Add Details to Table Project: This repository showcases a Java Swing application for dynamically adding details to a JTable. It includes GUI design, event handling for data insertion, and demonstrates best practices for managing and updating table data in Java Swing applications
laiba7826
A Student Record Manager built in Java using Swing. It allows users to add, delete, and manage student records through a user-friendly GUI with JTable integration. Data is stored via file handling instead of an external database. The project highlights OOP, GUI design, and problem-solving skills.
cosminadr09
Desktop application which manages different types of accounts for its clients. I created a simple UI to view CRUD operations using a JTable, used a hashtable to store the clients and their accounts, used contract programming techniques and Observer design pattern to notifty the owner of the account about any changes.
Pietro-G
Sumer_Experience Explorer is an applet that has four main functionalities and over 14 classes that fulfill many roughly 20 different user stories. The four main tasks of our program are creating and populating an SQL database, reading the relevant database information into JTables, creating and showing a GUI, and allowing a user to use the GUI to search through and filter the data in the database. The program shocases different design patterns such as: Strategies, Singleton, and Command design patterns.
Omar-Hosny1
An application that any library can use to store their books data in a MYSQL database The application has login form & sign up form to add a new user for the app or login to update or add data We had used JTable class to store our data in a table We had used KGradientPanel package to make the design more professional The application after dealing with customer you can use the application to store the operation 'receipt' in txt file by clicking on save button by File Writer class and the receipt will contain the operation , the total price , the name of the person who had done this operation and the time of this operation languages used: Java ☕, SQL IDE: Eclipse👨🏻💻 DBMS: MYSQL 🐬
alexpereanu
Consider implementing a restaurant management system. The system should have three types of users: administrator, waiter and chef. The administrator can add, delete and modify existing products from the menu. The waiter can create a new order for a table, add elements from the menu, and compute the bill for an order. The chef is notified each time it must cook food ordered through a waiter. Consider the system of classes in the diagram below. To simplify the application you may assume that the system is used by only one administrator, one waiter and one chef, and there is no need of a login process. Solve the following: 1. Define the interface RestaurantProcessing containing the main operations that can be executed by the waiter or the administrator, as follows: • Administrator: create new menu item, delete menu item, edit menu item • Waiter: create new order; compute price for an order; generate bill in .txt format. 2. Define and implement the classes from the class diagram shown above: • Use the Composite Design Pattern for defining the classes MenuItem, BaseProduct and CompositeProduct • Use the Observer Design Pattern to notify the chef each time a new order containing a composite product is added. 3. Implement the class Restaurant using a predefined JCF collection which uses a hashtable data structure. The hashtable key will be generated based on the class Order, which can have associated several MenuItems. Use JTable to display Restaurant related information. • Define a structure of type Map> for storing the order related information in the Restaurant class. The key of the Map will be formed of objects of type Order, for which the hashCode() method will be overwritten to compute the hash value within the Map from the attributes of the Order (OrderID, date, etc.) • Define a structure of type Collection which will save the menu of the restaurant. Choose the appropriate collection type for your implementation. • Define a method of type “well formed” for the class Restaurant. • Implement the class using Design by Contract method (involving pre, post conditions, invariants, and assertions). 4. The menu items for populating the Restaurant object will be loaded/saved from/to a file using Serialization.
All 16 repositories loaded