├── .gitignore
├── Ex01-creatingAwindow
├── build.xml
├── build
│ └── classes
│ │ ├── .netbeans_automatic_build
│ │ ├── .netbeans_update_resources
│ │ └── ex01
│ │ └── creatingawindow
│ │ ├── CenteringWindow.class
│ │ ├── ColorAndCursor.class
│ │ ├── Ex01CreatingAwindow.class
│ │ ├── ResiingWindow.class
│ │ ├── TryWindow$1.class
│ │ ├── TryWindow.class
│ │ └── TryWindow.form
├── manifest.mf
├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── private
│ │ └── private.properties
│ ├── project.properties
│ └── project.xml
└── src
│ └── ex01
│ └── creatingawindow
│ ├── CenteringWindow.java
│ ├── ColorAndCursor.java
│ ├── Ex01CreatingAwindow.java
│ ├── ResiingWindow.java
│ ├── TryWindow.form
│ └── TryWindow.java
├── HotelReservation
└── pom.xml
├── JFrameFullScreenMode
├── build.xml
├── manifest.mf
├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── project.properties
│ └── project.xml
└── src
│ └── com
│ └── coderbd
│ └── swing
│ ├── Test.form
│ └── Test.java
├── JFrameMenu
├── build.xml
├── manifest.mf
├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── project.properties
│ └── project.xml
└── src
│ └── com
│ └── coderbd
│ └── swing
│ ├── CommonMenu.java
│ ├── JFrameMain.form
│ ├── JFrameMain.java
│ ├── JFrameOne.form
│ ├── JFrameOne.java
│ ├── JFrameThree.form
│ ├── JFrameThree.java
│ ├── JFrameTwo.form
│ └── JFrameTwo.java
├── JavaApplication12
├── build.xml
├── manifest.mf
├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── project.properties
│ └── project.xml
└── src
│ └── javaapplication12
│ ├── GenerateUniqueNumber.java
│ └── JavaApplication12.java
├── JavaApplication13
├── build.xml
├── manifest.mf
├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── project.properties
│ └── project.xml
└── src
│ └── javaapplication13
│ └── JavaApplication13.java
├── PlayingwithImages
├── build.xml
├── manifest.mf
├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── project.properties
│ └── project.xml
└── src
│ └── com
│ └── coderbd
│ ├── conn
│ ├── MySqlDbConnection.java
│ └── TestMySqlConnection.java
│ ├── createtable
│ └── TestCreateTable.java
│ ├── domain
│ ├── TestImageDomainClass.java
│ └── service
│ │ └── TestService.java
│ └── ex1
│ ├── ImageUpload1.java
│ ├── PicturePanel.java
│ ├── sayonti.png
│ └── sejuti.jpg
├── PointOfSale
├── build.xml
├── doc
│ └── Point of Sale(POS), Desktop Application (1).txt
├── manifest.mf
├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── project.properties
│ └── project.xml
└── src
│ └── com
│ └── coderbd
│ ├── common
│ ├── MenuForAuditor.java
│ ├── MenuForBranchManager.java
│ ├── MenuForGm.java
│ ├── MenuForHR.java
│ ├── MenuForOperator.java
│ ├── MenuForSalesMan.java
│ ├── MenuForSalesManager.java
│ └── MenuForSuperAdmin.java
│ ├── util
│ └── MenuMangement.java
│ └── view
│ ├── BranchView.form
│ ├── BranchView.java
│ ├── BrandView.form
│ ├── BrandView.java
│ ├── CategoryView.form
│ ├── CategoryView.java
│ ├── ChangePassView.form
│ ├── ChangePassView.java
│ ├── CompanyView.form
│ ├── CompanyView.java
│ ├── Dashboard.form
│ ├── Dashboard.java
│ ├── EmployeeView.form
│ ├── EmployeeView.java
│ ├── LoginView.form
│ ├── LoginView.java
│ ├── ManualAttendance.form
│ ├── ManualAttendance.java
│ ├── OfferView.form
│ ├── OfferView.java
│ ├── OrderView.form
│ ├── OrderView.java
│ ├── ProductIssueView.form
│ ├── ProductIssueView.java
│ ├── ProductPurchaseView.form
│ ├── ProductPurchaseView.java
│ ├── ProductRecieveView.form
│ ├── ProductRecieveView.java
│ ├── ProductTypeView.form
│ ├── ProductTypeView.java
│ ├── ProfileView.form
│ ├── ProfileView.java
│ ├── RackView.form
│ ├── RackView.java
│ ├── SalesView.form
│ ├── SalesView.java
│ ├── UserRegiView.form
│ ├── UserRegiView.java
│ ├── dashboard
│ ├── DashboardForAuditor.form
│ ├── DashboardForAuditor.java
│ ├── DashboardForBM.form
│ ├── DashboardForBM.java
│ ├── DashboardForGM.form
│ ├── DashboardForGM.java
│ ├── DashboardForHR.form
│ ├── DashboardForHR.java
│ ├── DashboardForOperator.form
│ ├── DashboardForOperator.java
│ ├── DashboardForSalesman.form
│ ├── DashboardForSalesman.java
│ ├── DashboardForSalesmanger.form
│ ├── DashboardForSalesmanger.java
│ ├── DashboardForSuperAdmin.form
│ └── DashboardForSuperAdmin.java
│ └── inventory
│ ├── BranchProductSummaryView.form
│ ├── BranchProductSummaryView.java
│ ├── ProductStockSummaryView.form
│ ├── ProductStockSummaryView.java
│ ├── TotalProductSummaryView.form
│ └── TotalProductSummaryView.java
├── README.md
├── WorkingWithList
├── build.xml
├── manifest.mf
├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── project.properties
│ └── project.xml
└── src
│ └── com
│ └── coderbd
│ ├── conn
│ ├── MySqlDbConnection.java
│ └── TestMySqlConnection.java
│ └── service
│ ├── TestService.java
│ ├── domain
│ └── Country.java
│ └── view
│ ├── TestFormList.form
│ └── TestFormList.java
├── dbConnection
├── build.xml
├── build
│ ├── built-jar.properties
│ └── classes
│ │ └── com
│ │ └── coderbd
│ │ └── connection
│ │ └── DbConnection.class
├── dist
│ └── dbConnection.jar
├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── private
│ │ ├── config.properties
│ │ ├── private.properties
│ │ └── private.xml
│ ├── project.properties
│ └── project.xml
└── src
│ └── com
│ └── coderbd
│ └── connection
│ └── DbConnection.java
├── lms
├── build.xml
├── lib
│ └── mysql-connector-java-5.1.6.jar
├── lms.sql
├── manifest.mf
├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── project.properties
│ └── project.xml
└── src
│ └── com
│ └── coderbd
│ └── lms
│ ├── connection
│ ├── DbConnection.java
│ └── Test.java
│ ├── dao
│ ├── AuthorDao.java
│ ├── BookCategoryDao.java
│ ├── BookDao.java
│ ├── BookIssueDao.java
│ ├── BookRecieveDao.java
│ ├── BookSummaryDao.java
│ ├── Departmentdao.java
│ ├── EditionDao.java
│ ├── InstituteDao.java
│ ├── PublisherDao.java
│ ├── SessonDao.java
│ ├── ShiftDao.java
│ ├── StudentDao.java
│ └── UserDao.java
│ ├── domain
│ ├── Author.java
│ ├── Book.java
│ ├── BookCategory.java
│ ├── BookIssue.java
│ ├── BookReceive.java
│ ├── BookSummary.java
│ ├── Department.java
│ ├── Edition.java
│ ├── Institute.java
│ ├── Publisher.java
│ ├── Sesson.java
│ ├── Shift.java
│ ├── Student.java
│ └── User.java
│ ├── service
│ ├── AuthorService.java
│ ├── BookCategoryService.java
│ ├── BookIssueService.java
│ ├── BookReceiveService.java
│ ├── BookService.java
│ ├── BookSummaryService.java
│ ├── DepartmentService.java
│ ├── EditionService.java
│ ├── InstituteService.java
│ ├── PublisherService.java
│ ├── SessonService.java
│ ├── ShiftService.java
│ ├── StudentService.java
│ └── UserService.java
│ └── view
│ ├── LmsAuthor.form
│ ├── LmsAuthor.java
│ ├── LmsBookCategory.form
│ ├── LmsBookCategory.java
│ ├── LmsBookIssue.form
│ ├── LmsBookIssue.java
│ ├── LmsBookReceive.form
│ ├── LmsBookReceive.java
│ ├── LmsBookSummary.form
│ ├── LmsBookSummary.java
│ ├── LmsDashboard.form
│ ├── LmsDashboard.java
│ ├── LmsDepartment.form
│ ├── LmsDepartment.java
│ ├── LmsEdition.form
│ ├── LmsEdition.java
│ ├── LmsInstitute.form
│ ├── LmsInstitute.java
│ ├── LmsPublisher.form
│ ├── LmsPublisher.java
│ ├── LmsPurchaseBook.form
│ ├── LmsPurchaseBook.java
│ ├── LmsSesson.form
│ ├── LmsSesson.java
│ ├── LmsShift.form
│ ├── LmsShift.java
│ ├── LmsStudent.form
│ ├── LmsStudent.java
│ ├── LmsUser.form
│ ├── LmsUser.java
│ ├── LoginForm.form
│ └── LoginForm.java
├── oracle
├── build.xml
├── build
│ └── classes
│ │ ├── .netbeans_automatic_build
│ │ ├── .netbeans_update_resources
│ │ └── oracle
│ │ └── Oracle.class
├── manifest.mf
├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── private
│ │ ├── private.properties
│ │ └── private.xml
│ ├── project.properties
│ └── project.xml
└── src
│ └── oracle
│ └── Oracle.java
├── round-39
├── commonMenu
│ ├── build.xml
│ ├── manifest.mf
│ ├── nbproject
│ │ ├── build-impl.xml
│ │ ├── genfiles.properties
│ │ ├── project.properties
│ │ └── project.xml
│ └── src
│ │ └── com
│ │ └── coderbd
│ │ ├── util
│ │ └── CommonMenu.java
│ │ └── view
│ │ ├── About.form
│ │ ├── About.java
│ │ ├── Dashboard.form
│ │ ├── Dashboard.java
│ │ ├── Login.form
│ │ └── Login.java
├── displayAtTableFromForm
│ ├── build.xml
│ ├── manifest.mf
│ ├── nbproject
│ │ ├── build-impl.xml
│ │ ├── genfiles.properties
│ │ ├── project.properties
│ │ └── project.xml
│ └── src
│ │ └── com
│ │ └── coderbd
│ │ ├── Demo.form
│ │ └── Demo.java
├── pga
│ ├── build.xml
│ ├── manifest.mf
│ ├── nbproject
│ │ ├── build-impl.xml
│ │ ├── genfiles.properties
│ │ ├── project.properties
│ │ └── project.xml
│ └── src
│ │ └── com
│ │ └── coderbd
│ │ └── view
│ │ ├── ImageUpload1.java
│ │ ├── ImageUtil.java
│ │ ├── NewJFrame.form
│ │ └── NewJFrame.java
├── preEvidence
│ ├── build.xml
│ ├── manifest.mf
│ ├── nbproject
│ │ ├── build-impl.xml
│ │ ├── genfiles.properties
│ │ ├── project.properties
│ │ └── project.xml
│ └── src
│ │ └── com
│ │ └── coderbd
│ │ └── view
│ │ ├── Demo.form
│ │ └── Demo.java
├── swing-ex1
│ ├── build.xml
│ ├── lib
│ │ └── mysql-connector-java-5.1.6.jar
│ ├── manifest.mf
│ ├── nbproject
│ │ ├── build-impl.xml
│ │ ├── genfiles.properties
│ │ ├── project.properties
│ │ └── project.xml
│ ├── src
│ │ └── com
│ │ │ └── coderbd
│ │ │ ├── DbConnection.java
│ │ │ ├── Demo.form
│ │ │ ├── Demo.java
│ │ │ ├── Sowkot.form
│ │ │ ├── Sowkot.java
│ │ │ ├── TestDbCon.java
│ │ │ └── arefin.png
│ └── test.png
└── swingjdbcBasic
│ ├── build.xml
│ ├── manifest.mf
│ ├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── project.properties
│ └── project.xml
│ └── src
│ └── com
│ └── coderbd
│ ├── connection
│ ├── DblConnection.java
│ └── TestDBConnect.java
│ ├── createtable
│ ├── CreateStudentTable.java
│ └── Test.java
│ ├── pojo
│ └── Student.java
│ ├── service
│ ├── CommonDAO.java
│ ├── StudentService.java
│ └── Test.java
│ └── view
│ ├── StudentView.form
│ └── StudentView.java
├── round-43
├── JavaApplication10
│ ├── build.xml
│ ├── habib.txt
│ ├── manifest.mf
│ ├── nbproject
│ │ ├── build-impl.xml
│ │ ├── genfiles.properties
│ │ ├── project.properties
│ │ └── project.xml
│ └── src
│ │ └── com
│ │ └── coderbd
│ │ ├── Example1.form
│ │ ├── Example1.java
│ │ ├── Student.java
│ │ └── Utils.java
├── mysqldbconnection
│ ├── build.xml
│ ├── lib
│ │ └── ojdbc6.jar
│ ├── manifest.mf
│ ├── nbproject
│ │ ├── build-impl.xml
│ │ ├── genfiles.properties
│ │ ├── project.properties
│ │ └── project.xml
│ └── src
│ │ └── com
│ │ └── coderbd
│ │ ├── conn
│ │ └── DbConnection.java
│ │ └── test
│ │ └── Test.java
├── pms
│ ├── build.xml
│ ├── build
│ │ ├── built-jar.properties
│ │ └── classes
│ │ │ ├── .netbeans_automatic_build
│ │ │ ├── .netbeans_update_resources
│ │ │ └── com
│ │ │ └── coderbd
│ │ │ └── view
│ │ │ ├── CommonMenu$1.class
│ │ │ ├── CommonMenu$2.class
│ │ │ ├── CommonMenu$3.class
│ │ │ ├── CommonMenu$4.class
│ │ │ ├── CommonMenu$5.class
│ │ │ ├── CommonMenu$6.class
│ │ │ ├── CommonMenu$7.class
│ │ │ ├── CommonMenu.class
│ │ │ ├── DashBoardView$1.class
│ │ │ ├── DashBoardView.class
│ │ │ ├── DashBoardView.form
│ │ │ ├── LoginView$1.class
│ │ │ ├── LoginView$2.class
│ │ │ ├── LoginView$3.class
│ │ │ ├── LoginView.class
│ │ │ ├── LoginView.form
│ │ │ ├── NewJFrame$1.class
│ │ │ ├── NewJFrame.class
│ │ │ ├── NewJFrame.form
│ │ │ ├── ProductCategoryView$1.class
│ │ │ ├── ProductCategoryView.class
│ │ │ ├── ProductCategoryView.form
│ │ │ ├── ProductView$1.class
│ │ │ ├── ProductView.class
│ │ │ ├── ProductView.form
│ │ │ ├── PurchaseView$1.class
│ │ │ ├── PurchaseView.class
│ │ │ ├── PurchaseView.form
│ │ │ ├── RegisterView$1.class
│ │ │ ├── RegisterView$2.class
│ │ │ ├── RegisterView.class
│ │ │ ├── RegisterView.form
│ │ │ ├── ReportView$1.class
│ │ │ ├── ReportView.class
│ │ │ ├── ReportView.form
│ │ │ ├── SalesView$1.class
│ │ │ ├── SalesView.class
│ │ │ ├── SalesView.form
│ │ │ ├── SummaryView$1.class
│ │ │ ├── SummaryView.class
│ │ │ ├── SummaryView.form
│ │ │ ├── ic.png
│ │ │ └── logo.png
│ ├── dist
│ │ ├── README.TXT
│ │ └── pms.jar
│ ├── manifest.mf
│ ├── nbproject
│ │ ├── build-impl.xml
│ │ ├── genfiles.properties
│ │ ├── private
│ │ │ ├── config.properties
│ │ │ ├── private.properties
│ │ │ └── private.xml
│ │ ├── project.properties
│ │ └── project.xml
│ └── src
│ │ └── com
│ │ └── coderbd
│ │ └── view
│ │ ├── CommonMenu.java
│ │ ├── DashBoardView.form
│ │ ├── DashBoardView.java
│ │ ├── LoginView.form
│ │ ├── LoginView.java
│ │ ├── NewJFrame.form
│ │ ├── NewJFrame.java
│ │ ├── ProductCategoryView.form
│ │ ├── ProductCategoryView.java
│ │ ├── ProductView.form
│ │ ├── ProductView.java
│ │ ├── PurchaseView.form
│ │ ├── PurchaseView.java
│ │ ├── RegisterView.form
│ │ ├── RegisterView.java
│ │ ├── ReportView.form
│ │ ├── ReportView.java
│ │ ├── SalesView.form
│ │ ├── SalesView.java
│ │ ├── SummaryView.form
│ │ ├── SummaryView.java
│ │ ├── ic.png
│ │ └── logo.png
├── problemsolving
│ ├── build.xml
│ ├── manifest.mf
│ ├── nbproject
│ │ ├── build-impl.xml
│ │ ├── genfiles.properties
│ │ ├── project.properties
│ │ └── project.xml
│ └── src
│ │ └── com
│ │ └── coderbd
│ │ ├── PrimeNum.java
│ │ ├── prime
│ │ ├── PrimeNumber.java
│ │ └── Q.java
│ │ ├── squareroot
│ │ └── SquareRoot.java
│ │ └── sum
│ │ ├── A.java
│ │ ├── B.java
│ │ ├── C.java
│ │ ├── D.java
│ │ └── P.java
└── specialJava
│ ├── build.xml
│ ├── manifest.mf
│ ├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── project.properties
│ └── project.xml
│ └── src
│ └── com
│ └── coderbd
│ ├── ArraysEx.java
│ ├── Casting.java
│ ├── ConstantEx.java
│ ├── SwitchCase.java
│ ├── ThisEx.java
│ ├── VariableEx.java
│ └── supers
│ ├── Animal.java
│ └── Dog.java
├── spring-boot-swing-reservations-master
├── pom.xml
└── src
│ └── main
│ ├── java
│ └── pl
│ │ └── dmichalski
│ │ └── reservations
│ │ ├── Application.java
│ │ ├── business
│ │ ├── entity
│ │ │ ├── Address.java
│ │ │ ├── Client.java
│ │ │ ├── Payment.java
│ │ │ ├── PaymentMethod.java
│ │ │ ├── Rate.java
│ │ │ ├── Reservation.java
│ │ │ ├── ReservationStatus.java
│ │ │ ├── Room.java
│ │ │ ├── RoomStatus.java
│ │ │ ├── RoomType.java
│ │ │ ├── RoomXReservation.java
│ │ │ ├── RoomXReservationPK.java
│ │ │ └── domain
│ │ │ │ ├── ClientReservationCount.java
│ │ │ │ ├── PaymentMethodCount.java
│ │ │ │ └── RoomStatusesCount.java
│ │ ├── repository
│ │ │ ├── AddressRepository.java
│ │ │ ├── ClientRepository.java
│ │ │ ├── PaymentMethodRepository.java
│ │ │ ├── PaymentRepository.java
│ │ │ ├── RateRepository.java
│ │ │ ├── ReservationRepository.java
│ │ │ ├── ReservationStatusRepository.java
│ │ │ ├── RoomRepository.java
│ │ │ ├── RoomStatusRepository.java
│ │ │ ├── RoomTypeRepository.java
│ │ │ └── RoomXReservationRepository.java
│ │ ├── service
│ │ │ ├── AddressService.java
│ │ │ ├── ClientService.java
│ │ │ ├── PaymentMethodService.java
│ │ │ ├── PaymentService.java
│ │ │ ├── RateService.java
│ │ │ ├── ReservationService.java
│ │ │ ├── ReservationStatusService.java
│ │ │ ├── RoomService.java
│ │ │ ├── RoomStatusService.java
│ │ │ ├── RoomTypeService.java
│ │ │ └── RoomXReservationService.java
│ │ ├── time
│ │ │ ├── CurrentTimeService.java
│ │ │ └── DefaultCurrentTimeService.java
│ │ ├── ui
│ │ │ ├── forms
│ │ │ │ ├── address
│ │ │ │ │ ├── controller
│ │ │ │ │ │ └── AddressController.java
│ │ │ │ │ ├── model
│ │ │ │ │ │ └── AddressTableModel.java
│ │ │ │ │ └── view
│ │ │ │ │ │ ├── AddressTableBtnPanel.java
│ │ │ │ │ │ ├── AddressTableFrame.java
│ │ │ │ │ │ ├── AddressTablePanel.java
│ │ │ │ │ │ └── modal
│ │ │ │ │ │ ├── AddAddressFrame.java
│ │ │ │ │ │ ├── AddressFormBtnPanel.java
│ │ │ │ │ │ └── AddressFormPanel.java
│ │ │ │ ├── client
│ │ │ │ │ ├── controller
│ │ │ │ │ │ └── ClientController.java
│ │ │ │ │ ├── model
│ │ │ │ │ │ ├── AddressComboBoxModel.java
│ │ │ │ │ │ └── ClientTableModel.java
│ │ │ │ │ └── view
│ │ │ │ │ │ ├── ClientFrame.java
│ │ │ │ │ │ ├── ClientTablePanel.java
│ │ │ │ │ │ ├── TableBtnPanel.java
│ │ │ │ │ │ └── modal
│ │ │ │ │ │ ├── AddClientFrame.java
│ │ │ │ │ │ ├── FormBtnPanel.java
│ │ │ │ │ │ └── FormPanel.java
│ │ │ │ ├── forms
│ │ │ │ │ ├── controller
│ │ │ │ │ │ └── FormsController.java
│ │ │ │ │ └── view
│ │ │ │ │ │ └── FormsFrame.java
│ │ │ │ ├── payment
│ │ │ │ │ ├── controller
│ │ │ │ │ │ └── PaymentController.java
│ │ │ │ │ ├── model
│ │ │ │ │ │ ├── PaymentMethodComboBoxModel.java
│ │ │ │ │ │ └── PaymentTableModel.java
│ │ │ │ │ └── view
│ │ │ │ │ │ ├── PaymentTableBtnPanel.java
│ │ │ │ │ │ ├── PaymentTableFrame.java
│ │ │ │ │ │ ├── PaymentTablePanel.java
│ │ │ │ │ │ └── modal
│ │ │ │ │ │ ├── AddPaymentFrame.java
│ │ │ │ │ │ ├── PaymentFormBtnPanel.java
│ │ │ │ │ │ └── PaymentFormPanel.java
│ │ │ │ ├── payment_method
│ │ │ │ │ ├── controller
│ │ │ │ │ │ └── PaymentMethodController.java
│ │ │ │ │ ├── model
│ │ │ │ │ │ └── PaymentMethodTableModel.java
│ │ │ │ │ └── view
│ │ │ │ │ │ ├── PaymentMethodTableBtnPanel.java
│ │ │ │ │ │ ├── PaymentMethodTableFrame.java
│ │ │ │ │ │ ├── PaymentMethodTablePanel.java
│ │ │ │ │ │ └── modal
│ │ │ │ │ │ ├── AddPaymentMethodFrame.java
│ │ │ │ │ │ ├── PaymentMethodFormBtnPanel.java
│ │ │ │ │ │ └── PaymentMethodFormPanel.java
│ │ │ │ ├── rate
│ │ │ │ │ ├── controller
│ │ │ │ │ │ └── RateController.java
│ │ │ │ │ ├── model
│ │ │ │ │ │ ├── RateTableModel.java
│ │ │ │ │ │ ├── RoomComboBoxModel.java
│ │ │ │ │ │ └── RoomTypeComboBoxModel.java
│ │ │ │ │ └── view
│ │ │ │ │ │ ├── RateTableBtnPanel.java
│ │ │ │ │ │ ├── RateTableFrame.java
│ │ │ │ │ │ ├── RateTablePanel.java
│ │ │ │ │ │ └── modal
│ │ │ │ │ │ ├── AddRateFame.java
│ │ │ │ │ │ ├── RateFormBtnPanel.java
│ │ │ │ │ │ └── RateFormPanel.java
│ │ │ │ ├── reservation
│ │ │ │ │ ├── controller
│ │ │ │ │ │ └── ReservationController.java
│ │ │ │ │ ├── model
│ │ │ │ │ │ ├── ClientComboBoxModel.java
│ │ │ │ │ │ ├── PaymentComboBoxModel.java
│ │ │ │ │ │ ├── ReservationStatusComboBoxModel.java
│ │ │ │ │ │ └── ReservationTableModel.java
│ │ │ │ │ └── view
│ │ │ │ │ │ ├── ReservationTableBtnPanel.java
│ │ │ │ │ │ ├── ReservationTableFrame.java
│ │ │ │ │ │ ├── ReservationTablePanel.java
│ │ │ │ │ │ └── modal
│ │ │ │ │ │ ├── AddReservationFrame.java
│ │ │ │ │ │ ├── ReservationFormBtnPanel.java
│ │ │ │ │ │ └── ReservationFormPanel.java
│ │ │ │ ├── reservation_status
│ │ │ │ │ ├── controller
│ │ │ │ │ │ └── ReservationStatusController.java
│ │ │ │ │ ├── model
│ │ │ │ │ │ └── ReservationStatusTableModel.java
│ │ │ │ │ └── view
│ │ │ │ │ │ ├── ReservationStatusTableBtnPanel.java
│ │ │ │ │ │ ├── ReservationStatusTableFrame.java
│ │ │ │ │ │ ├── ReservationStatusTablePanel.java
│ │ │ │ │ │ └── modal
│ │ │ │ │ │ ├── AddReservationStatusFrame.java
│ │ │ │ │ │ ├── ReservationStatusFormBtnPanel.java
│ │ │ │ │ │ └── ReservationStatusFormPanel.java
│ │ │ │ ├── room
│ │ │ │ │ ├── controller
│ │ │ │ │ │ └── RoomController.java
│ │ │ │ │ ├── model
│ │ │ │ │ │ ├── RoomStatusComboBoxModel.java
│ │ │ │ │ │ └── RoomTableModel.java
│ │ │ │ │ └── view
│ │ │ │ │ │ ├── RoomTableBtnPanel.java
│ │ │ │ │ │ ├── RoomTableFrame.java
│ │ │ │ │ │ ├── RoomTablePanel.java
│ │ │ │ │ │ └── modal
│ │ │ │ │ │ ├── AddRoomFrame.java
│ │ │ │ │ │ ├── RoomFormBtnPanel.java
│ │ │ │ │ │ └── RoomFormPanel.java
│ │ │ │ ├── room_status
│ │ │ │ │ ├── controller
│ │ │ │ │ │ └── RoomStatusController.java
│ │ │ │ │ ├── model
│ │ │ │ │ │ └── RoomStatusTableModel.java
│ │ │ │ │ └── view
│ │ │ │ │ │ ├── RoomStatusTableBtnPanel.java
│ │ │ │ │ │ ├── RoomStatusTableFrame.java
│ │ │ │ │ │ ├── RoomStatusTablePanel.java
│ │ │ │ │ │ └── modal
│ │ │ │ │ │ ├── AddRoomStatusFrame.java
│ │ │ │ │ │ ├── RoomStatusFormBtnPanel.java
│ │ │ │ │ │ └── RoomStatusFormPanel.java
│ │ │ │ ├── room_type
│ │ │ │ │ ├── controller
│ │ │ │ │ │ └── RoomTypeController.java
│ │ │ │ │ ├── model
│ │ │ │ │ │ └── RoomTypeTableModel.java
│ │ │ │ │ └── view
│ │ │ │ │ │ ├── RoomTypeTableBtnPanel.java
│ │ │ │ │ │ ├── RoomTypeTableFrame.java
│ │ │ │ │ │ ├── RoomTypeTablePanel.java
│ │ │ │ │ │ └── modal
│ │ │ │ │ │ ├── AddRoomTypeFrame.java
│ │ │ │ │ │ ├── RoomTypeFormBtnPanel.java
│ │ │ │ │ │ └── RoomTypeFormPanel.java
│ │ │ │ └── room_x_reservation
│ │ │ │ │ ├── controller
│ │ │ │ │ └── RoomXReservationController.java
│ │ │ │ │ ├── model
│ │ │ │ │ ├── ReservationsComboBoxModel.java
│ │ │ │ │ └── RoomXReservationTableModel.java
│ │ │ │ │ └── view
│ │ │ │ │ ├── RoomXReservationTableBtnPanel.java
│ │ │ │ │ ├── RoomXReservationTableFrame.java
│ │ │ │ │ ├── RoomXReservationTablePanel.java
│ │ │ │ │ └── modal
│ │ │ │ │ ├── AddRoomXReservationFame.java
│ │ │ │ │ ├── RoomXReservationFormBtnPanel.java
│ │ │ │ │ └── RoomXReservationFormPanel.java
│ │ │ ├── main_menu
│ │ │ │ ├── controller
│ │ │ │ │ └── MainMenuController.java
│ │ │ │ └── view
│ │ │ │ │ └── MainMenuFrame.java
│ │ │ ├── reports
│ │ │ │ ├── client_reservations
│ │ │ │ │ ├── controller
│ │ │ │ │ │ └── ClientReservationsReportController.java
│ │ │ │ │ ├── model
│ │ │ │ │ │ └── ClientReservationsReportModel.java
│ │ │ │ │ └── view
│ │ │ │ │ │ ├── ClientReservationsReportTableFrame.java
│ │ │ │ │ │ └── ClientReservationsReportTablePanel.java
│ │ │ │ ├── payments
│ │ │ │ │ ├── controller
│ │ │ │ │ │ └── PaymentReportController.java
│ │ │ │ │ ├── model
│ │ │ │ │ │ └── PaymentReportModel.java
│ │ │ │ │ └── view
│ │ │ │ │ │ ├── PaymentReportTableFrame.java
│ │ │ │ │ │ └── PaymentReportTablePanel.java
│ │ │ │ ├── reports
│ │ │ │ │ ├── controller
│ │ │ │ │ │ └── ReportsController.java
│ │ │ │ │ └── view
│ │ │ │ │ │ └── ReportsFrame.java
│ │ │ │ └── room_statuses
│ │ │ │ │ ├── controller
│ │ │ │ │ └── RoomStatusReportController.java
│ │ │ │ │ ├── model
│ │ │ │ │ └── RoomStatusReportModel.java
│ │ │ │ │ └── view
│ │ │ │ │ ├── RoomStatusReportTableFrame.java
│ │ │ │ │ └── RoomStatusReportTablePanel.java
│ │ │ └── shared
│ │ │ │ ├── controller
│ │ │ │ └── AbstractFrameController.java
│ │ │ │ └── model
│ │ │ │ ├── DefaultComboBoxModel.java
│ │ │ │ └── DefaultTableModel.java
│ │ ├── util
│ │ │ ├── Borders.java
│ │ │ ├── ConstMessagesEN.java
│ │ │ ├── ConstMessagesPL.java
│ │ │ ├── DateFormatter.java
│ │ │ ├── LookAndFeelUtils.java
│ │ │ └── Notifications.java
│ │ └── validation
│ │ │ ├── AddressValidator.java
│ │ │ ├── ClientValidator.java
│ │ │ ├── PaymentMethodValidator.java
│ │ │ ├── PaymentValidator.java
│ │ │ ├── RateValidator.java
│ │ │ ├── ReservationStatusValidator.java
│ │ │ ├── ReservationValidator.java
│ │ │ ├── RoomStatusValidator.java
│ │ │ ├── RoomTypeValidator.java
│ │ │ ├── RoomValidator.java
│ │ │ ├── RoomXReservationValidator.java
│ │ │ ├── ValidationError.java
│ │ │ ├── ValidationSupport.java
│ │ │ └── Validator.java
│ │ └── system
│ │ └── spring
│ │ └── ApplicationConfiguration.java
│ └── resources
│ ├── application-prod.yml
│ ├── application.yml
│ ├── banner.txt
│ ├── images
│ ├── db_schema.png
│ ├── form1.png
│ ├── form2.png
│ ├── forms.png
│ ├── reports.png
│ └── spring_boot.png
│ └── sql
│ ├── dev
│ ├── data-h2.sql
│ └── schema-h2.sql
│ └── prod
│ ├── all.sql
│ ├── data-postgres.sql
│ ├── schema-postgres.sql
│ ├── triggers-postgresql.sql
│ └── views-postgresql.sql
├── swingBeginers
├── build.xml
├── build
│ └── classes
│ │ ├── .netbeans_automatic_build
│ │ ├── .netbeans_update_resources
│ │ ├── META-INF
│ │ └── persistence.xml
│ │ └── com
│ │ └── coderbd
│ │ ├── Ex01Base$1.class
│ │ ├── Ex01Base$2.class
│ │ ├── Ex01Base$3.class
│ │ ├── Ex01Base$4.class
│ │ ├── Ex01Base$5.class
│ │ ├── Ex01Base.class
│ │ ├── Ex01Base.form
│ │ ├── Ex02Table.class
│ │ ├── Ex03AdddataIntoTable$1.class
│ │ ├── Ex03AdddataIntoTable$2.class
│ │ ├── Ex03AdddataIntoTable$3.class
│ │ ├── Ex03AdddataIntoTable.class
│ │ ├── Ex03AdddataIntoTable.form
│ │ ├── Ex04RadioCheckSelectBox$1.class
│ │ ├── Ex04RadioCheckSelectBox$2.class
│ │ ├── Ex04RadioCheckSelectBox$3.class
│ │ ├── Ex04RadioCheckSelectBox.class
│ │ ├── Ex04RadioCheckSelectBox.form
│ │ ├── Ex05Validation$1.class
│ │ ├── Ex05Validation$2.class
│ │ ├── Ex05Validation$3.class
│ │ ├── Ex05Validation.class
│ │ └── Ex05Validation.form
├── manifest.mf
├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── private
│ │ ├── private.properties
│ │ └── private.xml
│ ├── project.properties
│ └── project.xml
├── src
│ ├── META-INF
│ │ └── persistence.xml
│ └── com
│ │ └── coderbd
│ │ ├── Ex01Base.form
│ │ ├── Ex01Base.java
│ │ ├── Ex02Table.java
│ │ ├── Ex03AdddataIntoTable.form
│ │ ├── Ex03AdddataIntoTable.java
│ │ ├── Ex04RadioCheckSelectBox.form
│ │ ├── Ex04RadioCheckSelectBox.java
│ │ ├── Ex05Validation.form
│ │ └── Ex05Validation.java
└── test
│ └── Test.java
├── swingCrudEx
├── db.txt
├── pom.xml
└── src
│ └── main
│ └── java
│ └── com
│ └── coderbd
│ ├── connection
│ ├── DbConnection.java
│ └── Test.java
│ ├── dao
│ ├── CountryDAO.java
│ └── PersonDAO.java
│ ├── domain
│ ├── Country.java
│ └── Person.java
│ ├── service
│ ├── CountryService.java
│ └── PersonService.java
│ └── view
│ ├── ComboBoxItem.java
│ ├── CountryForm.form
│ ├── CountryForm.java
│ ├── PersonForm.form
│ └── PersonForm.java
├── swingdemo
├── build.xml
├── build
│ ├── built-jar.properties
│ ├── classes
│ │ ├── .netbeans_automatic_build
│ │ ├── .netbeans_update_resources
│ │ ├── META-INF
│ │ │ └── persistence.xml
│ │ ├── resouces.res
│ │ └── swingdemo
│ │ │ ├── AllFields$1.class
│ │ │ ├── AllFields$2.class
│ │ │ ├── AllFields$3.class
│ │ │ ├── AllFields.class
│ │ │ ├── AllFields.form
│ │ │ ├── Test$1.class
│ │ │ ├── Test$2.class
│ │ │ ├── Test$3.class
│ │ │ ├── Test.class
│ │ │ ├── Test.form
│ │ │ ├── connection
│ │ │ ├── MySQLConnection.class
│ │ │ └── TestConnection.class
│ │ │ └── crud
│ │ │ ├── Data$1.class
│ │ │ ├── Data.class
│ │ │ ├── Data.form
│ │ │ ├── Person.class
│ │ │ ├── Person.rapt
│ │ │ └── Person_.class
│ └── generated-sources
│ │ └── ap-source-output
│ │ └── swingdemo
│ │ └── crud
│ │ └── Person_.java
├── dist
│ ├── README.TXT
│ ├── lib
│ │ ├── eclipselink.jar
│ │ ├── javax.persistence_2.1.0.v201304241213.jar
│ │ ├── mysql-connector-java-5.0.8-bin.jar
│ │ └── org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar
│ └── swingdemo.jar
├── manifest.mf
├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── private
│ │ ├── private.properties
│ │ └── private.xml
│ ├── project.properties
│ └── project.xml
└── src
│ ├── META-INF
│ └── persistence.xml
│ └── swingdemo
│ ├── AllFields.form
│ ├── AllFields.java
│ ├── Test.form
│ ├── Test.java
│ ├── another
│ └── TableFromMySqlDatabase.java
│ ├── connection
│ ├── MySQLConnection.java
│ └── TestConnection.java
│ └── crud
│ ├── Data.form
│ ├── Data.java
│ └── Person.java
└── swingmenu
├── build.xml
├── manifest.mf
├── nbproject
├── build-impl.xml
├── genfiles.properties
├── project.properties
└── project.xml
└── src
└── com
└── coderbd
├── DashBoard.form
├── DashBoard.java
├── DynamicswingMenu.form
├── DynamicswingMenu.java
└── Menus.java
/Ex01-creatingAwindow/build/classes/.netbeans_automatic_build:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/Ex01-creatingAwindow/build/classes/.netbeans_automatic_build
--------------------------------------------------------------------------------
/Ex01-creatingAwindow/build/classes/.netbeans_update_resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/Ex01-creatingAwindow/build/classes/.netbeans_update_resources
--------------------------------------------------------------------------------
/Ex01-creatingAwindow/build/classes/ex01/creatingawindow/CenteringWindow.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/Ex01-creatingAwindow/build/classes/ex01/creatingawindow/CenteringWindow.class
--------------------------------------------------------------------------------
/Ex01-creatingAwindow/build/classes/ex01/creatingawindow/ColorAndCursor.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/Ex01-creatingAwindow/build/classes/ex01/creatingawindow/ColorAndCursor.class
--------------------------------------------------------------------------------
/Ex01-creatingAwindow/build/classes/ex01/creatingawindow/Ex01CreatingAwindow.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/Ex01-creatingAwindow/build/classes/ex01/creatingawindow/Ex01CreatingAwindow.class
--------------------------------------------------------------------------------
/Ex01-creatingAwindow/build/classes/ex01/creatingawindow/ResiingWindow.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/Ex01-creatingAwindow/build/classes/ex01/creatingawindow/ResiingWindow.class
--------------------------------------------------------------------------------
/Ex01-creatingAwindow/build/classes/ex01/creatingawindow/TryWindow$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/Ex01-creatingAwindow/build/classes/ex01/creatingawindow/TryWindow$1.class
--------------------------------------------------------------------------------
/Ex01-creatingAwindow/build/classes/ex01/creatingawindow/TryWindow.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/Ex01-creatingAwindow/build/classes/ex01/creatingawindow/TryWindow.class
--------------------------------------------------------------------------------
/Ex01-creatingAwindow/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/Ex01-creatingAwindow/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=a11654a3
2 | build.xml.script.CRC32=ba51d9e4
3 | build.xml.stylesheet.CRC32=8064a381@1.75.2.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=a11654a3
7 | nbproject/build-impl.xml.script.CRC32=75ee5326
8 | nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.75.2.48
9 |
--------------------------------------------------------------------------------
/Ex01-creatingAwindow/nbproject/private/private.properties:
--------------------------------------------------------------------------------
1 | compile.on.save=true
2 | user.properties.file=D:\\Users\\J2EE-33\\AppData\\Roaming\\NetBeans\\8.0.2\\build.properties
3 |
--------------------------------------------------------------------------------
/Ex01-creatingAwindow/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | Ex01-creatingAwindow
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Ex01-creatingAwindow/src/ex01/creatingawindow/CenteringWindow.java:
--------------------------------------------------------------------------------
1 | package ex01.creatingawindow;
2 |
3 | import java.awt.Dimension;
4 | import java.awt.GraphicsEnvironment;
5 | import java.awt.Point;
6 | import java.awt.Toolkit;
7 | import javax.swing.JFrame;
8 |
9 | public class CenteringWindow {
10 |
11 | public static void main(String[] args) {
12 | JFrame aWindow = new JFrame("Resized Window");
13 | Point center = GraphicsEnvironment.getLocalGraphicsEnvironment().getCenterPoint();
14 | int windowWidth = 400;
15 | int windowHeight = 250;
16 | aWindow.setBounds(center.x-windowWidth/2,center.y-windowHeight, windowWidth, windowHeight);
17 | aWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
18 | aWindow.setVisible(true);
19 | }
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/Ex01-creatingAwindow/src/ex01/creatingawindow/ColorAndCursor.java:
--------------------------------------------------------------------------------
1 | package ex01.creatingawindow;
2 |
3 | import java.awt.Color;
4 | import java.awt.Cursor;
5 | import java.awt.Dimension;
6 | import java.awt.Toolkit;
7 | import javax.swing.JFrame;
8 |
9 | public class ColorAndCursor {
10 |
11 | public static void main(String[] args) {
12 | JFrame aWindow = new JFrame("Resized Window");
13 | Toolkit thekit = aWindow.getToolkit();
14 | Dimension wndSize = thekit.getScreenSize();
15 | aWindow.setBounds(wndSize.width / 4, wndSize.height / 4, wndSize.width / 2, wndSize.height / 2);
16 | aWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
17 | aWindow.setCursor(Cursor.getPredefinedCursor(Cursor.CROSSHAIR_CURSOR));
18 | aWindow.getContentPane().setBackground(Color.red);
19 | aWindow.setVisible(true);
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/Ex01-creatingAwindow/src/ex01/creatingawindow/Ex01CreatingAwindow.java:
--------------------------------------------------------------------------------
1 | package ex01.creatingawindow;
2 |
3 | import javax.swing.JFrame;
4 |
5 | public class Ex01CreatingAwindow {
6 |
7 | public static void main(String[] args) {
8 | JFrame aWindow = new JFrame("First Window");
9 | aWindow.setBounds(250, 300, 400, 250);
10 | aWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
11 | aWindow.setVisible(true);
12 | }
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/Ex01-creatingAwindow/src/ex01/creatingawindow/ResiingWindow.java:
--------------------------------------------------------------------------------
1 | package ex01.creatingawindow;
2 |
3 | import java.awt.Dimension;
4 | import java.awt.Toolkit;
5 | import javax.swing.JFrame;
6 |
7 | public class ResiingWindow {
8 | public static void main(String[] args) {
9 | JFrame aWindow = new JFrame("Resized Window");
10 | Toolkit thekit=aWindow.getToolkit();
11 | Dimension wndSize=thekit.getScreenSize();
12 | aWindow.setBounds(wndSize.width/4,wndSize.height/4,wndSize.width/2,wndSize.height/2);
13 | aWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
14 | aWindow.setVisible(true);
15 | }
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/JFrameFullScreenMode/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/JFrameFullScreenMode/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=697092ba
2 | build.xml.script.CRC32=e4b085d0
3 | build.xml.stylesheet.CRC32=8064a381@1.80.1.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=697092ba
7 | nbproject/build-impl.xml.script.CRC32=c3e52683
8 | nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
9 |
--------------------------------------------------------------------------------
/JFrameFullScreenMode/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | JFrameFullScreenMode
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/JFrameMenu/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/JFrameMenu/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=fdf2b6cd
2 | build.xml.script.CRC32=bf381980
3 | build.xml.stylesheet.CRC32=8064a381@1.80.1.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=fdf2b6cd
7 | nbproject/build-impl.xml.script.CRC32=bf677974
8 | nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
9 |
--------------------------------------------------------------------------------
/JFrameMenu/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | JFrameMenu
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/JavaApplication12/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/JavaApplication12/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=e5e7b627
2 | build.xml.script.CRC32=080044f3
3 | build.xml.stylesheet.CRC32=8064a381@1.75.2.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=e5e7b627
7 | nbproject/build-impl.xml.script.CRC32=36640972
8 | nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.75.2.48
9 |
--------------------------------------------------------------------------------
/JavaApplication12/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | JavaApplication12
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/JavaApplication12/src/javaapplication12/GenerateUniqueNumber.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package javaapplication12;
7 |
8 | import java.util.ArrayList;
9 | import java.util.HashSet;
10 | import java.util.List;
11 | import java.util.Random;
12 | import java.util.Set;
13 |
14 | /**
15 | *
16 | * @author Rajail Islam
17 | */
18 | public class GenerateUniqueNumber {
19 |
20 | public static void main(String[] args) {
21 | generateUniqueNumbers(50);
22 | }
23 |
24 | public static void generateUniqueNumbers(int numOfUniqueNumbers) {
25 | Random random = new Random();
26 | Set set = new HashSet<>();
27 | while (set.size() < numOfUniqueNumbers) {
28 | set.add(random.nextInt());
29 | }
30 | List result = new ArrayList<>(set);
31 | for (int num : result) {
32 | if (String.valueOf(num).startsWith("-")) {
33 | } else {
34 | //Print only positive Number
35 | System.out.println(num);
36 | }
37 |
38 | }
39 | }
40 | }
--------------------------------------------------------------------------------
/JavaApplication13/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/JavaApplication13/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=edf43a01
2 | build.xml.script.CRC32=c1f1c88d
3 | build.xml.stylesheet.CRC32=8064a381@1.75.2.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=edf43a01
7 | nbproject/build-impl.xml.script.CRC32=4e06dfa0
8 | nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.75.2.48
9 |
--------------------------------------------------------------------------------
/JavaApplication13/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | JavaApplication13
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/JavaApplication13/src/javaapplication13/JavaApplication13.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package javaapplication13;
7 |
8 | /**
9 | *
10 | * @author Instructor
11 | */
12 | public class JavaApplication13 {
13 |
14 | /**
15 | * @param args the command line arguments
16 | */
17 | public static void main(String[] args) {
18 | // TODO code application logic here
19 | }
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/PlayingwithImages/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/PlayingwithImages/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=95457663
2 | build.xml.script.CRC32=75380d28
3 | build.xml.stylesheet.CRC32=8064a381@1.80.1.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=95457663
7 | nbproject/build-impl.xml.script.CRC32=0a761794
8 | nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
9 |
--------------------------------------------------------------------------------
/PlayingwithImages/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | PlayingwithImages
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/PlayingwithImages/src/com/coderbd/conn/MySqlDbConnection.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.conn;
2 |
3 | import java.sql.Connection;
4 | import java.sql.DriverManager;
5 | import java.sql.SQLException;
6 | import java.util.logging.Level;
7 | import java.util.logging.Logger;
8 |
9 | /**
10 | *
11 | * @author Rajail Islam
12 | */
13 | public class MySqlDbConnection {
14 | private static final String HOST = "jdbc:mysql://localhost:3306";
15 | private static final String DBNMAE = "swing";
16 | private static final String URL = HOST + "/" + DBNMAE;
17 | private static Connection con = null;
18 |
19 | public static Connection getConnection() {
20 | try {
21 | con = DriverManager.getConnection(URL, "root", "1234");
22 | System.out.println("::Connected::");
23 | } catch (SQLException ex) {
24 | Logger.getLogger(MySqlDbConnection.class.getName()).log(Level.SEVERE, null, ex);
25 | }
26 | return con;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/PlayingwithImages/src/com/coderbd/conn/TestMySqlConnection.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.conn;
2 |
3 | import java.sql.Connection;
4 |
5 | /**
6 | *
7 | * @author Rajail Islam
8 | */
9 | public class TestMySqlConnection {
10 | public static void main(String[] args) {
11 | Connection conn=MySqlDbConnection.getConnection();
12 | }
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/PlayingwithImages/src/com/coderbd/domain/TestImageDomainClass.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.domain;
2 | import java.sql.Blob;
3 | /**
4 | *
5 | * @author Rajaul Islam
6 | */
7 | public class TestImageDomainClass {
8 |
9 | private int id;
10 | private Blob blob;
11 |
12 | public TestImageDomainClass() {
13 | }
14 |
15 | public TestImageDomainClass(Blob blob) {
16 | this.blob = blob;
17 | }
18 |
19 | public int getId() {
20 | return id;
21 | }
22 |
23 | public void setId(int id) {
24 | this.id = id;
25 | }
26 |
27 | public Blob getBlob() {
28 | return blob;
29 | }
30 |
31 | public void setBlob(Blob blob) {
32 | this.blob = blob;
33 | }
34 |
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/PlayingwithImages/src/com/coderbd/ex1/PicturePanel.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package com.coderbd.ex1;
7 |
8 | import java.awt.Graphics;
9 | import java.awt.Image;
10 | import javax.swing.JPanel;
11 |
12 | /**
13 | *
14 | * @author Rajaul Islam
15 | */
16 | class PicturePanel extends JPanel {
17 | Image image=null;
18 | @Override
19 | public void paintComponent(Graphics g) {
20 | super.paintComponent(g);
21 | g.drawImage(image, 0, 0, null);
22 | this.revalidate();
23 | this.repaint();
24 | }
25 | }
--------------------------------------------------------------------------------
/PlayingwithImages/src/com/coderbd/ex1/sayonti.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/PlayingwithImages/src/com/coderbd/ex1/sayonti.png
--------------------------------------------------------------------------------
/PlayingwithImages/src/com/coderbd/ex1/sejuti.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/PlayingwithImages/src/com/coderbd/ex1/sejuti.jpg
--------------------------------------------------------------------------------
/PointOfSale/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/PointOfSale/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=d9a11042
2 | build.xml.script.CRC32=f46d199e
3 | build.xml.stylesheet.CRC32=8064a381@1.75.2.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=d9a11042
7 | nbproject/build-impl.xml.script.CRC32=01f25f76
8 | nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.75.2.48
9 |
--------------------------------------------------------------------------------
/PointOfSale/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | PointOfSale
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/PointOfSale/src/com/coderbd/util/MenuMangement.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package com.coderbd.util;
7 |
8 | /**
9 | *
10 | * @author Instructor
11 | */
12 | public class MenuMangement {
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # swing
2 | Java based desktop application Development Beginers to Advanced Training or examples will added into this repository.
3 |
--------------------------------------------------------------------------------
/WorkingWithList/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/WorkingWithList/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=5549c07a
2 | build.xml.script.CRC32=22f75105
3 | build.xml.stylesheet.CRC32=8064a381@1.80.1.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=5549c07a
7 | nbproject/build-impl.xml.script.CRC32=3df87099
8 | nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
9 |
--------------------------------------------------------------------------------
/WorkingWithList/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | WorkingWithList
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/WorkingWithList/src/com/coderbd/conn/MySqlDbConnection.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.conn;
2 |
3 | import java.sql.Connection;
4 | import java.sql.DriverManager;
5 | import java.sql.SQLException;
6 | import java.util.logging.Level;
7 | import java.util.logging.Logger;
8 |
9 | /**
10 | *
11 | * @author Rajail Islam
12 | */
13 | public class MySqlDbConnection {
14 | private static final String HOST = "jdbc:mysql://localhost:3306";
15 | private static final String DBNMAE = "swing";
16 | private static final String URL = HOST + "/" + DBNMAE;
17 | private static Connection con = null;
18 |
19 | public static Connection getConnection() {
20 | try {
21 | con = DriverManager.getConnection(URL, "root", "1234");
22 | System.out.println("::Connected::");
23 | } catch (SQLException ex) {
24 | Logger.getLogger(MySqlDbConnection.class.getName()).log(Level.SEVERE, null, ex);
25 | }
26 | return con;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/WorkingWithList/src/com/coderbd/conn/TestMySqlConnection.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.conn;
2 |
3 | import java.sql.Connection;
4 |
5 | /**
6 | *
7 | * @author Rajail Islam
8 | */
9 | public class TestMySqlConnection {
10 | public static void main(String[] args) {
11 | Connection conn=MySqlDbConnection.getConnection();
12 | }
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/WorkingWithList/src/com/coderbd/service/domain/Country.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package com.coderbd.service.domain;
7 |
8 | /**
9 | *
10 | * @author Rajail Islam
11 | */
12 | public class Country {
13 | private int id;
14 | private String name;
15 |
16 | public Country() {
17 | }
18 |
19 | public Country(String name) {
20 | this.name = name;
21 | }
22 |
23 | public int getId() {
24 | return id;
25 | }
26 |
27 | public void setId(int id) {
28 | this.id = id;
29 | }
30 |
31 | public String getName() {
32 | return name;
33 | }
34 |
35 | public void setName(String name) {
36 | this.name = name;
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/dbConnection/build/built-jar.properties:
--------------------------------------------------------------------------------
1 | #Mon, 18 Sep 2017 09:56:34 +0600
2 |
3 |
4 | D\:\\Users\\J2EE-33\\Documents\\NetBeansProjects\\dbConnection=
5 |
--------------------------------------------------------------------------------
/dbConnection/build/classes/com/coderbd/connection/DbConnection.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/dbConnection/build/classes/com/coderbd/connection/DbConnection.class
--------------------------------------------------------------------------------
/dbConnection/dist/dbConnection.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/dbConnection/dist/dbConnection.jar
--------------------------------------------------------------------------------
/dbConnection/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=8d39ea60
2 | build.xml.script.CRC32=70d07354
3 | build.xml.stylesheet.CRC32=8064a381@1.75.2.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=8d39ea60
7 | nbproject/build-impl.xml.script.CRC32=a2c8bc7c
8 | nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
9 |
--------------------------------------------------------------------------------
/dbConnection/nbproject/private/config.properties:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/dbConnection/nbproject/private/config.properties
--------------------------------------------------------------------------------
/dbConnection/nbproject/private/private.properties:
--------------------------------------------------------------------------------
1 | compile.on.save=true
2 | do.depend=false
3 | do.jar=true
4 | javac.debug=true
5 | javadoc.preview=true
6 | user.properties.file=C:\\Users\\User\\AppData\\Roaming\\NetBeans\\8.2\\build.properties
7 |
--------------------------------------------------------------------------------
/dbConnection/nbproject/private/private.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/dbConnection/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | dbConnection
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/dbConnection/src/com/coderbd/connection/DbConnection.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.connection;
2 | import java.sql.Connection;
3 | import java.sql.DriverManager;
4 | import java.sql.SQLException;
5 | import java.util.logging.Level;
6 | import java.util.logging.Logger;
7 | /**
8 | *
9 | * @author Mohammad Rajaul Islam
10 | */
11 | public class DbConnection {
12 | private static final String DRIVERNAME = "oracle.jdbc.driver.OracleDriver";
13 | private static final String HOST = "jdbc:oracle:thin:@localhost";
14 | private static final String PORT = "1521";
15 | private static Connection connection;
16 | private static String url = HOST + ":" + PORT + ":";
17 |
18 | public static Connection getConnection(String dbname,
19 | String dbUserName, String dbPass) {
20 | try {
21 | connection = DriverManager.getConnection(url + dbname, dbUserName, dbPass);
22 | } catch (SQLException ex) {
23 | Logger.getLogger(DbConnection.class.getName()).log(Level.SEVERE, null, ex);
24 | }
25 | return connection;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/lms/lib/mysql-connector-java-5.1.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/lms/lib/mysql-connector-java-5.1.6.jar
--------------------------------------------------------------------------------
/lms/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/lms/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=1a6e32ad
2 | build.xml.script.CRC32=77db962a
3 | build.xml.stylesheet.CRC32=8064a381@1.80.1.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=1a6e32ad
7 | nbproject/build-impl.xml.script.CRC32=a838b30c
8 | nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
9 |
--------------------------------------------------------------------------------
/lms/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | lms
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/lms/src/com/coderbd/lms/connection/DbConnection.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.lms.connection;
2 |
3 | import java.sql.Connection;
4 | import java.sql.DriverManager;
5 | import java.sql.SQLException;
6 | import java.util.logging.Level;
7 | import java.util.logging.Logger;
8 |
9 | /**
10 | *
11 | * @author Rajail Islam
12 | */
13 | public class DbConnection {
14 |
15 | private static final String HOST = "jdbc:mysql://localhost:3306";
16 | private static final String DBNMAE = "lms";
17 | private static final String URL = HOST + "/" + DBNMAE;
18 | private static Connection con = null;
19 |
20 | public static Connection getConnection() {
21 | try {
22 | con = DriverManager.getConnection(URL, "root", "1234");
23 | System.out.println("::Connected::");
24 | } catch (SQLException ex) {
25 | Logger.getLogger(DbConnection.class.getName()).log(Level.SEVERE, null, ex);
26 | }
27 | return con;
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/lms/src/com/coderbd/lms/connection/Test.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.lms.connection;
2 |
3 |
4 | import com.coderbd.lms.domain.User;
5 | import com.coderbd.lms.service.UserService;
6 | import java.sql.Connection;
7 |
8 | /**
9 | *
10 | * @author Rajail Islam
11 | */
12 | public class Test {
13 |
14 | public static void main(String[] args) {
15 | Connection conn = DbConnection.getConnection();
16 |
17 | UserService us=new UserService();
18 | User u= us.getUserByUsername("admin");
19 | System.out.println("uname: "+u.getName());
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/lms/src/com/coderbd/lms/dao/AuthorDao.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package com.coderbd.lms.dao;
7 |
8 | import com.coderbd.lms.domain.Author;
9 | import java.util.List;
10 |
11 | /**
12 | *
13 | * @author Rajaul Islam
14 | */
15 | public interface AuthorDao {
16 |
17 | void save(Author s);
18 |
19 | void update(Author s);
20 |
21 | void delete(int id);
22 |
23 | List getList();
24 |
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/lms/src/com/coderbd/lms/dao/BookCategoryDao.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package com.coderbd.lms.dao;
7 |
8 | import com.coderbd.lms.domain.BookCategory;
9 | import java.util.List;
10 |
11 | /**
12 | *
13 | * @author Rajaul Islam
14 | */
15 | public interface BookCategoryDao {
16 |
17 | void save(BookCategory s);
18 |
19 | void update(BookCategory s);
20 |
21 | void delete(int id);
22 |
23 | List getList();
24 |
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/lms/src/com/coderbd/lms/dao/BookDao.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.lms.dao;
2 |
3 | import com.coderbd.lms.domain.Book;
4 | import java.util.List;
5 | import java.util.Set;
6 |
7 | /**
8 | *
9 | * @author Rajaul Islam
10 | */
11 | public interface BookDao {
12 |
13 | void save(Book book);
14 |
15 | void update(Book book);
16 |
17 | void delete(int id);
18 |
19 | List getList();
20 | Set getBookList();
21 | Book getBookById(int id);
22 | }
23 |
--------------------------------------------------------------------------------
/lms/src/com/coderbd/lms/dao/BookIssueDao.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package com.coderbd.lms.dao;
7 |
8 | import com.coderbd.lms.domain.BookIssue;
9 | import java.util.List;
10 |
11 | /**
12 | *
13 | * @author Rajail Islam
14 | */
15 | public interface BookIssueDao {
16 | void save(BookIssue b);
17 |
18 | void update(BookIssue b);
19 |
20 | void delete(int id);
21 |
22 | List getList();
23 | }
24 |
--------------------------------------------------------------------------------
/lms/src/com/coderbd/lms/dao/BookRecieveDao.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package com.coderbd.lms.dao;
7 |
8 | import com.coderbd.lms.domain.BookReceive;
9 | import java.util.List;
10 |
11 | /**
12 | *
13 | * @author Rajail Islam
14 | */
15 | public interface BookRecieveDao {
16 | void save(BookReceive s);
17 | List getList();
18 | }
19 |
--------------------------------------------------------------------------------
/lms/src/com/coderbd/lms/dao/BookSummaryDao.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.lms.dao;
2 |
3 | import com.coderbd.lms.domain.BookSummary;
4 | import com.coderbd.lms.domain.User;
5 | import java.util.List;
6 |
7 | /**
8 | *
9 | * @author Rajaul Islam
10 | */
11 | public interface BookSummaryDao {
12 | void saveWhenBookPurchase(BookSummary s);
13 |
14 | void update(BookSummary s);
15 | void updateWhenBookPurchase(BookSummary s);
16 |
17 | List getList();
18 |
19 | public BookSummary getBookSummaryByBookCode(String bookCode);
20 | public BookSummary getBookSummaryById(int id);
21 | }
22 |
--------------------------------------------------------------------------------
/lms/src/com/coderbd/lms/dao/Departmentdao.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package com.coderbd.lms.dao;
7 |
8 | import com.coderbd.lms.domain.Department;
9 | import java.util.List;
10 |
11 | /**
12 | *
13 | * @author Rajaul Islam
14 | */
15 | public interface Departmentdao {
16 |
17 | void save(Department s);
18 |
19 | void update(Department s);
20 |
21 | void delete(int id);
22 |
23 | List getList();
24 |
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/lms/src/com/coderbd/lms/dao/EditionDao.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package com.coderbd.lms.dao;
7 |
8 | import com.coderbd.lms.domain.Edition;
9 | import java.util.List;
10 |
11 | /**
12 | *
13 | * @author Rajaul Islam
14 | */
15 | public interface EditionDao {
16 |
17 | void save(Edition s);
18 |
19 | void update(Edition s);
20 |
21 | void delete(int id);
22 |
23 | List getList();
24 |
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/lms/src/com/coderbd/lms/dao/InstituteDao.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package com.coderbd.lms.dao;
7 |
8 | import com.coderbd.lms.domain.Institute;
9 | import java.util.List;
10 |
11 | /**
12 | *
13 | * @author Rajail Islam
14 | */
15 | public interface InstituteDao {
16 |
17 | void save(Institute institute);
18 |
19 | void update(Institute institute);
20 |
21 | void delete(int id);
22 |
23 | List getList();
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/lms/src/com/coderbd/lms/dao/PublisherDao.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package com.coderbd.lms.dao;
7 |
8 | import com.coderbd.lms.domain.Publisher;
9 | import java.util.List;
10 |
11 | /**
12 | *
13 | * @author Rajaul Islam
14 | */
15 | public interface PublisherDao {
16 |
17 | void save(Publisher s);
18 |
19 | void update(Publisher s);
20 |
21 | void delete(int id);
22 |
23 | List getList();
24 |
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/lms/src/com/coderbd/lms/dao/SessonDao.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package com.coderbd.lms.dao;
7 |
8 | import com.coderbd.lms.domain.Sesson;
9 | import java.util.List;
10 |
11 | /**
12 | *
13 | * @author Rajaul Islam
14 | */
15 | public interface SessonDao {
16 |
17 | void save(Sesson s);
18 |
19 | void update(Sesson s);
20 |
21 | void delete(int id);
22 |
23 | List getList();
24 |
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/lms/src/com/coderbd/lms/dao/ShiftDao.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package com.coderbd.lms.dao;
7 |
8 | import com.coderbd.lms.domain.Shift;
9 | import java.util.List;
10 |
11 | /**
12 | *
13 | * @author Rajail Islam
14 | */
15 | public interface ShiftDao {
16 |
17 | void save(Shift s);
18 |
19 | void update(Shift s);
20 |
21 | void delete(int id);
22 |
23 | List getShifts();
24 |
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/lms/src/com/coderbd/lms/dao/StudentDao.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package com.coderbd.lms.dao;
7 |
8 | import com.coderbd.lms.domain.Student;
9 | import com.coderbd.lms.domain.User;
10 | import java.util.List;
11 | import java.util.Set;
12 |
13 | /**
14 | *
15 | * @author Rajaul Islam
16 | */
17 | public interface StudentDao {
18 |
19 | void save(Student s);
20 |
21 | void update(Student s);
22 |
23 | void delete(int id);
24 |
25 | List getList();
26 | Set getStudentList();
27 |
28 | Student getStudent(int id);
29 |
30 | Student getUserByRegistrationNo(int registrationNo);
31 | }
32 |
--------------------------------------------------------------------------------
/lms/src/com/coderbd/lms/dao/UserDao.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package com.coderbd.lms.dao;
7 |
8 | import com.coderbd.lms.domain.User;
9 | import java.util.List;
10 |
11 | /**
12 | *
13 | * @author Rajaul Islam
14 | */
15 | public interface UserDao {
16 |
17 | void save(User s);
18 |
19 | void update(User s);
20 |
21 | void delete(int id);
22 |
23 | List getList();
24 |
25 | User getUser(int id);
26 |
27 | User getUserByUsername(String username);
28 | }
29 |
--------------------------------------------------------------------------------
/lms/src/com/coderbd/lms/domain/Author.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package com.coderbd.lms.domain;
7 |
8 | /**
9 | *
10 | * @author Rajail Islam
11 | */
12 | public class Author {
13 |
14 | private int id;
15 | private String name;
16 |
17 |
18 | public Author() {
19 | }
20 |
21 | public Author(String name) {
22 | this.name = name;
23 | }
24 |
25 | public int getId() {
26 | return id;
27 | }
28 |
29 | public void setId(int id) {
30 | this.id = id;
31 | }
32 |
33 | public String getName() {
34 | return name;
35 | }
36 |
37 | public void setName(String name) {
38 | this.name = name;
39 | }
40 |
41 |
42 |
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/lms/src/com/coderbd/lms/domain/BookCategory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package com.coderbd.lms.domain;
7 |
8 | /**
9 | *
10 | * @author Rajaul Islam
11 | */
12 | public class BookCategory {
13 |
14 | private int id;
15 | private String name;
16 |
17 | public BookCategory() {
18 | }
19 |
20 | public BookCategory(String name) {
21 | this.name = name;
22 | }
23 |
24 | public int getId() {
25 | return id;
26 | }
27 |
28 | public void setId(int id) {
29 | this.id = id;
30 | }
31 |
32 | public String getName() {
33 | return name;
34 | }
35 |
36 | public void setName(String name) {
37 | this.name = name;
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/lms/src/com/coderbd/lms/domain/Department.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.lms.domain;
2 |
3 | import java.util.Date;
4 |
5 | /**
6 | *
7 | * @author Rajaul Islam
8 | */
9 | public class Department {
10 |
11 | private int id;
12 | private String name;
13 |
14 | public Department() {
15 | }
16 |
17 | public Department(String name) {
18 | this.name = name;
19 | }
20 |
21 | public int getId() {
22 | return id;
23 | }
24 |
25 | public void setId(int id) {
26 | this.id = id;
27 | }
28 |
29 | public String getName() {
30 | return name;
31 | }
32 |
33 | public void setName(String name) {
34 | this.name = name;
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/lms/src/com/coderbd/lms/domain/Edition.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.lms.domain;
2 |
3 | import java.util.Date;
4 |
5 | /**
6 | *
7 | * @author Rajail Islam
8 | */
9 | public class Edition {
10 |
11 | private int id;
12 | private String name;
13 |
14 |
15 | public Edition() {
16 | }
17 |
18 | public Edition(String name) {
19 | this.name = name;
20 | }
21 |
22 | public int getId() {
23 | return id;
24 | }
25 |
26 | public void setId(int id) {
27 | this.id = id;
28 | }
29 |
30 | public String getName() {
31 | return name;
32 | }
33 |
34 | public void setName(String name) {
35 | this.name = name;
36 | }
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/lms/src/com/coderbd/lms/domain/Publisher.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.lms.domain;
2 |
3 | /**
4 | *
5 | * @author Rajail Islam
6 | */
7 | public class Publisher {
8 | private int id;
9 | private String name;
10 |
11 |
12 | public Publisher() {
13 | }
14 |
15 | public Publisher(String name) {
16 | this.name = name;
17 | }
18 |
19 | public int getId() {
20 | return id;
21 | }
22 |
23 | public void setId(int id) {
24 | this.id = id;
25 | }
26 |
27 | public String getName() {
28 | return name;
29 | }
30 |
31 | public void setName(String name) {
32 | this.name = name;
33 | }
34 |
35 |
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/lms/src/com/coderbd/lms/domain/Sesson.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.lms.domain;
2 |
3 |
4 | /**
5 | *
6 | * @author Rajaul Islam
7 | */
8 | public class Sesson {
9 | private int id;
10 | private String name;
11 |
12 | public Sesson() {
13 | }
14 |
15 | public Sesson(String name) {
16 | this.name = name;
17 | }
18 |
19 | public int getId() {
20 | return id;
21 | }
22 |
23 | public void setId(int id) {
24 | this.id = id;
25 | }
26 |
27 | public String getName() {
28 | return name;
29 | }
30 |
31 | public void setName(String name) {
32 | this.name = name;
33 | }
34 |
35 |
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/oracle/build/classes/.netbeans_automatic_build:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/oracle/build/classes/.netbeans_automatic_build
--------------------------------------------------------------------------------
/oracle/build/classes/.netbeans_update_resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/oracle/build/classes/.netbeans_update_resources
--------------------------------------------------------------------------------
/oracle/build/classes/oracle/Oracle.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/oracle/build/classes/oracle/Oracle.class
--------------------------------------------------------------------------------
/oracle/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/oracle/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=4771a45a
2 | build.xml.script.CRC32=d74babc0
3 | build.xml.stylesheet.CRC32=8064a381@1.75.2.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=4771a45a
7 | nbproject/build-impl.xml.script.CRC32=7982d447
8 | nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
9 |
--------------------------------------------------------------------------------
/oracle/nbproject/private/private.properties:
--------------------------------------------------------------------------------
1 | compile.on.save=true
2 | user.properties.file=C:\\Users\\Students\\AppData\\Roaming\\NetBeans\\8.2\\build.properties
3 |
--------------------------------------------------------------------------------
/oracle/nbproject/private/private.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/oracle/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | oracle
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/oracle/src/oracle/Oracle.java:
--------------------------------------------------------------------------------
1 | package oracle;
2 |
3 | import com.coderbd.connection.DbConnection;
4 | import java.sql.Connection;
5 | import java.sql.ResultSet;
6 | import java.sql.SQLException;
7 | import java.sql.Statement;
8 | import java.util.logging.Level;
9 | import java.util.logging.Logger;
10 |
11 | /**
12 | *
13 | * @author J2EE-33
14 | */
15 | public class Oracle {
16 | /**
17 | * @param args the command line arguments
18 | */
19 | public static void main(String[] args) {
20 | Connection con = DbConnection.getConnection("xe","hr","hr");
21 | try {
22 | Statement stm = con.createStatement();
23 | ResultSet rs = stm.executeQuery("select * from employees");
24 | while (rs.next()) {
25 | System.out.println(rs.getInt(1) + " " + rs.getString(2)+ " " + rs.getString(3)+ " " + rs.getString(4)+ " " + rs.getString(5));
26 | }
27 | con.close();
28 | } catch (SQLException ex) {
29 | Logger.getLogger(Oracle.class.getName()).log(Level.SEVERE, null, ex);
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/round-39/commonMenu/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/round-39/commonMenu/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=f601c16f
2 | build.xml.script.CRC32=e0428ec0
3 | build.xml.stylesheet.CRC32=8064a381@1.80.1.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=f601c16f
7 | nbproject/build-impl.xml.script.CRC32=5aefba22
8 | nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
9 |
--------------------------------------------------------------------------------
/round-39/commonMenu/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | commonMenu
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/round-39/displayAtTableFromForm/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/round-39/displayAtTableFromForm/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=feda1223
2 | build.xml.script.CRC32=b360d281
3 | build.xml.stylesheet.CRC32=8064a381@1.80.1.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=feda1223
7 | nbproject/build-impl.xml.script.CRC32=14aab446
8 | nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
9 |
--------------------------------------------------------------------------------
/round-39/displayAtTableFromForm/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | displayAtTableFromForm
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/round-39/pga/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/round-39/pga/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=b8b710bd
2 | build.xml.script.CRC32=93eb2135
3 | build.xml.stylesheet.CRC32=8064a381@1.80.1.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=b8b710bd
7 | nbproject/build-impl.xml.script.CRC32=05c63043
8 | nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
9 |
--------------------------------------------------------------------------------
/round-39/pga/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | pga
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/round-39/pga/src/com/coderbd/view/ImageUtil.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package com.coderbd.view;
7 |
8 | import java.awt.Graphics2D;
9 | import java.awt.Image;
10 | import java.awt.Toolkit;
11 | import java.awt.image.BufferedImage;
12 |
13 | /**
14 | *
15 | * @author User
16 | */
17 | public class ImageUtil {
18 |
19 | public static Image toImage(BufferedImage bufferedImage) {
20 | return Toolkit.getDefaultToolkit().createImage(bufferedImage.getSource());
21 | }
22 |
23 | public static BufferedImage resizeImage(BufferedImage originalImage, int type, final int IMG_WIDTH, final int IMG_HEIGHT) {
24 | BufferedImage resizedImage = new BufferedImage(IMG_WIDTH, IMG_HEIGHT, type);
25 | Graphics2D g = resizedImage.createGraphics();
26 | g.drawImage(originalImage, 0, 0, IMG_WIDTH, IMG_HEIGHT, null);
27 | g.dispose();
28 |
29 | return resizedImage;
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/round-39/preEvidence/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/round-39/preEvidence/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=422866ad
2 | build.xml.script.CRC32=7c329ba7
3 | build.xml.stylesheet.CRC32=8064a381@1.80.1.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=422866ad
7 | nbproject/build-impl.xml.script.CRC32=fb2b2c3d
8 | nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
9 |
--------------------------------------------------------------------------------
/round-39/preEvidence/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | preEvidence
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/round-39/swing-ex1/lib/mysql-connector-java-5.1.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-39/swing-ex1/lib/mysql-connector-java-5.1.6.jar
--------------------------------------------------------------------------------
/round-39/swing-ex1/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/round-39/swing-ex1/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=59b40716
2 | build.xml.script.CRC32=f843d33d
3 | build.xml.stylesheet.CRC32=8064a381@1.80.1.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=59b40716
7 | nbproject/build-impl.xml.script.CRC32=b7f5896d
8 | nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
9 |
--------------------------------------------------------------------------------
/round-39/swing-ex1/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | swing-ex1
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/round-39/swing-ex1/src/com/coderbd/DbConnection.java:
--------------------------------------------------------------------------------
1 | package com.coderbd;
2 |
3 | import java.sql.Connection;
4 | import java.sql.DriverManager;
5 | import java.sql.SQLException;
6 | import java.util.logging.Level;
7 | import java.util.logging.Logger;
8 |
9 | public class DbConnection {
10 |
11 | public static Connection getCon() {
12 | Connection con = null;
13 | try {
14 | con = DriverManager.getConnection("jdbc:mysql://localhost:3306/test", "root", "1234");
15 | System.out.println("Connected");
16 | } catch (SQLException ex) {
17 | Logger.getLogger(DbConnection.class.getName()).log(Level.SEVERE, null, ex);
18 | }
19 | return con;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/round-39/swing-ex1/src/com/coderbd/arefin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-39/swing-ex1/src/com/coderbd/arefin.png
--------------------------------------------------------------------------------
/round-39/swing-ex1/test.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-39/swing-ex1/test.png
--------------------------------------------------------------------------------
/round-39/swingjdbcBasic/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/round-39/swingjdbcBasic/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=7edaad9d
2 | build.xml.script.CRC32=d1e5364b
3 | build.xml.stylesheet.CRC32=8064a381@1.80.1.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=7edaad9d
7 | nbproject/build-impl.xml.script.CRC32=fc7a64ce
8 | nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
9 |
--------------------------------------------------------------------------------
/round-39/swingjdbcBasic/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | swingjdbcBasic
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/round-39/swingjdbcBasic/src/com/coderbd/connection/DblConnection.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.connection;
2 |
3 | import java.sql.Connection;
4 | import java.sql.DriverManager;
5 | import java.sql.SQLException;
6 | import java.util.logging.Level;
7 | import java.util.logging.Logger;
8 |
9 | public class DblConnection {
10 |
11 | public static Connection getDbConnection() {
12 | Connection connection = null;
13 | try {
14 | connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/swing", "root", "1234");
15 | System.out.println("::Connected::");
16 | } catch (SQLException ex) {
17 | Logger.getLogger(DblConnection.class.getName()).log(Level.SEVERE, null, ex);
18 | }
19 | return connection;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/round-39/swingjdbcBasic/src/com/coderbd/connection/TestDBConnect.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.connection;
2 |
3 | public class TestDBConnect {
4 |
5 | public static void main(String[] args) {
6 | DblConnection.getDbConnection();
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/round-39/swingjdbcBasic/src/com/coderbd/createtable/CreateStudentTable.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.createtable;
2 |
3 | import com.coderbd.connection.DblConnection;
4 | import java.sql.Connection;
5 | import java.sql.PreparedStatement;
6 | import java.sql.SQLException;
7 | import java.util.logging.Level;
8 | import java.util.logging.Logger;
9 |
10 | public class CreateStudentTable {
11 |
12 | static Connection con = DblConnection.getDbConnection();
13 |
14 | public static void createStudentTable() {
15 | String sql = "create table student(id int(11) primary key auto_increment, name varchar(50) not null)";
16 |
17 | try {
18 | PreparedStatement ps = con.prepareStatement(sql);
19 | ps.execute();
20 | System.out.println("Student Table Created");
21 |
22 | } catch (SQLException ex) {
23 | Logger.getLogger(CreateStudentTable.class.getName()).log(Level.SEVERE, null, ex);
24 | }
25 |
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/round-39/swingjdbcBasic/src/com/coderbd/createtable/Test.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.createtable;
2 |
3 | /**
4 | *
5 | * @author User
6 | */
7 | public class Test {
8 |
9 | public static void main(String[] args) {
10 | // CreateStudentTable.createStudentTable();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/round-39/swingjdbcBasic/src/com/coderbd/pojo/Student.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.pojo;
2 |
3 | public class Student {
4 |
5 | private int id;
6 | private String name;
7 |
8 | public Student() {
9 | }
10 |
11 | public Student(int id, String name) {
12 | this.id = id;
13 | this.name = name;
14 | }
15 |
16 | public int getId() {
17 | return id;
18 | }
19 |
20 | public void setId(int id) {
21 | this.id = id;
22 | }
23 |
24 | public String getName() {
25 | return name;
26 | }
27 |
28 | public void setName(String name) {
29 | this.name = name;
30 | }
31 |
32 | @Override
33 | public String toString() {
34 | return "Student{" + "id=" + id + ", name=" + name + '}';
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/round-39/swingjdbcBasic/src/com/coderbd/service/CommonDAO.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.service;
2 |
3 | import com.coderbd.pojo.Student;
4 | import java.util.List;
5 |
6 | public interface CommonDAO {
7 |
8 | void save(Student obj);
9 |
10 | void update(Student obj);
11 |
12 | void delete(Student obj);
13 |
14 | void deleteById(int id);
15 |
16 | Student getById(int id);
17 |
18 | List findAll();
19 | }
20 |
--------------------------------------------------------------------------------
/round-39/swingjdbcBasic/src/com/coderbd/service/Test.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.service;
2 |
3 | import com.coderbd.pojo.Student;
4 |
5 | public class Test {
6 |
7 | public static void main(String[] args) {
8 | Student s1 = new Student();
9 | s1.setName("Minhaz");
10 |
11 | CommonDAO commonDAO = new StudentService();
12 | commonDAO.save(s1);
13 |
14 | }
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/round-43/JavaApplication10/habib.txt:
--------------------------------------------------------------------------------
1 | 1, Romana, romana@gmail.com, Male, Coding Reading , Round-43
2 | 1, Maria, mairia@gmail.com, Female, Coding Reading Playing, Round-43
3 | 1, Romana, romana@gmail.com, Male, Coding , Round-42
4 |
--------------------------------------------------------------------------------
/round-43/JavaApplication10/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/round-43/JavaApplication10/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=f5c0ae6b
2 | build.xml.script.CRC32=40925a4e
3 | build.xml.stylesheet.CRC32=8064a381@1.80.1.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=f5c0ae6b
7 | nbproject/build-impl.xml.script.CRC32=3b95bdc4
8 | nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
9 |
--------------------------------------------------------------------------------
/round-43/JavaApplication10/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | JavaApplication10
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/round-43/mysqldbconnection/lib/ojdbc6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/mysqldbconnection/lib/ojdbc6.jar
--------------------------------------------------------------------------------
/round-43/mysqldbconnection/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/round-43/mysqldbconnection/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=98d6b55b
2 | build.xml.script.CRC32=1a18ef16
3 | build.xml.stylesheet.CRC32=8064a381@1.80.1.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=98d6b55b
7 | nbproject/build-impl.xml.script.CRC32=b07f7c03
8 | nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
9 |
--------------------------------------------------------------------------------
/round-43/mysqldbconnection/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | mysqldbconnection
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/round-43/mysqldbconnection/src/com/coderbd/conn/DbConnection.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.conn;
2 |
3 | import java.sql.Connection;
4 | import java.sql.DriverManager;
5 | import java.sql.SQLException;
6 | import java.util.logging.Level;
7 | import java.util.logging.Logger;
8 |
9 | public class DbConnection {
10 |
11 | private static final String DRIVERNAME = "oracle.jdbc.driver.OracleDriver";
12 | private static final String HOST = "jdbc:oracle:thin:@localhost";
13 | private static final String PORT = "1521";
14 | private static Connection connection;
15 | private static final String URL = HOST + ":" + PORT + ":";
16 |
17 | public static Connection getOracleConnection() {
18 | try {
19 | connection = DriverManager.getConnection(URL + "xe", "hr", "sys");
20 | System.out.println("-::Connected::-");
21 | } catch (SQLException ex) {
22 | Logger.getLogger(DbConnection.class.getName()).log(Level.SEVERE, null, ex);
23 | }
24 | return connection;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/round-43/pms/build/built-jar.properties:
--------------------------------------------------------------------------------
1 | #Mon, 24 Feb 2020 15:36:42 +0600
2 |
3 |
4 | C\:\\Users\\Students\\Desktop\\pms=
5 |
--------------------------------------------------------------------------------
/round-43/pms/build/classes/.netbeans_automatic_build:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/.netbeans_automatic_build
--------------------------------------------------------------------------------
/round-43/pms/build/classes/.netbeans_update_resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/.netbeans_update_resources
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/CommonMenu$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/CommonMenu$1.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/CommonMenu$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/CommonMenu$2.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/CommonMenu$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/CommonMenu$3.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/CommonMenu$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/CommonMenu$4.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/CommonMenu$5.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/CommonMenu$5.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/CommonMenu$6.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/CommonMenu$6.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/CommonMenu$7.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/CommonMenu$7.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/CommonMenu.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/CommonMenu.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/DashBoardView$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/DashBoardView$1.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/DashBoardView.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/DashBoardView.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/LoginView$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/LoginView$1.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/LoginView$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/LoginView$2.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/LoginView$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/LoginView$3.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/LoginView.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/LoginView.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/NewJFrame$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/NewJFrame$1.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/NewJFrame.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/NewJFrame.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/ProductCategoryView$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/ProductCategoryView$1.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/ProductCategoryView.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/ProductCategoryView.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/ProductView$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/ProductView$1.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/ProductView.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/ProductView.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/PurchaseView$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/PurchaseView$1.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/PurchaseView.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/PurchaseView.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/RegisterView$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/RegisterView$1.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/RegisterView$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/RegisterView$2.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/RegisterView.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/RegisterView.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/ReportView$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/ReportView$1.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/ReportView.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/ReportView.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/SalesView$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/SalesView$1.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/SalesView.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/SalesView.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/SummaryView$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/SummaryView$1.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/SummaryView.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/SummaryView.class
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/ic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/ic.png
--------------------------------------------------------------------------------
/round-43/pms/build/classes/com/coderbd/view/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/build/classes/com/coderbd/view/logo.png
--------------------------------------------------------------------------------
/round-43/pms/dist/pms.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/dist/pms.jar
--------------------------------------------------------------------------------
/round-43/pms/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/round-43/pms/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=704b4cff
2 | build.xml.script.CRC32=769c45be
3 | build.xml.stylesheet.CRC32=8064a381@1.80.1.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=704b4cff
7 | nbproject/build-impl.xml.script.CRC32=b0312384
8 | nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
9 |
--------------------------------------------------------------------------------
/round-43/pms/nbproject/private/config.properties:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/nbproject/private/config.properties
--------------------------------------------------------------------------------
/round-43/pms/nbproject/private/private.properties:
--------------------------------------------------------------------------------
1 | compile.on.save=true
2 | do.depend=false
3 | do.jar=true
4 | javac.debug=true
5 | javadoc.preview=true
6 | user.properties.file=C:\\Users\\Students\\AppData\\Roaming\\NetBeans\\8.2\\build.properties
7 |
--------------------------------------------------------------------------------
/round-43/pms/nbproject/private/private.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/round-43/pms/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | pms
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/round-43/pms/src/com/coderbd/view/ic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/src/com/coderbd/view/ic.png
--------------------------------------------------------------------------------
/round-43/pms/src/com/coderbd/view/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/round-43/pms/src/com/coderbd/view/logo.png
--------------------------------------------------------------------------------
/round-43/problemsolving/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/round-43/problemsolving/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=ae57e921
2 | build.xml.script.CRC32=21a1f23c
3 | build.xml.stylesheet.CRC32=8064a381@1.80.1.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=ae57e921
7 | nbproject/build-impl.xml.script.CRC32=3b1ed6b9
8 | nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
9 |
--------------------------------------------------------------------------------
/round-43/problemsolving/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | problemsolving
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/round-43/problemsolving/src/com/coderbd/PrimeNum.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package com.coderbd;
7 |
8 | /**
9 | *
10 | * @author Students
11 | */
12 | public class PrimeNum {
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/round-43/problemsolving/src/com/coderbd/prime/Q.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package com.coderbd.prime;
7 |
8 | import com.coderbd.sum.P;
9 |
10 | /**
11 | *
12 | * @author Students
13 | */
14 | public class Q extends P{
15 | public static void main(String[] args) {
16 | Q q= new Q();
17 | q.x=100;
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/round-43/problemsolving/src/com/coderbd/squareroot/SquareRoot.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.squareroot;
2 |
3 | import java.util.Scanner;
4 |
5 | public class SquareRoot {
6 |
7 | public static double getSquareRoot(int number) {
8 |
9 | double temp;
10 | double sr = number / 2;
11 |
12 | do {
13 | temp = sr;
14 | sr = (temp + (number / temp)) / 2;
15 | } while ((temp - sr) != 0);
16 |
17 | return sr;
18 | }
19 |
20 | public static double getSq(int num) {
21 | int sq = 0;
22 | for (int i = 1; i <= num; i++) {
23 | if (11.180339887498949 * 11.180339887498949 == num) {
24 | sq = i;
25 | }
26 | }
27 | return sq;
28 | }
29 |
30 | public static void main(String[] args) {
31 |
32 | System.out.println(getSq(125));
33 | System.out.print("Enter any number:");
34 | Scanner scanner = new Scanner(System.in);
35 | int num = scanner.nextInt();
36 | scanner.close();
37 |
38 | System.out.println("Square root of " + num + " is: " + getSquareRoot(num));
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/round-43/problemsolving/src/com/coderbd/sum/A.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.sum;
2 |
3 | public class A {
4 |
5 | public static void main(String[] args) {
6 | int sum = 0;
7 | for (int i = 0; i <= 10; i++) {
8 | sum += i;
9 | }
10 | System.out.println("Sum: " + sum);
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/round-43/problemsolving/src/com/coderbd/sum/B.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package com.coderbd.sum;
7 |
8 | /**
9 | *
10 | * @author Students
11 | */
12 | public class B {
13 |
14 | public static void main(String[] args) {
15 | makeSum(1, 10);
16 | }
17 |
18 | public static void makeSum(int startNum, int endNum) {
19 | int sum = 0;
20 | while (startNum <= endNum) {
21 | sum += startNum;
22 | startNum++;
23 | }
24 | System.out.println("Sum: " + sum);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/round-43/problemsolving/src/com/coderbd/sum/C.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.sum;
2 |
3 | public class C {
4 |
5 | public static void main(String[] args) {
6 | C c = new C();
7 | System.out.println("Sum: " + c.makeSum(1, 10));
8 | }
9 |
10 | public int makeSum(int sn, int en) {
11 | int sum = 0;
12 | do {
13 | sum += sn;
14 | sn++;
15 | } while (sn <= en);
16 | return sum;
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/round-43/problemsolving/src/com/coderbd/sum/D.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.sum;
2 |
3 | import java.util.Scanner;
4 |
5 | public class D {
6 |
7 | public static void main(String[] args) {
8 | System.out.println("Sum: " + makeSum());
9 | }
10 |
11 | public static int makeSum() {
12 | int sum = 0;
13 | Scanner sc = new Scanner(System.in);
14 | System.out.println("Enter Some Numbers");
15 | int num = sc.nextInt();
16 | while (num > 0) {
17 | sum += num;
18 | num = sc.nextInt();
19 |
20 | }
21 | return sum;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/round-43/problemsolving/src/com/coderbd/sum/P.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package com.coderbd.sum;
7 |
8 | /**
9 | *
10 | * @author Students
11 | */
12 | public class P {
13 | protected int x=10;
14 | }
15 |
--------------------------------------------------------------------------------
/round-43/specialJava/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/round-43/specialJava/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=575db3cc
2 | build.xml.script.CRC32=2374a4b4
3 | build.xml.stylesheet.CRC32=8064a381@1.80.1.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=575db3cc
7 | nbproject/build-impl.xml.script.CRC32=902149ca
8 | nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
9 |
--------------------------------------------------------------------------------
/round-43/specialJava/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | specialJava
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/round-43/specialJava/src/com/coderbd/ArraysEx.java:
--------------------------------------------------------------------------------
1 | package com.coderbd;
2 |
3 | import java.util.Arrays;
4 |
5 | public class ArraysEx {
6 |
7 | public static void main(String[] args) {
8 | int[] x = {2, 5, 7, 8, 10};
9 | System.out.println(Arrays.toString(x));
10 | // Array element can be changed
11 | x[1]=2000;
12 | System.out.println(Arrays.toString(x));
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/round-43/specialJava/src/com/coderbd/Casting.java:
--------------------------------------------------------------------------------
1 | package com.coderbd;
2 |
3 | public class Casting {
4 |
5 | private static int x = 10;
6 |
7 | public static void main(String[] args) {
8 | boolean status = x >= 10 ? true : x != 10 ? true : x < 5 ? true : false;
9 | System.out.println(status);
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/round-43/specialJava/src/com/coderbd/ConstantEx.java:
--------------------------------------------------------------------------------
1 | package com.coderbd;
2 | public class ConstantEx {
3 | private static final float PI=3.14f;
4 | private static final int NUM_OF_STUDENTS=14;
5 | public static void main(String[] args) {
6 | // NUM_OF_STUDENTS=13;
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/round-43/specialJava/src/com/coderbd/SwitchCase.java:
--------------------------------------------------------------------------------
1 | package com.coderbd;
2 |
3 | public class SwitchCase {
4 |
5 | public static void main(String[] args) {
6 | int x = 10;
7 | switch (x) {
8 | case 0:
9 | System.out.println("A");
10 | break;
11 | case 1:
12 | System.out.println("B");
13 | case 2:
14 | System.out.println("C");
15 | break;
16 | default:
17 | System.out.println("F");
18 | case 3:
19 | System.out.println("D");
20 |
21 | }
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/round-43/specialJava/src/com/coderbd/ThisEx.java:
--------------------------------------------------------------------------------
1 | package com.coderbd;
2 |
3 | public class ThisEx {
4 |
5 | private int id;// instance variable
6 | private String name;
7 |
8 | public ThisEx(int id) {
9 | this.id = id;//1. this refers to current class instance
10 | }
11 |
12 | public ThisEx(String name, int id) {
13 | this(id);// 2. this refers to current class constructor
14 | this.name = name;
15 | }
16 |
17 | public void printDetails() {
18 | this.sayHi();//3. current class method
19 | }
20 |
21 | public void sayHi() {
22 | System.out.println("Hi.......");
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/round-43/specialJava/src/com/coderbd/supers/Animal.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.supers;
2 |
3 | class Animal {
4 |
5 | public int id;
6 | private String race;
7 | public Animal() {
8 | System.out.println("Animal instantiated..........");
9 | }
10 |
11 | public Animal(int id) {
12 | this.id = id;
13 | }
14 |
15 | public Animal(int id, String race) {
16 | this.id = id;
17 | this.race = race;
18 | }
19 | public void makeSound(){
20 | System.out.println("make ...........sound");
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/round-43/specialJava/src/com/coderbd/supers/Dog.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.supers;
2 |
3 | public class Dog extends Animal {
4 |
5 | private String name;
6 |
7 | public Dog() {
8 | super();// called super clas
9 | System.out.println("Dog instantiated........");
10 | }
11 |
12 | public Dog(String name, int id, String race) {
13 | super(id, race);
14 | this.name = name;
15 | }
16 |
17 | public static void main(String[] args) {
18 | Dog dog = new Dog();
19 | System.out.println(dog.name + " ");
20 | }
21 |
22 | public void display() {
23 | System.out.println(super.id);// call praent class
24 | super.makeSound();
25 |
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/Application.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations;
2 |
3 | import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 | import org.springframework.boot.builder.SpringApplicationBuilder;
6 | import org.springframework.context.ConfigurableApplicationContext;
7 | import pl.dmichalski.reservations.business.ui.main_menu.controller.MainMenuController;
8 | import pl.dmichalski.reservations.business.util.LookAndFeelUtils;
9 |
10 | @SpringBootApplication
11 | @EnableAutoConfiguration
12 | public class Application {
13 |
14 | public static void main(String[] args) {
15 | LookAndFeelUtils.setWindowsLookAndFeel();
16 | ConfigurableApplicationContext context = new SpringApplicationBuilder(Application.class).headless(false).run(args);
17 | MainMenuController mainMenuController = context.getBean(MainMenuController.class);
18 | mainMenuController.prepareAndOpenFrame();
19 | }
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/entity/PaymentMethod.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.entity;
2 |
3 | import javax.persistence.*;
4 |
5 | @Entity
6 | @Table(name = "payment_method")
7 | public class PaymentMethod {
8 |
9 | @Id
10 | @GeneratedValue
11 | @Column(name = "id_payment_method")
12 | private long id;
13 |
14 | @Column(name = "name")
15 | private String name;
16 |
17 | public long getId() {
18 | return id;
19 | }
20 |
21 | public void setId(long id) {
22 | this.id = id;
23 | }
24 |
25 | public String getName() {
26 | return name;
27 | }
28 |
29 | public void setName(String name) {
30 | this.name = name;
31 | }
32 |
33 | @Override
34 | public String toString() {
35 | return name;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/entity/ReservationStatus.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.entity;
2 |
3 | import javax.persistence.*;
4 |
5 | @Entity
6 | @Table(name = "reservation_status")
7 | public class ReservationStatus {
8 |
9 | @Id
10 | @GeneratedValue
11 | @Column(name = "id_reservation_status")
12 | private long id;
13 |
14 | @Column(name = "reservation_status")
15 | private String reservationStatus;
16 |
17 | public long getId() {
18 | return id;
19 | }
20 |
21 | public String getReservationStatus() {
22 | return reservationStatus;
23 | }
24 |
25 | public void setId(long id) {
26 | this.id = id;
27 | }
28 |
29 | public void setReservationStatus(String reservationStatus) {
30 | this.reservationStatus = reservationStatus;
31 | }
32 |
33 | @Override
34 | public String toString() {
35 | return reservationStatus;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/entity/RoomStatus.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.entity;
2 |
3 | import javax.persistence.*;
4 |
5 | @Entity
6 | @Table(name = "room_status")
7 | public class RoomStatus {
8 |
9 | @Id
10 | @GeneratedValue
11 | @Column(name = "id_room_status")
12 | private long id;
13 |
14 | @Column(name = "room_status")
15 | private String roomStatus;
16 |
17 | @Column(name = "status_description")
18 | private String description;
19 |
20 | public long getId() {
21 | return id;
22 | }
23 |
24 | public void setId(long id) {
25 | this.id = id;
26 | }
27 |
28 | public String getRoomStatus() {
29 | return roomStatus;
30 | }
31 |
32 | public void setRoomStatus(String roomStatus) {
33 | this.roomStatus = roomStatus;
34 | }
35 |
36 | public String getDescription() {
37 | return description;
38 | }
39 |
40 | public void setDescription(String description) {
41 | this.description = description;
42 | }
43 |
44 | @Override
45 | public String toString() {
46 | return roomStatus + " " + description;
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/entity/RoomType.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.entity;
2 |
3 | import javax.persistence.*;
4 |
5 | @Entity
6 | @Table(name = "room_type")
7 | public class RoomType {
8 |
9 | @Id
10 | @GeneratedValue
11 | @Column(name = "id_room_type")
12 | private long id;
13 |
14 | @Column(name = "description")
15 | private String description;
16 |
17 | @Column(name = "multiplier")
18 | private long multiplier;
19 |
20 | public long getId() {
21 | return id;
22 | }
23 |
24 | public void setId(long id) {
25 | this.id = id;
26 | }
27 |
28 | public String getDescription() {
29 | return description;
30 | }
31 |
32 | public void setDescription(String description) {
33 | this.description = description;
34 | }
35 |
36 | public long getMultiplier() {
37 | return multiplier;
38 | }
39 |
40 | public void setMultiplier(long multiplier) {
41 | this.multiplier = multiplier;
42 | }
43 |
44 | @Override
45 | public String toString() {
46 | return description;
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/entity/domain/ClientReservationCount.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.entity.domain;
2 |
3 | public class ClientReservationCount {
4 |
5 | private String name;
6 | private String email;
7 | private long count;
8 |
9 | public ClientReservationCount(String name, String email, long count) {
10 | this.name = name;
11 | this.email = email;
12 | this.count = count;
13 | }
14 |
15 | public String getName() {
16 | return name;
17 | }
18 |
19 | public void setName(String name) {
20 | this.name = name;
21 | }
22 |
23 | public String getEmail() {
24 | return email;
25 | }
26 |
27 | public void setEmail(String email) {
28 | this.email = email;
29 | }
30 |
31 | public long getCount() {
32 | return count;
33 | }
34 |
35 | public void setCount(long count) {
36 | this.count = count;
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/entity/domain/PaymentMethodCount.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.entity.domain;
2 |
3 | public class PaymentMethodCount {
4 |
5 | private String name;
6 | private long count;
7 |
8 | public PaymentMethodCount(String name, long count) {
9 | this.name = name;
10 | this.count = count;
11 | }
12 |
13 | public long getCount() {
14 | return count;
15 | }
16 |
17 | public void setCount(long count) {
18 | this.count = count;
19 | }
20 |
21 | public String getName() {
22 | return name;
23 | }
24 |
25 | public void setName(String name) {
26 | this.name = name;
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/entity/domain/RoomStatusesCount.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.entity.domain;
2 |
3 | public class RoomStatusesCount {
4 |
5 | private String status;
6 | private long count;
7 |
8 | public RoomStatusesCount(String status, long count) {
9 | this.status = status;
10 | this.count = count;
11 | }
12 |
13 | public String getStatus() {
14 | return status;
15 | }
16 |
17 | public void setStatus(String status) {
18 | this.status = status;
19 | }
20 |
21 | public long getCount() {
22 | return count;
23 | }
24 |
25 | public void setCount(long count) {
26 | this.count = count;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/repository/AddressRepository.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.repository;
2 |
3 | import org.springframework.data.jpa.repository.JpaRepository;
4 | import org.springframework.stereotype.Repository;
5 | import pl.dmichalski.reservations.business.entity.Address;
6 |
7 | @Repository
8 | public interface AddressRepository extends JpaRepository {
9 | }
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/repository/ClientRepository.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.repository;
2 |
3 | import org.springframework.data.jpa.repository.JpaRepository;
4 | import org.springframework.data.jpa.repository.Query;
5 | import org.springframework.stereotype.Repository;
6 | import pl.dmichalski.reservations.business.entity.Client;
7 |
8 | @Repository
9 | public interface ClientRepository extends JpaRepository {
10 |
11 | @Query(value = "SELECT concat(c.name, ' ', c.surname) AS name, c.email AS email, COUNT(r.id) AS count " +
12 | "FROM Reservation r JOIN r.client c " +
13 | "GROUP BY c.id " +
14 | "HAVING COUNT (r.id) >= 3")
15 | Object[][] getClientReservationsCount();
16 |
17 | }
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/repository/PaymentMethodRepository.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.repository;
2 |
3 | import org.springframework.data.jpa.repository.JpaRepository;
4 | import org.springframework.data.jpa.repository.Query;
5 | import org.springframework.stereotype.Repository;
6 | import pl.dmichalski.reservations.business.entity.PaymentMethod;
7 |
8 | @Repository
9 | public interface PaymentMethodRepository extends JpaRepository {
10 |
11 | @Query(value = "SELECT pm.name AS name, COUNT(p.id) AS count FROM Payment p JOIN p.paymentMethod pm GROUP BY pm.name")
12 | Object[][] getPaymentMethodCount();
13 |
14 | }
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/repository/PaymentRepository.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.repository;
2 |
3 | import org.springframework.data.jpa.repository.JpaRepository;
4 | import org.springframework.stereotype.Repository;
5 | import pl.dmichalski.reservations.business.entity.Payment;
6 |
7 | @Repository
8 | public interface PaymentRepository extends JpaRepository {
9 | }
10 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/repository/RateRepository.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.repository;
2 |
3 | import org.springframework.data.jpa.repository.JpaRepository;
4 | import org.springframework.stereotype.Repository;
5 | import pl.dmichalski.reservations.business.entity.Rate;
6 |
7 | @Repository
8 | public interface RateRepository extends JpaRepository {
9 | }
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/repository/ReservationRepository.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.repository;
2 |
3 | import org.springframework.data.jpa.repository.JpaRepository;
4 | import org.springframework.stereotype.Repository;
5 | import pl.dmichalski.reservations.business.entity.Reservation;
6 |
7 | @Repository
8 | public interface ReservationRepository extends JpaRepository {
9 | }
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/repository/ReservationStatusRepository.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.repository;
2 |
3 | import org.springframework.data.jpa.repository.JpaRepository;
4 | import org.springframework.stereotype.Repository;
5 | import pl.dmichalski.reservations.business.entity.ReservationStatus;
6 |
7 | @Repository
8 | public interface ReservationStatusRepository extends JpaRepository {
9 | }
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/repository/RoomRepository.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.repository;
2 |
3 | import org.springframework.data.jpa.repository.JpaRepository;
4 | import org.springframework.stereotype.Repository;
5 | import pl.dmichalski.reservations.business.entity.Room;
6 |
7 | @Repository
8 | public interface RoomRepository extends JpaRepository {
9 | }
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/repository/RoomStatusRepository.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.repository;
2 |
3 | import org.springframework.data.jpa.repository.JpaRepository;
4 | import org.springframework.data.jpa.repository.Query;
5 | import org.springframework.stereotype.Repository;
6 | import pl.dmichalski.reservations.business.entity.RoomStatus;
7 |
8 | @Repository
9 | public interface RoomStatusRepository extends JpaRepository {
10 |
11 | @Query(value = "SELECT rs.roomStatus AS name, COUNT(r.id) AS count FROM Room r JOIN r.roomStatus rs GROUP BY rs.roomStatus")
12 | Object[][] getRoomStatusesCount();
13 |
14 | }
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/repository/RoomTypeRepository.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.repository;
2 |
3 | import org.springframework.data.jpa.repository.JpaRepository;
4 | import org.springframework.stereotype.Repository;
5 | import pl.dmichalski.reservations.business.entity.RoomType;
6 |
7 | @Repository
8 | public interface RoomTypeRepository extends JpaRepository {
9 | }
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/repository/RoomXReservationRepository.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.repository;
2 |
3 | import org.springframework.data.jpa.repository.JpaRepository;
4 | import org.springframework.stereotype.Repository;
5 | import pl.dmichalski.reservations.business.entity.RoomXReservation;
6 |
7 | @Repository
8 | public interface RoomXReservationRepository extends JpaRepository {
9 | }
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/service/AddressService.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.service;
2 |
3 | import org.springframework.beans.factory.annotation.Autowired;
4 | import org.springframework.stereotype.Service;
5 | import pl.dmichalski.reservations.business.entity.Address;
6 | import pl.dmichalski.reservations.business.repository.AddressRepository;
7 |
8 | import java.util.List;
9 |
10 | @Service
11 | public class AddressService {
12 |
13 | private AddressRepository addressRepository;
14 |
15 | @Autowired
16 | public AddressService(AddressRepository addressRepository) {
17 | this.addressRepository = addressRepository;
18 | }
19 |
20 | public List findAll() {
21 | return addressRepository.findAll();
22 | }
23 |
24 | public void remove(Address address) {
25 | addressRepository.delete(address);
26 | }
27 |
28 | public void save(Address address) {
29 | addressRepository.save(address);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/service/PaymentService.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.service;
2 |
3 | import org.springframework.beans.factory.annotation.Autowired;
4 | import org.springframework.stereotype.Service;
5 | import pl.dmichalski.reservations.business.entity.Payment;
6 | import pl.dmichalski.reservations.business.repository.PaymentRepository;
7 |
8 | import java.util.List;
9 |
10 | @Service
11 | public class PaymentService {
12 |
13 | private PaymentRepository paymentRepository;
14 |
15 | @Autowired
16 | public PaymentService(PaymentRepository paymentRepository) {
17 | this.paymentRepository = paymentRepository;
18 | }
19 |
20 | public List findAll() {
21 | return paymentRepository.findAll();
22 | }
23 |
24 | public void remove(Payment payment) {
25 | paymentRepository.delete(payment);
26 | }
27 |
28 | public void save(Payment payment) {
29 | paymentRepository.save(payment);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/service/RateService.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.service;
2 |
3 | import org.springframework.beans.factory.annotation.Autowired;
4 | import org.springframework.stereotype.Service;
5 | import pl.dmichalski.reservations.business.entity.Rate;
6 | import pl.dmichalski.reservations.business.repository.RateRepository;
7 |
8 | import java.util.List;
9 |
10 | @Service
11 | public class RateService {
12 |
13 | private RateRepository rateRepository;
14 |
15 | @Autowired
16 | public RateService(RateRepository rateRepository) {
17 | this.rateRepository = rateRepository;
18 | }
19 |
20 | public List findAll() {
21 | return rateRepository.findAll();
22 | }
23 |
24 | public void remove(Rate rate) {
25 | rateRepository.delete(rate);
26 | }
27 |
28 | public void save(Rate rate) {
29 | rateRepository.save(rate);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/service/ReservationService.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.service;
2 |
3 | import org.springframework.beans.factory.annotation.Autowired;
4 | import org.springframework.stereotype.Service;
5 | import pl.dmichalski.reservations.business.entity.Reservation;
6 | import pl.dmichalski.reservations.business.repository.ReservationRepository;
7 |
8 | import java.util.List;
9 |
10 | @Service
11 | public class ReservationService {
12 |
13 | private ReservationRepository reservationRepository;
14 |
15 | @Autowired
16 | public ReservationService(ReservationRepository reservationRepository) {
17 | this.reservationRepository = reservationRepository;
18 | }
19 |
20 | public List findAll() {
21 | return reservationRepository.findAll();
22 | }
23 |
24 | public void remove(Reservation reservation) {
25 | reservationRepository.delete(reservation);
26 | }
27 |
28 | public void save(Reservation reservation) {
29 | reservationRepository.save(reservation);
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/service/RoomService.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.service;
2 |
3 | import org.springframework.beans.factory.annotation.Autowired;
4 | import org.springframework.stereotype.Service;
5 | import pl.dmichalski.reservations.business.entity.Room;
6 | import pl.dmichalski.reservations.business.repository.RoomRepository;
7 |
8 | import java.util.List;
9 |
10 | @Service
11 | public class RoomService {
12 |
13 | private RoomRepository roomRepository;
14 |
15 | @Autowired
16 | public RoomService(RoomRepository roomRepository) {
17 | this.roomRepository = roomRepository;
18 | }
19 |
20 | public List findAll() {
21 | return roomRepository.findAll();
22 | }
23 |
24 | public void remove(Room room) {
25 | roomRepository.delete(room);
26 | }
27 |
28 | public void save(Room room) {
29 | roomRepository.save(room);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/service/RoomTypeService.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.service;
2 |
3 | import org.springframework.beans.factory.annotation.Autowired;
4 | import org.springframework.stereotype.Service;
5 | import pl.dmichalski.reservations.business.entity.RoomType;
6 | import pl.dmichalski.reservations.business.repository.RoomTypeRepository;
7 |
8 | import java.util.List;
9 |
10 | @Service
11 | public class RoomTypeService {
12 |
13 | private RoomTypeRepository roomTypeRepository;
14 |
15 | @Autowired
16 | public RoomTypeService(RoomTypeRepository roomTypeRepository) {
17 | this.roomTypeRepository = roomTypeRepository;
18 | }
19 |
20 | public List findAll() {
21 | return roomTypeRepository.findAll();
22 | }
23 |
24 | public void remove(RoomType roomType) {
25 | roomTypeRepository.delete(roomType);
26 | }
27 |
28 | public void save(RoomType roomType) {
29 | roomTypeRepository.save(roomType);
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/service/RoomXReservationService.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.service;
2 |
3 | import org.springframework.beans.factory.annotation.Autowired;
4 | import org.springframework.stereotype.Service;
5 | import pl.dmichalski.reservations.business.entity.RoomXReservation;
6 | import pl.dmichalski.reservations.business.repository.RoomXReservationRepository;
7 |
8 | import java.util.List;
9 |
10 | @Service
11 | public class RoomXReservationService {
12 |
13 | private RoomXReservationRepository roomXReservationRepository;
14 |
15 | @Autowired
16 | public RoomXReservationService(RoomXReservationRepository roomXReservationRepository) {
17 | this.roomXReservationRepository = roomXReservationRepository;
18 | }
19 |
20 | public List findAll() {
21 | return roomXReservationRepository.findAll();
22 | }
23 |
24 | public void remove(RoomXReservation roomXReservation) {
25 | roomXReservationRepository.delete(roomXReservation);
26 | }
27 |
28 | public void save(RoomXReservation roomXReservation) {
29 | roomXReservationRepository.save(roomXReservation);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/time/CurrentTimeService.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.time;
2 |
3 | import java.util.Date;
4 |
5 | public interface CurrentTimeService {
6 |
7 | Date getCurrentDate();
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/time/DefaultCurrentTimeService.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.time;
2 |
3 | import org.springframework.stereotype.Component;
4 |
5 | import java.util.Date;
6 |
7 | @Component
8 | public class DefaultCurrentTimeService implements CurrentTimeService {
9 |
10 | @Override
11 | public Date getCurrentDate() {
12 | return new Date();
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/address/view/AddressTableBtnPanel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.address.view;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
5 |
6 | import javax.swing.*;
7 |
8 | @Component
9 | public class AddressTableBtnPanel extends JPanel {
10 |
11 | private JButton addBtn;
12 | private JButton removeBtn;
13 |
14 | public AddressTableBtnPanel() {
15 | initComponents();
16 | }
17 |
18 | private void initComponents() {
19 | addBtn = new JButton(ConstMessagesEN.Labels.ADD_BTN);
20 | add(addBtn);
21 |
22 | removeBtn = new JButton(ConstMessagesEN.Labels.REMOVE_BTN);
23 | add(removeBtn);
24 | }
25 |
26 | public JButton getAddBtn() {
27 | return addBtn;
28 | }
29 |
30 | public JButton getRemoveBtn() {
31 | return removeBtn;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/address/view/modal/AddressFormBtnPanel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.address.view.modal;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
5 |
6 | import javax.swing.*;
7 |
8 | @Component
9 | public class AddressFormBtnPanel extends JPanel {
10 |
11 | private JButton saveBtn;
12 | private JButton cancelBtn;
13 |
14 | public AddressFormBtnPanel() {
15 | initComponents();
16 | }
17 |
18 | private void initComponents() {
19 | saveBtn = new JButton(ConstMessagesEN.Labels.ADD_BTN);
20 | add(saveBtn);
21 |
22 | cancelBtn = new JButton(ConstMessagesEN.Labels.CANCEL_BTN);
23 | add(cancelBtn);
24 | }
25 |
26 | public JButton getSaveBtn() {
27 | return saveBtn;
28 | }
29 |
30 | public JButton getCancelBtn() {
31 | return cancelBtn;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/client/model/AddressComboBoxModel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.client.model;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.entity.Address;
5 | import pl.dmichalski.reservations.business.ui.shared.model.DefaultComboBoxModel;
6 |
7 | @Component
8 | public class AddressComboBoxModel extends DefaultComboBoxModel {
9 | }
10 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/client/view/TableBtnPanel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.client.view;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
5 |
6 | import javax.swing.*;
7 |
8 | @Component
9 | public class TableBtnPanel extends JPanel {
10 |
11 | private JButton addBtn;
12 | private JButton removeBtn;
13 |
14 | public TableBtnPanel() {
15 | initComponents();
16 | }
17 |
18 | private void initComponents() {
19 | addBtn = new JButton(ConstMessagesEN.Labels.ADD_BTN);
20 | add(addBtn);
21 |
22 | removeBtn = new JButton(ConstMessagesEN.Labels.REMOVE_BTN);
23 | add(removeBtn);
24 | }
25 |
26 | public JButton getAddBtn() {
27 | return addBtn;
28 | }
29 |
30 | public JButton getRemoveBtn() {
31 | return removeBtn;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/client/view/modal/FormBtnPanel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.client.view.modal;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
5 |
6 | import javax.swing.*;
7 |
8 | @Component
9 | public class FormBtnPanel extends JPanel {
10 |
11 | private JButton saveBtn;
12 | private JButton cancelBtn;
13 |
14 | public FormBtnPanel() {
15 | initComponents();
16 | }
17 |
18 | private void initComponents() {
19 | saveBtn = new JButton(ConstMessagesEN.Labels.ADD_BTN);
20 | add(saveBtn);
21 |
22 | cancelBtn = new JButton(ConstMessagesEN.Labels.CANCEL_BTN);
23 | add(cancelBtn);
24 | }
25 |
26 | public JButton getSaveBtn() {
27 | return saveBtn;
28 | }
29 |
30 | public JButton getCancelBtn() {
31 | return cancelBtn;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/payment/model/PaymentMethodComboBoxModel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.payment.model;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.entity.PaymentMethod;
5 | import pl.dmichalski.reservations.business.ui.shared.model.DefaultComboBoxModel;
6 |
7 | @Component
8 | public class PaymentMethodComboBoxModel extends DefaultComboBoxModel {
9 | }
10 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/payment/view/PaymentTableBtnPanel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.payment.view;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
5 |
6 | import javax.swing.*;
7 |
8 | @Component
9 | public class PaymentTableBtnPanel extends JPanel {
10 |
11 | private JButton addBtn;
12 | private JButton removeBtn;
13 |
14 | public PaymentTableBtnPanel() {
15 | initComponents();
16 | }
17 |
18 | private void initComponents() {
19 | addBtn = new JButton(ConstMessagesEN.Labels.ADD_BTN);
20 | add(addBtn);
21 |
22 | removeBtn = new JButton(ConstMessagesEN.Labels.REMOVE_BTN);
23 | add(removeBtn);
24 | }
25 |
26 | public JButton getAddBtn() {
27 | return addBtn;
28 | }
29 |
30 | public JButton getRemoveBtn() {
31 | return removeBtn;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/payment/view/modal/PaymentFormBtnPanel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.payment.view.modal;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
5 |
6 | import javax.swing.*;
7 |
8 | @Component
9 | public class PaymentFormBtnPanel extends JPanel {
10 |
11 | private JButton saveBtn;
12 | private JButton cancelBtn;
13 |
14 | public PaymentFormBtnPanel() {
15 | initComponents();
16 | }
17 |
18 | private void initComponents() {
19 | saveBtn = new JButton(ConstMessagesEN.Labels.ADD_BTN);
20 | add(saveBtn);
21 |
22 | cancelBtn = new JButton(ConstMessagesEN.Labels.CANCEL_BTN);
23 | add(cancelBtn);
24 | }
25 |
26 | public JButton getSaveBtn() {
27 | return saveBtn;
28 | }
29 |
30 | public JButton getCancelBtn() {
31 | return cancelBtn;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/payment_method/model/PaymentMethodTableModel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.payment_method.model;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.entity.PaymentMethod;
5 | import pl.dmichalski.reservations.business.ui.shared.model.DefaultTableModel;
6 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
7 |
8 | @Component
9 | public class PaymentMethodTableModel extends DefaultTableModel {
10 |
11 | @Override
12 | public Object getValueAt(int rowIndex, int columnIndex) {
13 | PaymentMethod paymentMethod = entities.get(rowIndex);
14 | switch (columnIndex) {
15 | case 0:
16 | return paymentMethod.getName();
17 | default:
18 | return "";
19 | }
20 | }
21 |
22 | @Override
23 | public String[] getColumnLabels() {
24 | return new String[]{
25 | ConstMessagesEN.Labels.PAYMENT_METHOD};
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/payment_method/view/PaymentMethodTableBtnPanel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.payment_method.view;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
5 |
6 | import javax.swing.*;
7 |
8 | @Component
9 | public class PaymentMethodTableBtnPanel extends JPanel {
10 |
11 | private JButton addBtn;
12 | private JButton removeBtn;
13 |
14 | public PaymentMethodTableBtnPanel() {
15 | initComponents();
16 | }
17 |
18 | private void initComponents() {
19 | addBtn = new JButton(ConstMessagesEN.Labels.ADD_BTN);
20 | add(addBtn);
21 |
22 | removeBtn = new JButton(ConstMessagesEN.Labels.REMOVE_BTN);
23 | add(removeBtn);
24 | }
25 |
26 | public JButton getAddBtn() {
27 | return addBtn;
28 | }
29 |
30 | public JButton getRemoveBtn() {
31 | return removeBtn;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/payment_method/view/modal/PaymentMethodFormBtnPanel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.payment_method.view.modal;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
5 |
6 | import javax.swing.*;
7 |
8 | @Component
9 | public class PaymentMethodFormBtnPanel extends JPanel {
10 |
11 | private JButton saveBtn;
12 | private JButton cancelBtn;
13 |
14 | public PaymentMethodFormBtnPanel() {
15 | initComponents();
16 | }
17 |
18 | private void initComponents() {
19 | saveBtn = new JButton(ConstMessagesEN.Labels.ADD_BTN);
20 | add(saveBtn);
21 |
22 | cancelBtn = new JButton(ConstMessagesEN.Labels.CANCEL_BTN);
23 | add(cancelBtn);
24 | }
25 |
26 | public JButton getSaveBtn() {
27 | return saveBtn;
28 | }
29 |
30 | public JButton getCancelBtn() {
31 | return cancelBtn;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/rate/model/RoomComboBoxModel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.rate.model;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.entity.Room;
5 | import pl.dmichalski.reservations.business.ui.shared.model.DefaultComboBoxModel;
6 |
7 | @Component
8 | public class RoomComboBoxModel extends DefaultComboBoxModel {
9 | }
10 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/rate/model/RoomTypeComboBoxModel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.rate.model;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.entity.RoomType;
5 | import pl.dmichalski.reservations.business.ui.shared.model.DefaultComboBoxModel;
6 |
7 | @Component
8 | public class RoomTypeComboBoxModel extends DefaultComboBoxModel {
9 | }
10 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/rate/view/RateTableBtnPanel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.rate.view;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
5 |
6 | import javax.swing.*;
7 |
8 | @Component
9 | public class RateTableBtnPanel extends JPanel {
10 |
11 | private JButton addBtn;
12 | private JButton removeBtn;
13 |
14 | public RateTableBtnPanel() {
15 | initComponents();
16 | }
17 |
18 | private void initComponents() {
19 | addBtn = new JButton(ConstMessagesEN.Labels.ADD_BTN);
20 | add(addBtn);
21 |
22 | removeBtn = new JButton(ConstMessagesEN.Labels.REMOVE_BTN);
23 | add(removeBtn);
24 | }
25 |
26 | public JButton getAddBtn() {
27 | return addBtn;
28 | }
29 |
30 | public JButton getRemoveBtn() {
31 | return removeBtn;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/rate/view/modal/RateFormBtnPanel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.rate.view.modal;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
5 |
6 | import javax.swing.*;
7 |
8 | @Component
9 | public class RateFormBtnPanel extends JPanel {
10 |
11 | private JButton saveBtn;
12 | private JButton cancelBtn;
13 |
14 | public RateFormBtnPanel() {
15 | initComponents();
16 | }
17 |
18 | private void initComponents() {
19 | saveBtn = new JButton(ConstMessagesEN.Labels.ADD_BTN);
20 | add(saveBtn);
21 |
22 | cancelBtn = new JButton(ConstMessagesEN.Labels.CANCEL_BTN);
23 | add(cancelBtn);
24 | }
25 |
26 | public JButton getSaveBtn() {
27 | return saveBtn;
28 | }
29 |
30 | public JButton getCancelBtn() {
31 | return cancelBtn;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/reservation/model/ClientComboBoxModel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.reservation.model;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.entity.Client;
5 | import pl.dmichalski.reservations.business.ui.shared.model.DefaultComboBoxModel;
6 |
7 | @Component
8 | public class ClientComboBoxModel extends DefaultComboBoxModel {
9 | }
10 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/reservation/model/PaymentComboBoxModel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.reservation.model;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.entity.Payment;
5 | import pl.dmichalski.reservations.business.ui.shared.model.DefaultComboBoxModel;
6 |
7 | @Component
8 | public class PaymentComboBoxModel extends DefaultComboBoxModel {
9 | }
10 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/reservation/model/ReservationStatusComboBoxModel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.reservation.model;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.entity.ReservationStatus;
5 | import pl.dmichalski.reservations.business.ui.shared.model.DefaultComboBoxModel;
6 |
7 | @Component
8 | public class ReservationStatusComboBoxModel extends DefaultComboBoxModel {
9 | }
10 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/reservation/view/ReservationTableBtnPanel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.reservation.view;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
5 |
6 | import javax.swing.*;
7 |
8 | @Component
9 | public class ReservationTableBtnPanel extends JPanel {
10 |
11 | private JButton addBtn;
12 | private JButton removeBtn;
13 |
14 | public ReservationTableBtnPanel() {
15 | initComponents();
16 | }
17 |
18 | private void initComponents() {
19 | addBtn = new JButton(ConstMessagesEN.Labels.ADD_BTN);
20 | add(addBtn);
21 |
22 | removeBtn = new JButton(ConstMessagesEN.Labels.REMOVE_BTN);
23 | add(removeBtn);
24 | }
25 |
26 | public JButton getAddBtn() {
27 | return addBtn;
28 | }
29 |
30 | public JButton getRemoveBtn() {
31 | return removeBtn;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/reservation/view/modal/ReservationFormBtnPanel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.reservation.view.modal;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
5 |
6 | import javax.swing.*;
7 |
8 | @Component
9 | public class ReservationFormBtnPanel extends JPanel {
10 |
11 | private JButton saveBtn;
12 | private JButton cancelBtn;
13 |
14 | public ReservationFormBtnPanel() {
15 | initComponents();
16 | }
17 |
18 | private void initComponents() {
19 | saveBtn = new JButton(ConstMessagesEN.Labels.ADD_BTN);
20 | add(saveBtn);
21 |
22 | cancelBtn = new JButton(ConstMessagesEN.Labels.CANCEL_BTN);
23 | add(cancelBtn);
24 | }
25 |
26 | public JButton getSaveBtn() {
27 | return saveBtn;
28 | }
29 |
30 | public JButton getCancelBtn() {
31 | return cancelBtn;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/reservation_status/model/ReservationStatusTableModel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.reservation_status.model;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.entity.ReservationStatus;
5 | import pl.dmichalski.reservations.business.ui.shared.model.DefaultTableModel;
6 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
7 |
8 | @Component
9 | public class ReservationStatusTableModel extends DefaultTableModel {
10 |
11 | @Override
12 | public Object getValueAt(int rowIndex, int columnIndex) {
13 | ReservationStatus reservationStatus = entities.get(rowIndex);
14 | switch (columnIndex) {
15 | case 0:
16 | return reservationStatus.getReservationStatus();
17 | default:
18 | return "";
19 | }
20 | }
21 |
22 | @Override
23 | public String[] getColumnLabels() {
24 | return new String[]{
25 | ConstMessagesEN.Labels.RESERVATION_STATUS};
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/reservation_status/view/ReservationStatusTableBtnPanel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.reservation_status.view;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
5 |
6 | import javax.swing.*;
7 |
8 | @Component
9 | public class ReservationStatusTableBtnPanel extends JPanel {
10 |
11 | private JButton addBtn;
12 | private JButton removeBtn;
13 |
14 | public ReservationStatusTableBtnPanel() {
15 | initComponents();
16 | }
17 |
18 | private void initComponents() {
19 | addBtn = new JButton(ConstMessagesEN.Labels.ADD_BTN);
20 | add(addBtn);
21 |
22 | removeBtn = new JButton(ConstMessagesEN.Labels.REMOVE_BTN);
23 | add(removeBtn);
24 | }
25 |
26 | public JButton getAddBtn() {
27 | return addBtn;
28 | }
29 |
30 | public JButton getRemoveBtn() {
31 | return removeBtn;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/reservation_status/view/modal/ReservationStatusFormBtnPanel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.reservation_status.view.modal;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
5 |
6 | import javax.swing.*;
7 |
8 | @Component
9 | public class ReservationStatusFormBtnPanel extends JPanel {
10 |
11 | private JButton saveBtn;
12 | private JButton cancelBtn;
13 |
14 | public ReservationStatusFormBtnPanel() {
15 | initComponents();
16 | }
17 |
18 | private void initComponents() {
19 | saveBtn = new JButton(ConstMessagesEN.Labels.ADD_BTN);
20 | add(saveBtn);
21 |
22 | cancelBtn = new JButton(ConstMessagesEN.Labels.CANCEL_BTN);
23 | add(cancelBtn);
24 | }
25 |
26 | public JButton getSaveBtn() {
27 | return saveBtn;
28 | }
29 |
30 | public JButton getCancelBtn() {
31 | return cancelBtn;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/room/model/RoomStatusComboBoxModel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.room.model;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.entity.RoomStatus;
5 | import pl.dmichalski.reservations.business.ui.shared.model.DefaultComboBoxModel;
6 |
7 | @Component
8 | public class RoomStatusComboBoxModel extends DefaultComboBoxModel {
9 | }
10 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/room/view/RoomTableBtnPanel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.room.view;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
5 |
6 | import javax.swing.*;
7 |
8 | @Component
9 | public class RoomTableBtnPanel extends JPanel {
10 |
11 | private JButton addBtn;
12 | private JButton removeBtn;
13 |
14 | public RoomTableBtnPanel() {
15 | initComponents();
16 | }
17 |
18 | private void initComponents() {
19 | addBtn = new JButton(ConstMessagesEN.Labels.ADD_BTN);
20 | add(addBtn);
21 |
22 | removeBtn = new JButton(ConstMessagesEN.Labels.REMOVE_BTN);
23 | add(removeBtn);
24 | }
25 |
26 | public JButton getAddBtn() {
27 | return addBtn;
28 | }
29 |
30 | public JButton getRemoveBtn() {
31 | return removeBtn;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/room/view/modal/RoomFormBtnPanel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.room.view.modal;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
5 |
6 | import javax.swing.*;
7 |
8 | @Component
9 | public class RoomFormBtnPanel extends JPanel {
10 |
11 | private JButton saveBtn;
12 | private JButton cancelBtn;
13 |
14 | public RoomFormBtnPanel() {
15 | initComponents();
16 | }
17 |
18 | private void initComponents() {
19 | saveBtn = new JButton(ConstMessagesEN.Labels.ADD_BTN);
20 | add(saveBtn);
21 |
22 | cancelBtn = new JButton(ConstMessagesEN.Labels.CANCEL_BTN);
23 | add(cancelBtn);
24 | }
25 |
26 | public JButton getSaveBtn() {
27 | return saveBtn;
28 | }
29 |
30 | public JButton getCancelBtn() {
31 | return cancelBtn;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/room_status/model/RoomStatusTableModel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.room_status.model;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.entity.RoomStatus;
5 | import pl.dmichalski.reservations.business.ui.shared.model.DefaultTableModel;
6 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
7 |
8 | @Component
9 | public class RoomStatusTableModel extends DefaultTableModel {
10 |
11 | @Override
12 | public Object getValueAt(int rowIndex, int columnIndex) {
13 | RoomStatus roomStatus = entities.get(rowIndex);
14 | switch (columnIndex) {
15 | case 0:
16 | return roomStatus.getRoomStatus();
17 | case 1:
18 | return roomStatus.getDescription();
19 | default:
20 | return "";
21 | }
22 | }
23 |
24 | @Override
25 | public String[] getColumnLabels() {
26 | return new String[]{
27 | ConstMessagesEN.Labels.ROOM_STATUS,
28 | ConstMessagesEN.Labels.ROOM_STATUS_DESCRIPTION};
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/room_status/view/RoomStatusTableBtnPanel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.room_status.view;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
5 |
6 | import javax.swing.*;
7 |
8 | @Component
9 | public class RoomStatusTableBtnPanel extends JPanel {
10 |
11 | private JButton addBtn;
12 | private JButton removeBtn;
13 |
14 | public RoomStatusTableBtnPanel() {
15 | initComponents();
16 | }
17 |
18 | private void initComponents() {
19 | addBtn = new JButton(ConstMessagesEN.Labels.ADD_BTN);
20 | add(addBtn);
21 |
22 | removeBtn = new JButton(ConstMessagesEN.Labels.REMOVE_BTN);
23 | add(removeBtn);
24 | }
25 |
26 | public JButton getAddBtn() {
27 | return addBtn;
28 | }
29 |
30 | public JButton getRemoveBtn() {
31 | return removeBtn;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/room_status/view/modal/RoomStatusFormBtnPanel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.room_status.view.modal;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
5 |
6 | import javax.swing.*;
7 |
8 | @Component
9 | public class RoomStatusFormBtnPanel extends JPanel {
10 |
11 | private JButton saveBtn;
12 | private JButton cancelBtn;
13 |
14 | public RoomStatusFormBtnPanel() {
15 | initComponents();
16 | }
17 |
18 | private void initComponents() {
19 | saveBtn = new JButton(ConstMessagesEN.Labels.ADD_BTN);
20 | add(saveBtn);
21 |
22 | cancelBtn = new JButton(ConstMessagesEN.Labels.CANCEL_BTN);
23 | add(cancelBtn);
24 | }
25 |
26 | public JButton getSaveBtn() {
27 | return saveBtn;
28 | }
29 |
30 | public JButton getCancelBtn() {
31 | return cancelBtn;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/room_type/model/RoomTypeTableModel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.room_type.model;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.entity.RoomType;
5 | import pl.dmichalski.reservations.business.ui.shared.model.DefaultTableModel;
6 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
7 |
8 | @Component
9 | public class RoomTypeTableModel extends DefaultTableModel {
10 |
11 | @Override
12 | public Object getValueAt(int rowIndex, int columnIndex) {
13 | RoomType roomType = entities.get(rowIndex);
14 | switch (columnIndex) {
15 | case 0:
16 | return roomType.getDescription();
17 | case 1:
18 | return roomType.getMultiplier();
19 | default:
20 | return "";
21 | }
22 | }
23 |
24 | @Override
25 | public String[] getColumnLabels() {
26 | return new String[]{
27 | ConstMessagesEN.Labels.ROOM_TYPE,
28 | ConstMessagesEN.Labels.ROOM_MULTIPLIER};
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/room_type/view/RoomTypeTableBtnPanel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.room_type.view;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
5 |
6 | import javax.swing.*;
7 |
8 | @Component
9 | public class RoomTypeTableBtnPanel extends JPanel {
10 |
11 | private JButton addBtn;
12 | private JButton removeBtn;
13 |
14 | public RoomTypeTableBtnPanel() {
15 | initComponents();
16 | }
17 |
18 | private void initComponents() {
19 | addBtn = new JButton(ConstMessagesEN.Labels.ADD_BTN);
20 | add(addBtn);
21 |
22 | removeBtn = new JButton(ConstMessagesEN.Labels.REMOVE_BTN);
23 | add(removeBtn);
24 | }
25 |
26 | public JButton getAddBtn() {
27 | return addBtn;
28 | }
29 |
30 | public JButton getRemoveBtn() {
31 | return removeBtn;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/room_type/view/modal/RoomTypeFormBtnPanel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.room_type.view.modal;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
5 |
6 | import javax.swing.*;
7 |
8 | @Component
9 | public class RoomTypeFormBtnPanel extends JPanel {
10 |
11 | private JButton saveBtn;
12 | private JButton cancelBtn;
13 |
14 | public RoomTypeFormBtnPanel() {
15 | initComponents();
16 | }
17 |
18 | private void initComponents() {
19 | saveBtn = new JButton(ConstMessagesEN.Labels.ADD_BTN);
20 | add(saveBtn);
21 |
22 | cancelBtn = new JButton(ConstMessagesEN.Labels.CANCEL_BTN);
23 | add(cancelBtn);
24 | }
25 |
26 | public JButton getSaveBtn() {
27 | return saveBtn;
28 | }
29 |
30 | public JButton getCancelBtn() {
31 | return cancelBtn;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/room_x_reservation/model/ReservationsComboBoxModel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.room_x_reservation.model;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.entity.Reservation;
5 | import pl.dmichalski.reservations.business.ui.shared.model.DefaultComboBoxModel;
6 |
7 | @Component
8 | public class ReservationsComboBoxModel extends DefaultComboBoxModel {
9 | }
10 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/room_x_reservation/view/RoomXReservationTableBtnPanel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.room_x_reservation.view;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
5 |
6 | import javax.swing.*;
7 |
8 | @Component
9 | public class RoomXReservationTableBtnPanel extends JPanel {
10 |
11 | private JButton addBtn;
12 | private JButton removeBtn;
13 |
14 | public RoomXReservationTableBtnPanel() {
15 | initComponents();
16 | }
17 |
18 | private void initComponents() {
19 | addBtn = new JButton(ConstMessagesEN.Labels.ADD_BTN);
20 | add(addBtn);
21 |
22 | removeBtn = new JButton(ConstMessagesEN.Labels.REMOVE_BTN);
23 | add(removeBtn);
24 | }
25 |
26 | public JButton getAddBtn() {
27 | return addBtn;
28 | }
29 |
30 | public JButton getRemoveBtn() {
31 | return removeBtn;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/forms/room_x_reservation/view/modal/RoomXReservationFormBtnPanel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.forms.room_x_reservation.view.modal;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.util.ConstMessagesEN;
5 |
6 | import javax.swing.*;
7 |
8 | @Component
9 | public class RoomXReservationFormBtnPanel extends JPanel {
10 |
11 | private JButton saveBtn;
12 | private JButton cancelBtn;
13 |
14 | public RoomXReservationFormBtnPanel() {
15 | initComponents();
16 | }
17 |
18 | private void initComponents() {
19 | saveBtn = new JButton(ConstMessagesEN.Labels.ADD_BTN);
20 | add(saveBtn);
21 |
22 | cancelBtn = new JButton(ConstMessagesEN.Labels.CANCEL_BTN);
23 | add(cancelBtn);
24 | }
25 |
26 | public JButton getSaveBtn() {
27 | return saveBtn;
28 | }
29 |
30 | public JButton getCancelBtn() {
31 | return cancelBtn;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/shared/controller/AbstractFrameController.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.shared.controller;
2 |
3 | import javax.swing.*;
4 | import java.awt.event.ActionListener;
5 |
6 | public abstract class AbstractFrameController {
7 |
8 | public abstract void prepareAndOpenFrame();
9 |
10 | protected void registerAction(JButton button, ActionListener listener) {
11 | button.addActionListener(listener);
12 | }
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/ui/shared/model/DefaultComboBoxModel.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.ui.shared.model;
2 |
3 | import java.util.List;
4 |
5 | public abstract class DefaultComboBoxModel extends javax.swing.DefaultComboBoxModel {
6 |
7 | @Override
8 | public T getSelectedItem() {
9 | return (T) super.getSelectedItem();
10 | }
11 |
12 | public void addElements(List elements) {
13 | elements.forEach(this::addElement);
14 | }
15 |
16 | public void clear() {
17 | removeAllElements();
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/util/Borders.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.util;
2 |
3 | import javax.swing.*;
4 | import javax.swing.border.Border;
5 |
6 | public class Borders {
7 |
8 | private static final int WIDTH = 40;
9 | private static final int HEIGHT = 20;
10 |
11 | public static Border createEmptyBorder() {
12 | return BorderFactory.createEmptyBorder(HEIGHT, WIDTH, HEIGHT, WIDTH);
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/util/DateFormatter.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.util;
2 |
3 | import java.text.SimpleDateFormat;
4 | import java.util.Date;
5 |
6 | public class DateFormatter {
7 |
8 | public static String formatDate(Date date) {
9 | SimpleDateFormat formatter = new SimpleDateFormat("dd-MM-yyyy");
10 | return formatter.format(date);
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/util/LookAndFeelUtils.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.util;
2 |
3 | import javax.swing.*;
4 |
5 | public class LookAndFeelUtils {
6 |
7 | public static void setWindowsLookAndFeel() {
8 | try {
9 | UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
10 | } catch (Exception e) {
11 | JOptionPane.showMessageDialog(
12 | null,
13 | ConstMessagesEN.Messages.WINDOWS_STYLE_LOADING_ERROR_MESSAGE + e,
14 | ConstMessagesEN.Messages.ALERT_TILE,
15 | JOptionPane.ERROR_MESSAGE);
16 | }
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/util/Notifications.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.util;
2 |
3 | import javax.swing.*;
4 |
5 | public class Notifications {
6 |
7 | public static void showFormValidationAlert(String message) {
8 | JOptionPane.showMessageDialog(null,
9 | message,
10 | ConstMessagesEN.Messages.INFORMATION_TITLE,
11 | JOptionPane.INFORMATION_MESSAGE);
12 | }
13 |
14 | public static void showTableRowNotSelectedAlert() {
15 | JOptionPane.showMessageDialog(null,
16 | ConstMessagesEN.Messages.NON_ROW_SELECTED,
17 | ConstMessagesEN.Messages.ALERT_TILE,
18 | JOptionPane.ERROR_MESSAGE);
19 | }
20 |
21 | public static void showDeleteRowErrorMessage() {
22 | JOptionPane.showMessageDialog(null,
23 | ConstMessagesEN.Messages.DELETE_ROW_ERROR,
24 | ConstMessagesEN.Messages.ALERT_TILE,
25 | JOptionPane.ERROR_MESSAGE);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/validation/AddressValidator.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.validation;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.entity.Address;
5 |
6 | import java.util.Optional;
7 |
8 | import static pl.dmichalski.reservations.business.util.ConstMessagesEN.ValidationMessages.REQUIRED_DATA_NOT_FILLED_OR_BAD_DATA;
9 |
10 | @Component
11 | public class AddressValidator extends ValidationSupport implements Validator {
12 |
13 | @Override
14 | public Optional validate(Address address) {
15 | if (isNullOrEmptyString(address.getStreet()) ||
16 | isNullOrEmptyString(address.getHouseNumber()) ||
17 | isNullOrEmptyString(address.getFlatNumber()) ||
18 | isNullOrEmptyString(address.getCity()) ||
19 | isNullOrEmptyString(address.getPostCode())) {
20 | return Optional.of(new ValidationError(REQUIRED_DATA_NOT_FILLED_OR_BAD_DATA));
21 | }
22 | return Optional.empty();
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/validation/PaymentMethodValidator.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.validation;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.entity.PaymentMethod;
5 |
6 | import java.util.Optional;
7 |
8 | import static pl.dmichalski.reservations.business.util.ConstMessagesEN.ValidationMessages.REQUIRED_DATA_NOT_FILLED_OR_BAD_DATA;
9 |
10 | @Component
11 | public class PaymentMethodValidator extends ValidationSupport implements Validator {
12 |
13 | @Override
14 | public Optional validate(PaymentMethod paymentMethod) {
15 | if (isNullOrEmptyString(paymentMethod.getName())) {
16 | return Optional.of(new ValidationError(REQUIRED_DATA_NOT_FILLED_OR_BAD_DATA));
17 | }
18 | return Optional.empty();
19 | }
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/validation/PaymentValidator.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.validation;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.entity.Payment;
5 |
6 | import java.util.Optional;
7 |
8 | import static java.util.Optional.empty;
9 | import static pl.dmichalski.reservations.business.util.ConstMessagesEN.ValidationMessages.REQUIRED_DATA_NOT_FILLED_OR_BAD_DATA;
10 |
11 | @Component
12 | public class PaymentValidator extends ValidationSupport implements Validator {
13 |
14 | @Override
15 | public Optional validate(Payment payment) {
16 | if (isNullValue(payment.getPaymentMethod())
17 | || !isValueGreaterThanZero(payment.getValue())
18 | || isNullValue(payment.getDateOfPayments())) {
19 | return Optional.of(new ValidationError(REQUIRED_DATA_NOT_FILLED_OR_BAD_DATA));
20 | }
21 | return empty();
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/validation/RateValidator.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.validation;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.entity.Rate;
5 |
6 | import java.util.Optional;
7 |
8 | import static pl.dmichalski.reservations.business.util.ConstMessagesEN.ValidationMessages.REQUIRED_DATA_NOT_FILLED_OR_BAD_DATA;
9 |
10 | @Component
11 | public class RateValidator extends ValidationSupport implements Validator {
12 |
13 | @Override
14 | public Optional validate(Rate rate) {
15 | if (isNullValue(rate.getRoom()) ||
16 | isNullValue(rate.getRoomType()) ||
17 | !isValueGreaterThanZero(rate.getBasicRate())) {
18 | return Optional.of(new ValidationError(REQUIRED_DATA_NOT_FILLED_OR_BAD_DATA));
19 | }
20 | return Optional.empty();
21 | }
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/validation/ReservationStatusValidator.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.validation;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.entity.ReservationStatus;
5 |
6 | import java.util.Optional;
7 |
8 | import static pl.dmichalski.reservations.business.util.ConstMessagesEN.ValidationMessages.REQUIRED_DATA_NOT_FILLED_OR_BAD_DATA;
9 |
10 | @Component
11 | public class ReservationStatusValidator extends ValidationSupport implements Validator {
12 |
13 | @Override
14 | public Optional validate(ReservationStatus reservationStatus) {
15 | if (isNullOrEmptyString(reservationStatus.getReservationStatus())) {
16 | return Optional.of(new ValidationError(REQUIRED_DATA_NOT_FILLED_OR_BAD_DATA));
17 | }
18 | return Optional.empty();
19 | }
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/validation/RoomStatusValidator.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.validation;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.entity.RoomStatus;
5 |
6 | import java.util.Optional;
7 |
8 | import static pl.dmichalski.reservations.business.util.ConstMessagesEN.ValidationMessages.REQUIRED_DATA_NOT_FILLED_OR_BAD_DATA;
9 |
10 | @Component
11 | public class RoomStatusValidator extends ValidationSupport implements Validator {
12 |
13 | @Override
14 | public Optional validate(RoomStatus roomStatus) {
15 | if (isNullOrEmptyString(roomStatus.getRoomStatus()) ||
16 | isNullOrEmptyString(roomStatus.getDescription())) {
17 | return Optional.of(new ValidationError(REQUIRED_DATA_NOT_FILLED_OR_BAD_DATA));
18 | }
19 | return Optional.empty();
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/validation/RoomTypeValidator.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.validation;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.entity.RoomType;
5 |
6 | import java.util.Optional;
7 |
8 | import static pl.dmichalski.reservations.business.util.ConstMessagesEN.ValidationMessages.REQUIRED_DATA_NOT_FILLED_OR_BAD_DATA;
9 |
10 | @Component
11 | public class RoomTypeValidator extends ValidationSupport implements Validator {
12 |
13 | @Override
14 | public Optional validate(RoomType roomType) {
15 | if (isNullOrEmptyString(roomType.getDescription()) ||
16 | !isValueGreaterThanZero(roomType.getMultiplier())) {
17 | return Optional.of(new ValidationError(REQUIRED_DATA_NOT_FILLED_OR_BAD_DATA));
18 | }
19 | return Optional.empty();
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/validation/RoomValidator.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.validation;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.entity.Room;
5 |
6 | import java.util.Optional;
7 |
8 | import static pl.dmichalski.reservations.business.util.ConstMessagesEN.ValidationMessages.REQUIRED_DATA_NOT_FILLED_OR_BAD_DATA;
9 |
10 | @Component
11 | public class RoomValidator extends ValidationSupport implements Validator {
12 |
13 | @Override
14 | public Optional validate(Room room) {
15 | if (isNullValue(room.getRoomStatus()) ||
16 | !isValueGreaterThanZero(room.getNumberOfPeople()) ||
17 | isNullOrEmptyString(room.getDescription())) {
18 | return Optional.of(new ValidationError(REQUIRED_DATA_NOT_FILLED_OR_BAD_DATA));
19 | }
20 | return Optional.empty();
21 | }
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/validation/RoomXReservationValidator.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.validation;
2 |
3 | import org.springframework.stereotype.Component;
4 | import pl.dmichalski.reservations.business.entity.RoomXReservation;
5 |
6 | import java.util.Optional;
7 |
8 | import static pl.dmichalski.reservations.business.util.ConstMessagesEN.ValidationMessages.REQUIRED_DATA_NOT_FILLED_OR_BAD_DATA;
9 |
10 | @Component
11 | public class RoomXReservationValidator extends ValidationSupport implements Validator {
12 |
13 | @Override
14 | public Optional validate(RoomXReservation roomXReservation) {
15 | if (isNullValue(roomXReservation.getReservation()) ||
16 | isNullValue(roomXReservation.getReservation()) ||
17 | !isValueGreaterThanZero(roomXReservation.getRoomPrice())) {
18 | return Optional.of(new ValidationError(REQUIRED_DATA_NOT_FILLED_OR_BAD_DATA));
19 | }
20 | return Optional.empty();
21 | }
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/validation/ValidationError.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.validation;
2 |
3 | public class ValidationError {
4 |
5 | private String message;
6 |
7 | public ValidationError(String message) {
8 | this.message = message;
9 | }
10 |
11 | public String getMessage() {
12 | return message;
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/validation/ValidationSupport.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.validation;
2 |
3 | import com.google.common.base.Strings;
4 |
5 | public abstract class ValidationSupport {
6 |
7 | boolean isNullOrEmptyString(String value) {
8 | return Strings.isNullOrEmpty(value);
9 | }
10 |
11 | boolean isNullValue(Object value) {
12 | return value == null;
13 | }
14 |
15 | boolean isValueGreaterThanZero(long value) {
16 | return value > 0;
17 | }
18 |
19 | boolean isValueGreaterThanZero(double value) {
20 | return value > 0;
21 | }
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/business/validation/Validator.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.business.validation;
2 |
3 | import java.util.Optional;
4 |
5 | interface Validator {
6 |
7 | Optional validate(K k);
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/java/pl/dmichalski/reservations/system/spring/ApplicationConfiguration.java:
--------------------------------------------------------------------------------
1 | package pl.dmichalski.reservations.system.spring;
2 |
3 | import org.springframework.context.annotation.ComponentScan;
4 | import org.springframework.context.annotation.Configuration;
5 | import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
6 |
7 | @Configuration
8 | @ComponentScan(basePackages = "pl.dmichalski.reservations.business")
9 | @EnableJpaRepositories(basePackages = "pl.dmichalski.reservations.business.repository")
10 | public class ApplicationConfiguration {
11 | }
12 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/resources/application-prod.yml:
--------------------------------------------------------------------------------
1 | spring:
2 | datasource:
3 | url: jdbc:postgresql://localhost:5432/reservations
4 | username: postgres
5 | password: postgres
6 | driver-class-name: org.postgresql.Driver
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/resources/application.yml:
--------------------------------------------------------------------------------
1 | spring:
2 | datasource:
3 | platform: h2
4 | url: jdbc:h2:mem:;DB_CLOSE_ON_EXIT=FALSE
5 | username: sa
6 | password:
7 | driver-class-name: org.h2.Driver
8 | schema: /sql/dev/schema-h2.sql
9 | data: /sql/dev/data-h2.sql
10 | jpa:
11 | hibernate:
12 | ddl-auto: update
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/resources/banner.txt:
--------------------------------------------------------------------------------
1 | _ _
2 | | | (_)
3 | _ __ ___ ___ ___ _ ____ ____ _| |_ _ ___ _ __ ___
4 | | '__/ _ / __|/ _ | '__\ \ / / _` | __| |/ _ \| '_ \/ __|
5 | | | | __\__ | __| | \ V | (_| | |_| | (_) | | | \__ \
6 | |_| \___|___/\___|_| \_/ \__,_|\__|_|\___/|_| |_|___/ Spring Boot ${spring-boot.version}
7 |
8 |
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/resources/images/db_schema.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/spring-boot-swing-reservations-master/src/main/resources/images/db_schema.png
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/resources/images/form1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/spring-boot-swing-reservations-master/src/main/resources/images/form1.png
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/resources/images/form2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/spring-boot-swing-reservations-master/src/main/resources/images/form2.png
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/resources/images/forms.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/spring-boot-swing-reservations-master/src/main/resources/images/forms.png
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/resources/images/reports.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/spring-boot-swing-reservations-master/src/main/resources/images/reports.png
--------------------------------------------------------------------------------
/spring-boot-swing-reservations-master/src/main/resources/images/spring_boot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/spring-boot-swing-reservations-master/src/main/resources/images/spring_boot.png
--------------------------------------------------------------------------------
/swingBeginers/build/classes/.netbeans_automatic_build:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingBeginers/build/classes/.netbeans_automatic_build
--------------------------------------------------------------------------------
/swingBeginers/build/classes/.netbeans_update_resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingBeginers/build/classes/.netbeans_update_resources
--------------------------------------------------------------------------------
/swingBeginers/build/classes/META-INF/persistence.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | org.eclipse.persistence.jpa.PersistenceProvider
5 | com.coderbd.User
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/swingBeginers/build/classes/com/coderbd/Ex01Base$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingBeginers/build/classes/com/coderbd/Ex01Base$1.class
--------------------------------------------------------------------------------
/swingBeginers/build/classes/com/coderbd/Ex01Base$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingBeginers/build/classes/com/coderbd/Ex01Base$2.class
--------------------------------------------------------------------------------
/swingBeginers/build/classes/com/coderbd/Ex01Base$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingBeginers/build/classes/com/coderbd/Ex01Base$3.class
--------------------------------------------------------------------------------
/swingBeginers/build/classes/com/coderbd/Ex01Base$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingBeginers/build/classes/com/coderbd/Ex01Base$4.class
--------------------------------------------------------------------------------
/swingBeginers/build/classes/com/coderbd/Ex01Base$5.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingBeginers/build/classes/com/coderbd/Ex01Base$5.class
--------------------------------------------------------------------------------
/swingBeginers/build/classes/com/coderbd/Ex01Base.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingBeginers/build/classes/com/coderbd/Ex01Base.class
--------------------------------------------------------------------------------
/swingBeginers/build/classes/com/coderbd/Ex02Table.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingBeginers/build/classes/com/coderbd/Ex02Table.class
--------------------------------------------------------------------------------
/swingBeginers/build/classes/com/coderbd/Ex03AdddataIntoTable$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingBeginers/build/classes/com/coderbd/Ex03AdddataIntoTable$1.class
--------------------------------------------------------------------------------
/swingBeginers/build/classes/com/coderbd/Ex03AdddataIntoTable$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingBeginers/build/classes/com/coderbd/Ex03AdddataIntoTable$2.class
--------------------------------------------------------------------------------
/swingBeginers/build/classes/com/coderbd/Ex03AdddataIntoTable$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingBeginers/build/classes/com/coderbd/Ex03AdddataIntoTable$3.class
--------------------------------------------------------------------------------
/swingBeginers/build/classes/com/coderbd/Ex03AdddataIntoTable.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingBeginers/build/classes/com/coderbd/Ex03AdddataIntoTable.class
--------------------------------------------------------------------------------
/swingBeginers/build/classes/com/coderbd/Ex04RadioCheckSelectBox$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingBeginers/build/classes/com/coderbd/Ex04RadioCheckSelectBox$1.class
--------------------------------------------------------------------------------
/swingBeginers/build/classes/com/coderbd/Ex04RadioCheckSelectBox$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingBeginers/build/classes/com/coderbd/Ex04RadioCheckSelectBox$2.class
--------------------------------------------------------------------------------
/swingBeginers/build/classes/com/coderbd/Ex04RadioCheckSelectBox$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingBeginers/build/classes/com/coderbd/Ex04RadioCheckSelectBox$3.class
--------------------------------------------------------------------------------
/swingBeginers/build/classes/com/coderbd/Ex04RadioCheckSelectBox.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingBeginers/build/classes/com/coderbd/Ex04RadioCheckSelectBox.class
--------------------------------------------------------------------------------
/swingBeginers/build/classes/com/coderbd/Ex05Validation$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingBeginers/build/classes/com/coderbd/Ex05Validation$1.class
--------------------------------------------------------------------------------
/swingBeginers/build/classes/com/coderbd/Ex05Validation$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingBeginers/build/classes/com/coderbd/Ex05Validation$2.class
--------------------------------------------------------------------------------
/swingBeginers/build/classes/com/coderbd/Ex05Validation$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingBeginers/build/classes/com/coderbd/Ex05Validation$3.class
--------------------------------------------------------------------------------
/swingBeginers/build/classes/com/coderbd/Ex05Validation.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingBeginers/build/classes/com/coderbd/Ex05Validation.class
--------------------------------------------------------------------------------
/swingBeginers/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/swingBeginers/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=774ebca7
2 | build.xml.script.CRC32=a91cacc4
3 | build.xml.stylesheet.CRC32=8064a381@1.75.2.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=774ebca7
7 | nbproject/build-impl.xml.script.CRC32=0b2aef87
8 | nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
9 |
--------------------------------------------------------------------------------
/swingBeginers/nbproject/private/private.properties:
--------------------------------------------------------------------------------
1 | compile.on.save=true
2 | user.properties.file=C:\\Users\\Rajail Islam\\AppData\\Roaming\\NetBeans\\8.2\\build.properties
3 |
--------------------------------------------------------------------------------
/swingBeginers/nbproject/private/private.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/swingBeginers/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | swingBeginers
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/swingBeginers/src/META-INF/persistence.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | org.eclipse.persistence.jpa.PersistenceProvider
5 | com.coderbd.User
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/swingBeginers/test/Test.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 |
7 | /**
8 | *
9 | * @author Rajail Islam
10 | */
11 | public class Test {
12 | public static void main(String[] args) {
13 |
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/swingCrudEx/db.txt:
--------------------------------------------------------------------------------
1 | CREATE TABLE `tbl_person` (
2 | `id` int(11) NOT NULL AUTO_INCREMENT,
3 | `name` varchar(45) DEFAULT NULL,
4 | `email` varchar(45) DEFAULT NULL,
5 | `birthDate` varchar(45) DEFAULT NULL,
6 | `gender` varchar(45) DEFAULT NULL,
7 | `hobby` varchar(45) DEFAULT NULL,
8 | `country` varchar(45) DEFAULT NULL,
9 | `note` varchar(245) DEFAULT NULL,
10 | PRIMARY KEY (`id`)
11 | ) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8;
12 |
--------------------------------------------------------------------------------
/swingCrudEx/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 4.0.0
4 | com.coderbd
5 | swingCrudEx
6 | 1.0.1
7 | jar
8 |
9 | UTF-8
10 | 1.8
11 | 1.8
12 |
13 |
14 |
15 | mysql
16 | mysql-connector-java
17 | 5.1.6
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/swingCrudEx/src/main/java/com/coderbd/connection/DbConnection.java:
--------------------------------------------------------------------------------
1 | package com.coderbd.connection;
2 |
3 | import java.sql.Connection;
4 | import java.sql.DriverManager;
5 | import java.sql.SQLException;
6 | import java.util.logging.Level;
7 | import java.util.logging.Logger;
8 |
9 | /**
10 | *
11 | * @author Rajail Islam
12 | */
13 | public class DbConnection {
14 |
15 | private static final String HOST = "jdbc:mysql://localhost:3306";
16 | private static final String DBNMAE = "swing";
17 | private static final String URL = HOST + "/" + DBNMAE;
18 | private static Connection con = null;
19 |
20 | public static Connection getConnection() {
21 | try {
22 | con = DriverManager.getConnection(URL, "root", "1234");
23 | System.out.println("::Connected::");
24 | } catch (SQLException ex) {
25 | Logger.getLogger(DbConnection.class.getName()).log(Level.SEVERE, null, ex);
26 | }
27 | return con;
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/swingCrudEx/src/main/java/com/coderbd/dao/CountryDAO.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package com.coderbd.dao;
7 |
8 | import com.coderbd.domain.Country;
9 | import java.util.Set;
10 |
11 | /**
12 | *
13 | * @author Rajail Islam
14 | */
15 | public interface CountryDAO {
16 |
17 | void save(Country c);
18 |
19 | void saveList(Set countries);
20 |
21 | Set getCountries();
22 | }
23 |
--------------------------------------------------------------------------------
/swingCrudEx/src/main/java/com/coderbd/dao/PersonDAO.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package com.coderbd.dao;
7 |
8 | import com.coderbd.domain.Person;
9 | import java.util.List;
10 |
11 | /**
12 | *
13 | * @author Rajail Islam
14 | */
15 | public interface PersonDAO {
16 |
17 | void save(Person p);
18 |
19 | void update(Person p);
20 |
21 | void delete(int id);
22 |
23 | List getPersons();
24 |
25 | Person getPerson(int id);
26 | }
27 |
--------------------------------------------------------------------------------
/swingCrudEx/src/main/java/com/coderbd/domain/Country.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package com.coderbd.domain;
7 |
8 | /**
9 | *
10 | * @author Rajail Islam
11 | */
12 | public class Country {
13 | private int id;
14 | private String name;
15 |
16 | public Country() {
17 | }
18 |
19 | public Country(int id, String name) {
20 | this.id = id;
21 | this.name = name;
22 | }
23 |
24 | public Country(String name) {
25 | this.name = name;
26 | }
27 |
28 | public int getId() {
29 | return id;
30 | }
31 |
32 | public String getName() {
33 | return name;
34 | }
35 |
36 | public void setId(int id) {
37 | this.id = id;
38 | }
39 |
40 | public void setName(String name) {
41 | this.name = name;
42 | }
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/swingdemo/build/built-jar.properties:
--------------------------------------------------------------------------------
1 | #Tue, 03 Oct 2017 01:57:02 +0600
2 |
3 |
4 | C\:\\xampp\\htdocs\\wordappz\\wp-content\\plugins\\database-browser\\swingdemo=
5 |
--------------------------------------------------------------------------------
/swingdemo/build/classes/.netbeans_automatic_build:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingdemo/build/classes/.netbeans_automatic_build
--------------------------------------------------------------------------------
/swingdemo/build/classes/.netbeans_update_resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingdemo/build/classes/.netbeans_update_resources
--------------------------------------------------------------------------------
/swingdemo/build/classes/META-INF/persistence.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | org.eclipse.persistence.jpa.PersistenceProvider
5 | swingdemo.crud.Person
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/swingdemo/build/classes/resouces.res:
--------------------------------------------------------------------------------
1 | META-INF/orm.xml
2 | META-INF/eclipselink-orm.xml
3 |
--------------------------------------------------------------------------------
/swingdemo/build/classes/swingdemo/AllFields$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingdemo/build/classes/swingdemo/AllFields$1.class
--------------------------------------------------------------------------------
/swingdemo/build/classes/swingdemo/AllFields$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingdemo/build/classes/swingdemo/AllFields$2.class
--------------------------------------------------------------------------------
/swingdemo/build/classes/swingdemo/AllFields$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingdemo/build/classes/swingdemo/AllFields$3.class
--------------------------------------------------------------------------------
/swingdemo/build/classes/swingdemo/AllFields.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingdemo/build/classes/swingdemo/AllFields.class
--------------------------------------------------------------------------------
/swingdemo/build/classes/swingdemo/Test$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingdemo/build/classes/swingdemo/Test$1.class
--------------------------------------------------------------------------------
/swingdemo/build/classes/swingdemo/Test$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingdemo/build/classes/swingdemo/Test$2.class
--------------------------------------------------------------------------------
/swingdemo/build/classes/swingdemo/Test$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingdemo/build/classes/swingdemo/Test$3.class
--------------------------------------------------------------------------------
/swingdemo/build/classes/swingdemo/Test.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingdemo/build/classes/swingdemo/Test.class
--------------------------------------------------------------------------------
/swingdemo/build/classes/swingdemo/connection/MySQLConnection.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingdemo/build/classes/swingdemo/connection/MySQLConnection.class
--------------------------------------------------------------------------------
/swingdemo/build/classes/swingdemo/connection/TestConnection.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingdemo/build/classes/swingdemo/connection/TestConnection.class
--------------------------------------------------------------------------------
/swingdemo/build/classes/swingdemo/crud/Data$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingdemo/build/classes/swingdemo/crud/Data$1.class
--------------------------------------------------------------------------------
/swingdemo/build/classes/swingdemo/crud/Data.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingdemo/build/classes/swingdemo/crud/Data.class
--------------------------------------------------------------------------------
/swingdemo/build/classes/swingdemo/crud/Person.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingdemo/build/classes/swingdemo/crud/Person.class
--------------------------------------------------------------------------------
/swingdemo/build/classes/swingdemo/crud/Person.rapt:
--------------------------------------------------------------------------------
1 | swingdemo/crud/Person_.java
2 |
--------------------------------------------------------------------------------
/swingdemo/build/classes/swingdemo/crud/Person_.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingdemo/build/classes/swingdemo/crud/Person_.class
--------------------------------------------------------------------------------
/swingdemo/build/generated-sources/ap-source-output/swingdemo/crud/Person_.java:
--------------------------------------------------------------------------------
1 | package swingdemo.crud;
2 |
3 | import javax.annotation.Generated;
4 | import javax.persistence.metamodel.SingularAttribute;
5 | import javax.persistence.metamodel.StaticMetamodel;
6 |
7 | @Generated(value="EclipseLink-2.5.2.v20140319-rNA", date="2017-10-03T01:57:05")
8 | @StaticMetamodel(Person.class)
9 | public class Person_ {
10 |
11 | public static volatile SingularAttribute country;
12 | public static volatile SingularAttribute gender;
13 | public static volatile SingularAttribute name;
14 | public static volatile SingularAttribute id;
15 | public static volatile SingularAttribute hobby;
16 |
17 | }
--------------------------------------------------------------------------------
/swingdemo/dist/lib/eclipselink.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingdemo/dist/lib/eclipselink.jar
--------------------------------------------------------------------------------
/swingdemo/dist/lib/javax.persistence_2.1.0.v201304241213.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingdemo/dist/lib/javax.persistence_2.1.0.v201304241213.jar
--------------------------------------------------------------------------------
/swingdemo/dist/lib/mysql-connector-java-5.0.8-bin.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingdemo/dist/lib/mysql-connector-java-5.0.8-bin.jar
--------------------------------------------------------------------------------
/swingdemo/dist/lib/org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingdemo/dist/lib/org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar
--------------------------------------------------------------------------------
/swingdemo/dist/swingdemo.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/springapidev/swing/2f1c01246e8db66c6353179a088593b2d16576eb/swingdemo/dist/swingdemo.jar
--------------------------------------------------------------------------------
/swingdemo/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/swingdemo/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=2743c8e9
2 | build.xml.script.CRC32=32b2fad3
3 | build.xml.stylesheet.CRC32=8064a381@1.80.1.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=2743c8e9
7 | nbproject/build-impl.xml.script.CRC32=b0c54d2b
8 | nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
9 |
--------------------------------------------------------------------------------
/swingdemo/nbproject/private/private.properties:
--------------------------------------------------------------------------------
1 | compile.on.save=true
2 | user.properties.file=C:\\Users\\Rajail Islam\\AppData\\Roaming\\NetBeans\\8.2\\build.properties
3 |
--------------------------------------------------------------------------------
/swingdemo/nbproject/private/private.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/swingdemo/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | swingdemo
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/swingdemo/src/META-INF/persistence.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | org.eclipse.persistence.jpa.PersistenceProvider
5 | swingdemo.crud.Person
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/swingdemo/src/swingdemo/connection/MySQLConnection.java:
--------------------------------------------------------------------------------
1 | package swingdemo.connection;
2 |
3 | import com.mysql.jdbc.Connection;
4 | import java.sql.DriverManager;
5 | import java.sql.SQLException;
6 | import java.util.logging.Level;
7 | import java.util.logging.Logger;
8 |
9 | /**
10 | *
11 | * @author Rajaul Islam
12 | */
13 | public class MySQLConnection {
14 |
15 | Connection conn = null;
16 |
17 | public Connection getConnections(String host, String dbName, String username, String password) throws ClassNotFoundException {
18 | Class.forName("com.mysql.jdbc.Driver");
19 | try {
20 |
21 | String DB_URL = "jdbc:mysql://host/dbName";
22 | conn = (Connection) DriverManager.getConnection(DB_URL, username, password);
23 | } catch (SQLException ex) {
24 | Logger.getLogger(MySQLConnection.class.getName()).log(Level.SEVERE, null, ex);
25 | }
26 | return conn;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/swingmenu/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/swingmenu/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=d5c303bd
2 | build.xml.script.CRC32=f826be7f
3 | build.xml.stylesheet.CRC32=8064a381@1.80.1.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=d5c303bd
7 | nbproject/build-impl.xml.script.CRC32=e5af8eb8
8 | nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
9 |
--------------------------------------------------------------------------------
/swingmenu/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | swingmenu
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------