diff --git a/Eventmanagement/build/built-jar.properties b/Eventmanagement/build/built-jar.properties new file mode 100644 index 0000000..10a0b28 --- /dev/null +++ b/Eventmanagement/build/built-jar.properties @@ -0,0 +1,4 @@ +#Thu, 04 Jul 2019 08:06:56 +0530 + + +C\:\\Users\\deemonface\\Desktop\\sandun\\Eventmanagement= diff --git a/Eventmanagement/build/classes/eventmanagement/Genarate_bill$1.class b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$1.class new file mode 100644 index 0000000..be6a164 Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$1.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Genarate_bill$10.class b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$10.class new file mode 100644 index 0000000..6a12877 Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$10.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Genarate_bill$11.class b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$11.class new file mode 100644 index 0000000..e7f9834 Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$11.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Genarate_bill$12.class b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$12.class new file mode 100644 index 0000000..4f991df Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$12.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Genarate_bill$13.class b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$13.class new file mode 100644 index 0000000..6de435c Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$13.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Genarate_bill$14.class b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$14.class new file mode 100644 index 0000000..a081e47 Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$14.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Genarate_bill$15.class b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$15.class new file mode 100644 index 0000000..4c9b7c5 Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$15.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Genarate_bill$16.class b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$16.class new file mode 100644 index 0000000..e8d99c7 Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$16.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Genarate_bill$17.class b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$17.class new file mode 100644 index 0000000..3cf5cbb Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$17.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Genarate_bill$2.class b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$2.class new file mode 100644 index 0000000..fccd701 Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$2.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Genarate_bill$3.class b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$3.class new file mode 100644 index 0000000..428a2a3 Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$3.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Genarate_bill$4.class b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$4.class new file mode 100644 index 0000000..70eb8c1 Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$4.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Genarate_bill$5.class b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$5.class new file mode 100644 index 0000000..535f364 Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$5.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Genarate_bill$6.class b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$6.class new file mode 100644 index 0000000..4b6cea4 Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$6.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Genarate_bill$7.class b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$7.class new file mode 100644 index 0000000..96ab832 Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$7.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Genarate_bill$8.class b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$8.class new file mode 100644 index 0000000..7a067f1 Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$8.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Genarate_bill$9.class b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$9.class new file mode 100644 index 0000000..cb40656 Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Genarate_bill$9.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Genarate_bill.class b/Eventmanagement/build/classes/eventmanagement/Genarate_bill.class new file mode 100644 index 0000000..035ce2b Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Genarate_bill.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Genarate_bill.form b/Eventmanagement/build/classes/eventmanagement/Genarate_bill.form new file mode 100644 index 0000000..ef66eba --- /dev/null +++ b/Eventmanagement/build/classes/eventmanagement/Genarate_bill.form @@ -0,0 +1,1007 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Eventmanagement/build/classes/eventmanagement/Homepage$1.class b/Eventmanagement/build/classes/eventmanagement/Homepage$1.class index 36f2911..eceae7f 100644 Binary files a/Eventmanagement/build/classes/eventmanagement/Homepage$1.class and b/Eventmanagement/build/classes/eventmanagement/Homepage$1.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Homepage$2.class b/Eventmanagement/build/classes/eventmanagement/Homepage$2.class index 2ce3e5a..705e73e 100644 Binary files a/Eventmanagement/build/classes/eventmanagement/Homepage$2.class and b/Eventmanagement/build/classes/eventmanagement/Homepage$2.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Homepage$3.class b/Eventmanagement/build/classes/eventmanagement/Homepage$3.class index 56e227b..d77ae33 100644 Binary files a/Eventmanagement/build/classes/eventmanagement/Homepage$3.class and b/Eventmanagement/build/classes/eventmanagement/Homepage$3.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Homepage$4.class b/Eventmanagement/build/classes/eventmanagement/Homepage$4.class index 25eca7e..a567c51 100644 Binary files a/Eventmanagement/build/classes/eventmanagement/Homepage$4.class and b/Eventmanagement/build/classes/eventmanagement/Homepage$4.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Homepage$5.class b/Eventmanagement/build/classes/eventmanagement/Homepage$5.class deleted file mode 100644 index cc3504e..0000000 Binary files a/Eventmanagement/build/classes/eventmanagement/Homepage$5.class and /dev/null differ diff --git a/Eventmanagement/build/classes/eventmanagement/Homepage$6.class b/Eventmanagement/build/classes/eventmanagement/Homepage$6.class deleted file mode 100644 index 2b0767b..0000000 Binary files a/Eventmanagement/build/classes/eventmanagement/Homepage$6.class and /dev/null differ diff --git a/Eventmanagement/build/classes/eventmanagement/Homepage$7.class b/Eventmanagement/build/classes/eventmanagement/Homepage$7.class deleted file mode 100644 index 310b15d..0000000 Binary files a/Eventmanagement/build/classes/eventmanagement/Homepage$7.class and /dev/null differ diff --git a/Eventmanagement/build/classes/eventmanagement/Homepage$8.class b/Eventmanagement/build/classes/eventmanagement/Homepage$8.class deleted file mode 100644 index 61818ae..0000000 Binary files a/Eventmanagement/build/classes/eventmanagement/Homepage$8.class and /dev/null differ diff --git a/Eventmanagement/build/classes/eventmanagement/Homepage.class b/Eventmanagement/build/classes/eventmanagement/Homepage.class index 642059d..0531dfa 100644 Binary files a/Eventmanagement/build/classes/eventmanagement/Homepage.class and b/Eventmanagement/build/classes/eventmanagement/Homepage.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Homepage.form b/Eventmanagement/build/classes/eventmanagement/Homepage.form index 15ddc33..4cd5790 100644 --- a/Eventmanagement/build/classes/eventmanagement/Homepage.form +++ b/Eventmanagement/build/classes/eventmanagement/Homepage.form @@ -64,95 +64,96 @@ - - - - - - - + + + - - + + - + - - - - - - - - - - - - + + - - + - - - + + - - - - - + + + + + + + + + + + + + + + + + + + - + + + + + + - + + + + + + - + - + - + - + - + - - + + - - - - - - - - - - - - - - + + + + + + + @@ -240,77 +241,92 @@ + + + + + + - + + + + - + - + - + - + - + + + + + + + + - + - + - + + + + - - - - + - + + + + - - - - + - + + + + + + + - - - - + - - - - - - - + + + + + + - - - diff --git a/Eventmanagement/build/classes/eventmanagement/MyConnection.class b/Eventmanagement/build/classes/eventmanagement/MyConnection.class index 77836b6..408f1a7 100644 Binary files a/Eventmanagement/build/classes/eventmanagement/MyConnection.class and b/Eventmanagement/build/classes/eventmanagement/MyConnection.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Summary$1.class b/Eventmanagement/build/classes/eventmanagement/Summary$1.class index 6afec6c..0470333 100644 Binary files a/Eventmanagement/build/classes/eventmanagement/Summary$1.class and b/Eventmanagement/build/classes/eventmanagement/Summary$1.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Summary$10.class b/Eventmanagement/build/classes/eventmanagement/Summary$10.class new file mode 100644 index 0000000..806e5ab Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Summary$10.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Summary$11.class b/Eventmanagement/build/classes/eventmanagement/Summary$11.class new file mode 100644 index 0000000..2b369cc Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Summary$11.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Summary$2.class b/Eventmanagement/build/classes/eventmanagement/Summary$2.class new file mode 100644 index 0000000..a11ea87 Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Summary$2.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Summary$3.class b/Eventmanagement/build/classes/eventmanagement/Summary$3.class new file mode 100644 index 0000000..b83da3f Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Summary$3.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Summary$4.class b/Eventmanagement/build/classes/eventmanagement/Summary$4.class new file mode 100644 index 0000000..d641f1c Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Summary$4.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Summary$5.class b/Eventmanagement/build/classes/eventmanagement/Summary$5.class new file mode 100644 index 0000000..ed2b699 Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Summary$5.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Summary$6.class b/Eventmanagement/build/classes/eventmanagement/Summary$6.class new file mode 100644 index 0000000..f96d59f Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Summary$6.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Summary$7.class b/Eventmanagement/build/classes/eventmanagement/Summary$7.class new file mode 100644 index 0000000..6dc75bd Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Summary$7.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Summary$8.class b/Eventmanagement/build/classes/eventmanagement/Summary$8.class new file mode 100644 index 0000000..dafdb7a Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Summary$8.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Summary$9.class b/Eventmanagement/build/classes/eventmanagement/Summary$9.class new file mode 100644 index 0000000..71ee629 Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Summary$9.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Summary.class b/Eventmanagement/build/classes/eventmanagement/Summary.class index f9da9c2..32200fa 100644 Binary files a/Eventmanagement/build/classes/eventmanagement/Summary.class and b/Eventmanagement/build/classes/eventmanagement/Summary.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Summary.form b/Eventmanagement/build/classes/eventmanagement/Summary.form index 769eecd..d91f2ee 100644 --- a/Eventmanagement/build/classes/eventmanagement/Summary.form +++ b/Eventmanagement/build/classes/eventmanagement/Summary.form @@ -23,13 +23,440 @@ - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Eventmanagement/build/classes/eventmanagement/Welcome$1.class b/Eventmanagement/build/classes/eventmanagement/Welcome$1.class index f9753c3..0c133f2 100644 Binary files a/Eventmanagement/build/classes/eventmanagement/Welcome$1.class and b/Eventmanagement/build/classes/eventmanagement/Welcome$1.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Welcome$2.class b/Eventmanagement/build/classes/eventmanagement/Welcome$2.class new file mode 100644 index 0000000..7ebd657 Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/Welcome$2.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Welcome.class b/Eventmanagement/build/classes/eventmanagement/Welcome.class index 3679dc5..59f38f6 100644 Binary files a/Eventmanagement/build/classes/eventmanagement/Welcome.class and b/Eventmanagement/build/classes/eventmanagement/Welcome.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/Welcome.form b/Eventmanagement/build/classes/eventmanagement/Welcome.form index 769eecd..fcee7ac 100644 --- a/Eventmanagement/build/classes/eventmanagement/Welcome.form +++ b/Eventmanagement/build/classes/eventmanagement/Welcome.form @@ -23,13 +23,80 @@ - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Eventmanagement/build/classes/eventmanagement/list$1.class b/Eventmanagement/build/classes/eventmanagement/list$1.class new file mode 100644 index 0000000..9e84bc2 Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/list$1.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/list$2.class b/Eventmanagement/build/classes/eventmanagement/list$2.class new file mode 100644 index 0000000..3b35c1b Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/list$2.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/list.class b/Eventmanagement/build/classes/eventmanagement/list.class new file mode 100644 index 0000000..8536168 Binary files /dev/null and b/Eventmanagement/build/classes/eventmanagement/list.class differ diff --git a/Eventmanagement/build/classes/eventmanagement/list.form b/Eventmanagement/build/classes/eventmanagement/list.form new file mode 100644 index 0000000..b04bb8a --- /dev/null +++ b/Eventmanagement/build/classes/eventmanagement/list.form @@ -0,0 +1,152 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + </TableColumnModel> + </Property> + <Property name="tableHeader" type="javax.swing.table.JTableHeader" editor="org.netbeans.modules.form.editors2.JTableHeaderEditor"> + <TableHeader reorderingAllowed="true" resizingAllowed="true"/> + </Property> + </Properties> + </Component> + </SubComponents> + </Container> + </SubComponents> + </Container> + </SubComponents> +</Form> diff --git a/Eventmanagement/dist/Eventmanagement.jar b/Eventmanagement/dist/Eventmanagement.jar new file mode 100644 index 0000000..220dc3c Binary files /dev/null and b/Eventmanagement/dist/Eventmanagement.jar differ diff --git a/Eventmanagement/dist/README.TXT b/Eventmanagement/dist/README.TXT new file mode 100644 index 0000000..beea0f7 --- /dev/null +++ b/Eventmanagement/dist/README.TXT @@ -0,0 +1,32 @@ +======================== +BUILD OUTPUT DESCRIPTION +======================== + +When you build an Java application project that has a main class, the IDE +automatically copies all of the JAR +files on the projects classpath to your projects dist/lib folder. The IDE +also adds each of the JAR files to the Class-Path element in the application +JAR files manifest file (MANIFEST.MF). + +To run the project from the command line, go to the dist folder and +type the following: + +java -jar "Eventmanagement.jar" + +To distribute this project, zip up the dist folder (including the lib folder) +and distribute the ZIP file. + +Notes: + +* If two JAR files on the project classpath have the same name, only the first +JAR file is copied to the lib folder. +* Only JAR files are copied to the lib folder. +If the classpath contains other types of files or folders, these files (folders) +are not copied. +* If a library on the projects classpath also has a Class-Path element +specified in the manifest,the content of the Class-Path element has to be on +the projects runtime path. +* To set a main class in a standard Java project, right-click the project node +in the Projects window and choose Properties. Then click Run and enter the +class name in the Main Class field. Alternatively, you can manually type the +class name in the manifest Main-Class element. diff --git a/Eventmanagement/dist/lib/jcalendar-1.4.jar b/Eventmanagement/dist/lib/jcalendar-1.4.jar new file mode 100644 index 0000000..617a335 Binary files /dev/null and b/Eventmanagement/dist/lib/jcalendar-1.4.jar differ diff --git a/Eventmanagement/dist/lib/mysql-connector-java-8.0.16.jar b/Eventmanagement/dist/lib/mysql-connector-java-8.0.16.jar new file mode 100644 index 0000000..acd5ea6 Binary files /dev/null and b/Eventmanagement/dist/lib/mysql-connector-java-8.0.16.jar differ diff --git a/Eventmanagement/jcalendar-1.4.jar b/Eventmanagement/jcalendar-1.4.jar new file mode 100644 index 0000000..617a335 Binary files /dev/null and b/Eventmanagement/jcalendar-1.4.jar differ diff --git a/Eventmanagement/nbproject/build-impl.xml b/Eventmanagement/nbproject/build-impl.xml index 12a283a..d623f58 100644 --- a/Eventmanagement/nbproject/build-impl.xml +++ b/Eventmanagement/nbproject/build-impl.xml @@ -46,8 +46,8 @@ is divided into following sections: <property file="${user.properties.file}"/> <!-- The two properties below are usually overridden --> <!-- by the active platform. Just a fallback. --> - <property name="default.javac.source" value="1.4"/> - <property name="default.javac.target" value="1.4"/> + <property name="default.javac.source" value="1.6"/> + <property name="default.javac.target" value="1.6"/> </target> <target depends="-pre-init,-init-private,-init-user" name="-init-project"> <property file="nbproject/configs/${config}.properties"/> @@ -76,7 +76,7 @@ is divided into following sections: <and> <isset property="javac.profile"/> <length length="0" string="${javac.profile}" when="greater"/> - <matches pattern="1\.[89](\..*)?" string="${javac.source}"/> + <matches pattern="((1\.[89])|9)(\..*)?" string="${javac.source}"/> </and> </condition> <condition property="do.archive"> @@ -156,6 +156,7 @@ is divided into following sections: <property name="application.args" value=""/> <property name="source.encoding" value="${file.encoding}"/> <property name="runtime.encoding" value="${source.encoding}"/> + <property name="manifest.encoding" value="${source.encoding}"/> <condition property="javadoc.encoding.used" value="${javadoc.encoding}"> <and> <isset property="javadoc.encoding"/> @@ -191,7 +192,12 @@ is divided into following sections: </not> </and> </condition> - <property name="javac.fork" value="${jdkBug6558476}"/> + <condition else="false" property="javac.fork"> + <or> + <istrue value="${jdkBug6558476}"/> + <istrue value="${javac.external.vm}"/> + </or> + </condition> <property name="jar.index" value="false"/> <property name="jar.index.metainf" value="${jar.index}"/> <property name="copylibs.rebase" value="true"/> @@ -217,6 +223,7 @@ is divided into following sections: <condition else="" property="testng.debug.mode" value="-mixed"> <istrue value="${junit+testng.available}"/> </condition> + <property name="java.failonerror" value="true"/> </target> <target name="-post-init"> <!-- Empty placeholder for easier customization. --> @@ -693,7 +700,7 @@ is divided into following sections: <sequential> <property environment="env"/> <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/> - <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}"> + <java classname="@{classname}" dir="${profiler.info.dir}" failonerror="${java.failonerror}" fork="true" jvm="${profiler.info.jvm}"> <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> <jvmarg value="${profiler.info.jvmargs.agent}"/> <jvmarg line="${profiler.info.jvmargs}"/> @@ -768,7 +775,7 @@ is divided into following sections: <attribute default="${debug.classpath}" name="classpath"/> <element name="customize" optional="true"/> <sequential> - <java classname="@{classname}" dir="${work.dir}" fork="true"> + <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true"> <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> <jvmarg line="${debug-args-line}"/> <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> @@ -795,7 +802,7 @@ is divided into following sections: <attribute default="jvm" name="jvm"/> <element name="customize" optional="true"/> <sequential> - <java classname="@{classname}" dir="${work.dir}" fork="true"> + <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true"> <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> @@ -834,7 +841,7 @@ is divided into following sections: </chainedmapper> </pathconvert> <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> - <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> + <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" manifestencoding="UTF-8" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/> <manifest> <attribute name="Class-Path" value="${jar.classpath}"/> @@ -846,7 +853,7 @@ is divided into following sections: </target> <target name="-init-presetdef-jar"> <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1"> - <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}"> + <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifestencoding="UTF-8"> <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/> </jar> </presetdef> @@ -969,15 +976,15 @@ is divided into following sections: </target> <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest"> <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/> - <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/> + <copy encoding="${manifest.encoding}" file="${manifest.file}" outputencoding="UTF-8" tofile="${tmp.manifest.file}"/> </target> <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass"> - <manifest file="${tmp.manifest.file}" mode="update"> + <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update"> <attribute name="Main-Class" value="${main.class}"/> </manifest> </target> <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile"> - <manifest file="${tmp.manifest.file}" mode="update"> + <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update"> <attribute name="Profile" value="${javac.profile}"/> </manifest> </target> @@ -985,7 +992,7 @@ is divided into following sections: <basename file="${application.splash}" property="splashscreen.basename"/> <mkdir dir="${build.classes.dir}/META-INF"/> <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/> - <manifest file="${tmp.manifest.file}" mode="update"> + <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update"> <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/> </manifest> </target> @@ -1180,7 +1187,7 @@ is divided into following sections: <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main"> <fail unless="run.class">Must select one file in the IDE or set run.class</fail> <startprofiler/> - <antcal target="run-test-with-main"/> + <antcall target="run-test-with-main"/> </target> <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent"> <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> diff --git a/Eventmanagement/nbproject/genfiles.properties b/Eventmanagement/nbproject/genfiles.properties index 358889b..f7690fa 100644 --- a/Eventmanagement/nbproject/genfiles.properties +++ b/Eventmanagement/nbproject/genfiles.properties @@ -4,5 +4,5 @@ build.xml.stylesheet.CRC32=8064a381@1.75.2.48 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. nbproject/build-impl.xml.data.CRC32=80a56cb5 -nbproject/build-impl.xml.script.CRC32=cf5fb7a2 -nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.75.2.48 +nbproject/build-impl.xml.script.CRC32=2c581d61 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/Eventmanagement/nbproject/private/private.properties b/Eventmanagement/nbproject/private/private.properties index 5eecd15..4f35398 100644 --- a/Eventmanagement/nbproject/private/private.properties +++ b/Eventmanagement/nbproject/private/private.properties @@ -1,2 +1,2 @@ compile.on.save=true -user.properties.file=C:\\Users\\Ram\\AppData\\Roaming\\NetBeans\\8.0.2\\build.properties +user.properties.file=C:\\Users\\deemonface\\AppData\\Roaming\\NetBeans\\8.2\\build.properties diff --git a/Eventmanagement/nbproject/private/private.xml b/Eventmanagement/nbproject/private/private.xml new file mode 100644 index 0000000..62a2ef7 --- /dev/null +++ b/Eventmanagement/nbproject/private/private.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project-private xmlns="http://www.netbeans.org/ns/project-private/1"> + <editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/> + <open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2"> + <group> + <file>file:/C:/Users/deemonface/Desktop/sandun/Eventmanagement/src/eventmanagement/Summary.java</file> + <file>file:/C:/Users/deemonface/Desktop/sandun/Eventmanagement/src/eventmanagement/list.java</file> + <file>file:/C:/Users/deemonface/Desktop/sandun/Eventmanagement/src/eventmanagement/Welcome.java</file> + <file>file:/C:/Users/deemonface/Desktop/sandun/Eventmanagement/src/eventmanagement/Homepage.java</file> + <file>file:/C:/Users/deemonface/Desktop/sandun/Eventmanagement/src/eventmanagement/MyConnection.java</file> + <file>file:/C:/Users/deemonface/Desktop/sandun/Eventmanagement/src/eventmanagement/Genarate_bill.java</file> + </group> + </open-files> +</project-private> diff --git a/Eventmanagement/nbproject/project.properties b/Eventmanagement/nbproject/project.properties index 410a001..9afe44f 100644 --- a/Eventmanagement/nbproject/project.properties +++ b/Eventmanagement/nbproject/project.properties @@ -28,12 +28,18 @@ dist.jar=${dist.dir}/Eventmanagement.jar dist.javadoc.dir=${dist.dir}/javadoc excludes= file.reference.jcalendar-1.4.jar=C:\\Users\\Ram\\Downloads\\Compressed\\New folder\\jcalendar-1.4\\lib\\jcalendar-1.4.jar +file.reference.jcalendar-1.4.jar-1=C:\\Users\\deemonface\\Desktop\\rad_new\\lib\\jcalendar-1.4.jar +file.reference.jcalendar-1.4.jar-2=jcalendar-1.4.jar file.reference.mysql-connector-java-8.0.16.jar=C:\\Users\\Ram\\Downloads\\Compressed\\mysql-connector-java-8.0.16\\mysql-connector-java-8.0.16.jar +file.reference.mysql-connector-java-8.0.16.jar-1=C:\\Users\\deemonface\\Desktop\\mysql-connector-java-8.0.16\\mysql-connector-java-8.0.16.jar includes=** jar.compress=false javac.classpath=\ ${file.reference.jcalendar-1.4.jar}:\ - ${file.reference.mysql-connector-java-8.0.16.jar} + ${file.reference.mysql-connector-java-8.0.16.jar}:\ + ${file.reference.jcalendar-1.4.jar-1}:\ + ${file.reference.mysql-connector-java-8.0.16.jar-1}:\ + ${file.reference.jcalendar-1.4.jar-2} # Space-separated list of extra javac options javac.compilerargs= javac.deprecation=false diff --git a/Eventmanagement/src/eventmanagement/Genarate_bill.form b/Eventmanagement/src/eventmanagement/Genarate_bill.form new file mode 100644 index 0000000..ef66eba --- /dev/null +++ b/Eventmanagement/src/eventmanagement/Genarate_bill.form @@ -0,0 +1,1007 @@ +<?xml version="1.0" encoding="UTF-8" ?> + +<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo"> + <NonVisualComponents> + <Container class="javax.swing.JPanel" name="jPanel2"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="43" green="32" red="1" type="rgb"/> + </Property> + </Properties> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Component id="jPanel4" min="-2" max="-2" attributes="0"/> + <EmptySpace min="29" pref="124" max="32767" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="249" pref="560" max="32767" attributes="0"/> + <Component id="Continue" min="-2" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="38" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="48" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jLabel11" alignment="0" min="-2" max="-2" attributes="0"/> + <Component id="jLabel10" alignment="0" min="-2" pref="103" max="-2" attributes="0"/> + <Component id="jLabel7" alignment="0" min="-2" pref="103" max="-2" attributes="0"/> + </Group> + <EmptySpace min="-2" pref="206" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <Component id="jLabel12" min="-2" pref="140" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="69" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jCheckBox5" alignment="0" max="32767" attributes="0"/> + <Component id="jCheckBox4" alignment="0" max="32767" attributes="0"/> + </Group> + <EmptySpace min="-2" pref="26" max="-2" attributes="0"/> + </Group> + </Group> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jCheckBox3" alignment="0" max="32767" attributes="0"/> + <Component id="jTextFieldNO" alignment="0" max="32767" attributes="0"/> + <Component id="jComboBox_eventname" alignment="0" pref="135" max="32767" attributes="0"/> + <Component id="jCheckBox2" alignment="0" max="32767" attributes="0"/> + </Group> + <EmptySpace min="-2" pref="120" max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="21" max="-2" attributes="0"/> + <Component id="jPanel4" min="-2" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="42" max="-2" attributes="0"/> + <Group type="103" groupAlignment="3" attributes="0"> + <Component id="jLabel7" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jComboBox_eventname" alignment="3" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace min="-2" pref="27" max="-2" attributes="0"/> + <Component id="jLabel10" min="-2" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="30" max="-2" attributes="0"/> + <Group type="103" groupAlignment="3" attributes="0"> + <Component id="jLabel11" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jTextFieldNO" alignment="3" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace min="-2" pref="28" max="-2" attributes="0"/> + <Group type="103" groupAlignment="3" attributes="0"> + <Component id="jLabel12" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jCheckBox2" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jCheckBox4" alignment="3" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace min="-2" pref="29" max="-2" attributes="0"/> + <Group type="103" groupAlignment="3" attributes="0"> + <Component id="jCheckBox5" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jCheckBox3" alignment="3" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace min="-2" pref="68" max="-2" attributes="0"/> + <Component id="Continue" min="-2" max="-2" attributes="0"/> + <EmptySpace pref="22" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="jPanel4"> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="25" max="-2" attributes="0"/> + <Component id="jLabel2" min="-2" pref="206" max="-2" attributes="0"/> + <EmptySpace max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Component id="jLabel2" max="32767" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="jLabel2"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="18" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Details of the Event"/> + </Properties> + </Component> + </SubComponents> + </Container> + <Component class="javax.swing.JLabel" name="jLabel7"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Event Name:"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel10"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Event Date:"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel11"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Number of participants:"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel12"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Additional Services:"/> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="jTextFieldNO"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="5e" green="49" red="34" type="rgb"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextFieldNOActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JButton" name="Continue"> + <Properties> + <Property name="text" type="java.lang.String" value="Continue"/> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="ContinueActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JComboBox" name="jComboBox_eventname"> + <Properties> + <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor"> + <StringArray count="4"> + <StringItem index="0" value="Wedding Function"/> + <StringItem index="1" value="Birthday Function"/> + <StringItem index="2" value="Get Together"/> + <StringItem index="3" value="Copprate Party"/> + </StringArray> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jComboBox_eventnameActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JCheckBox" name="jCheckBox2"> + <Properties> + <Property name="text" type="java.lang.String" value=" Photograghy"/> + </Properties> + </Component> + <Component class="javax.swing.JCheckBox" name="jCheckBox3"> + <Properties> + <Property name="text" type="java.lang.String" value=" Sounds"/> + </Properties> + </Component> + <Component class="javax.swing.JCheckBox" name="jCheckBox4"> + <Properties> + <Property name="text" type="java.lang.String" value=" Decoration"/> + </Properties> + </Component> + <Component class="javax.swing.JCheckBox" name="jCheckBox5"> + <Properties> + <Property name="text" type="java.lang.String" value=" Catering"/> + </Properties> + </Component> + </SubComponents> + </Container> + <Component class="javax.swing.JLabel" name="jLabel1"> + <Properties> + <Property name="text" type="java.lang.String" value="jLabel1"/> + </Properties> + </Component> + </NonVisualComponents> + <Properties> + <Property name="defaultCloseOperation" type="int" value="3"/> + </Properties> + <SyntheticProperties> + <SyntheticProperty name="formSizePolicy" type="int" value="1"/> + <SyntheticProperty name="generateCenter" type="boolean" value="false"/> + </SyntheticProperties> + <AuxValues> + <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/> + <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/> + <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> + </AuxValues> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jPanel1" alignment="0" max="32767" attributes="0"/> + <Group type="103" rootIndex="1" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="259" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jLabel9" alignment="0" min="-2" max="-2" attributes="0"/> + <Component id="jLabel8" alignment="0" min="-2" pref="103" max="-2" attributes="0"/> + <Component id="jLabel6" alignment="0" min="-2" pref="103" max="-2" attributes="0"/> + </Group> + <EmptySpace pref="294" max="32767" attributes="0"/> + </Group> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jPanel1" alignment="0" max="32767" attributes="0"/> + <Group type="103" rootIndex="1" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="141" max="-2" attributes="0"/> + <Component id="jLabel6" min="-2" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="27" max="-2" attributes="0"/> + <Component id="jLabel8" min="-2" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="30" max="-2" attributes="0"/> + <Component id="jLabel9" min="-2" max="-2" attributes="0"/> + <EmptySpace pref="196" max="32767" attributes="0"/> + </Group> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="jPanel1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="43" green="32" red="1" type="rgb"/> + </Property> + </Properties> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" attributes="0"> + <EmptySpace min="-2" pref="5" max="-2" attributes="0"/> + <Component id="jPanel5" max="32767" attributes="0"/> + <EmptySpace min="-2" pref="5" max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" attributes="0"> + <EmptySpace min="-2" pref="1" max="-2" attributes="0"/> + <Component id="jPanel5" max="32767" attributes="0"/> + <EmptySpace min="-2" pref="1" max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="jPanel5"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="43" green="32" red="1" type="rgb"/> + </Property> + </Properties> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Component id="jPanel6" min="-2" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="124" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="45" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jLabel20" min="-2" max="-2" attributes="0"/> + <Component id="jLabel18" min="-2" pref="222" max="-2" attributes="0"/> + <Group type="102" alignment="0" attributes="0"> + <Component id="jLabel13" min="-2" pref="222" max="-2" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + <Component id="jTextField_participants" min="-2" pref="93" max="-2" attributes="0"/> + <EmptySpace type="unrelated" max="-2" attributes="0"/> + <Component id="jLabel22" min="-2" max="-2" attributes="0"/> + </Group> + </Group> + <EmptySpace type="separate" max="-2" attributes="0"/> + <Component id="jLabel5" min="-2" pref="59" max="-2" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + <Component id="jLabel23" min="-2" max="-2" attributes="0"/> + <EmptySpace type="separate" max="-2" attributes="0"/> + <Component id="jTextField_participantstotal" min="-2" pref="107" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <Group type="103" groupAlignment="1" max="-2" attributes="0"> + <Group type="102" attributes="0"> + <Component id="jLabel15" min="-2" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="191" max="-2" attributes="0"/> + <Component id="jTextField_participantstotal1" max="32767" attributes="0"/> + </Group> + <Group type="102" attributes="0"> + <Component id="jLabel14" min="-2" pref="195" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="31" max="-2" attributes="0"/> + <Component id="jTextField_additionalservice" min="-2" pref="93" max="-2" attributes="0"/> + </Group> + </Group> + <EmptySpace type="unrelated" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jLabel24" min="-2" max="-2" attributes="0"/> + <Component id="jLabel27" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace type="separate" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" attributes="0"> + <Component id="jLabel26" min="-2" pref="59" max="-2" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + <Component id="jLabel25" min="-2" max="-2" attributes="0"/> + <EmptySpace type="separate" max="-2" attributes="0"/> + <Component id="jTextFieldadditionaltotal1" pref="200" max="32767" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <Component id="jTextFieldadditionaltotal" min="-2" pref="91" max="-2" attributes="0"/> + <EmptySpace type="unrelated" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jTextFieldtotal3" min="-2" pref="118" max="-2" attributes="0"/> + <Group type="102" attributes="0"> + <Component id="jLabel28" min="-2" max="-2" attributes="0"/> + <EmptySpace type="unrelated" max="-2" attributes="0"/> + <Component id="jTextFieldtotal1" min="-2" pref="118" max="-2" attributes="0"/> + </Group> + </Group> + </Group> + </Group> + </Group> + <Component id="jLabel21" min="-2" max="-2" attributes="0"/> + <Group type="102" alignment="0" attributes="0"> + <Component id="jLabel16" min="-2" pref="140" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="95" max="-2" attributes="0"/> + <Component id="jTextFielddiscout1" min="-2" pref="87" max="-2" attributes="0"/> + <EmptySpace type="unrelated" max="-2" attributes="0"/> + <Component id="jLabel29" min="-2" max="-2" attributes="0"/> + <EmptySpace type="separate" max="-2" attributes="0"/> + <Component id="jLabel30" min="-2" pref="59" max="-2" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + <Component id="jLabel31" min="-2" max="-2" attributes="0"/> + </Group> + <Component id="jLabel19" min="-2" max="-2" attributes="0"/> + <Group type="102" alignment="0" attributes="0"> + <Component id="jLabel17" min="-2" pref="85" max="-2" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + <Component id="jTextFieldfinalbill" min="-2" pref="118" max="-2" attributes="0"/> + <EmptySpace type="unrelated" max="-2" attributes="0"/> + <Component id="jLabel32" min="-2" max="-2" attributes="0"/> + <EmptySpace type="separate" max="-2" attributes="0"/> + <Component id="jTextFieldtotal2" min="-2" pref="118" max="-2" attributes="0"/> + <EmptySpace type="separate" max="-2" attributes="0"/> + <Component id="jLabel33" min="-2" max="-2" attributes="0"/> + <EmptySpace type="unrelated" max="-2" attributes="0"/> + <Component id="jTextFieldtotal" min="-2" pref="118" max="-2" attributes="0"/> + <EmptySpace type="separate" max="-2" attributes="0"/> + <Component id="jButton1" pref="118" max="32767" attributes="0"/> + </Group> + </Group> + <EmptySpace max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="21" max="-2" attributes="0"/> + <Component id="jPanel6" min="-2" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="29" max="-2" attributes="0"/> + <Group type="103" groupAlignment="3" attributes="0"> + <Component id="jLabel13" alignment="3" min="-2" pref="20" max="-2" attributes="0"/> + <Component id="jTextField_participants" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jTextField_participantstotal" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jLabel22" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jLabel23" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jLabel5" alignment="3" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace min="-2" pref="5" max="-2" attributes="0"/> + <Component id="jLabel18" min="-2" pref="20" max="-2" attributes="0"/> + <EmptySpace type="separate" max="-2" attributes="0"/> + <Group type="103" groupAlignment="3" attributes="0"> + <Component id="jLabel14" alignment="3" min="-2" pref="29" max="-2" attributes="0"/> + <Component id="jTextField_additionalservice" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jLabel24" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jLabel25" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jLabel26" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jTextFieldadditionaltotal1" alignment="3" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace max="-2" attributes="0"/> + <Component id="jLabel20" min="-2" pref="20" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="20" max="-2" attributes="0"/> + <Group type="103" groupAlignment="3" attributes="0"> + <Component id="jLabel15" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jTextField_participantstotal1" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jTextFieldadditionaltotal" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jLabel27" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jLabel28" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jTextFieldtotal1" alignment="3" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace max="-2" attributes="0"/> + <Component id="jLabel19" min="-2" pref="20" max="-2" attributes="0"/> + <EmptySpace pref="9" max="32767" attributes="0"/> + <Group type="103" groupAlignment="3" attributes="0"> + <Component id="jLabel16" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jTextFielddiscout1" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jLabel29" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jLabel30" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jLabel31" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jTextFieldtotal3" alignment="3" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace max="-2" attributes="0"/> + <Component id="jLabel21" min="-2" pref="20" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="30" max="-2" attributes="0"/> + <Group type="103" groupAlignment="3" attributes="0"> + <Component id="jLabel17" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jTextFieldfinalbill" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jLabel32" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jTextFieldtotal2" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jLabel33" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jTextFieldtotal" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jButton1" alignment="3" min="-2" pref="26" max="-2" attributes="0"/> + </Group> + <EmptySpace pref="33" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="jPanel6"> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="25" max="-2" attributes="0"/> + <Component id="jLabel4" min="-2" pref="206" max="-2" attributes="0"/> + <EmptySpace pref="308" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Component id="jLabel4" max="32767" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="jLabel4"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="18" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Details of the Event"/> + </Properties> + </Component> + </SubComponents> + </Container> + <Component class="javax.swing.JLabel" name="jLabel13"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Total Charge For participants:"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel14"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Additional Service Charge:"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel15"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Total:"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel16"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Discount:"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel17"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Final Bill:"/> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="jTextField_additionalservice"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="5e" green="49" red="34" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextField_additionalserviceActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JTextField" name="jTextField_participants"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="5e" green="49" red="34" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextField_participantsActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JTextField" name="jTextFieldfinalbill"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="5e" green="49" red="34" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextFieldfinalbillActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JTextField" name="jTextFieldtotal"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="5e" green="49" red="34" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextFieldtotalActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JTextField" name="jTextFieldadditionaltotal"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="5e" green="49" red="34" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextFieldadditionaltotalActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JLabel" name="jLabel18"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="12" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="(Rate per head = LKR1000)"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel19"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="12" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="(Total= Charge of participants + Additional charge )"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel20"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="12" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="(Rate per Additional Service= LKR12,000)"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel21"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="12" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="(Above 500 participants 10% Discount )"/> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="jTextField_participantstotal"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="5e" green="49" red="34" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextField_participantstotalActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JLabel" name="jLabel22"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="*"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel23"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="="/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel5"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="1000"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel24"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="*"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel25"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="="/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel26"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="12000"/> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="jTextField_participantstotal1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="5e" green="49" red="34" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextField_participantstotal1ActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JTextField" name="jTextFieldadditionaltotal1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="5e" green="49" red="34" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextFieldadditionaltotal1ActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JLabel" name="jLabel27"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="+"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel28"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="="/> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="jTextFielddiscout1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="5e" green="49" red="34" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextFielddiscout1ActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JLabel" name="jLabel29"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="*"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel30"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="10%"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel31"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="="/> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="jTextFieldtotal1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="5e" green="49" red="34" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextFieldtotal1ActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JLabel" name="jLabel32"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="-"/> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="jTextFieldtotal2"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="5e" green="49" red="34" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextFieldtotal2ActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JLabel" name="jLabel33"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="="/> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="jTextFieldtotal3"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="5e" green="49" red="34" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextFieldtotal3ActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JButton" name="jButton1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="71" green="cc" red="2e" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="18" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Continue"/> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton1ActionPerformed"/> + </Events> + </Component> + </SubComponents> + </Container> + </SubComponents> + </Container> + <Component class="javax.swing.JLabel" name="jLabel6"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Event Name:"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel8"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Event Date:"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel9"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Number of participants:"/> + </Properties> + </Component> + </SubComponents> +</Form> diff --git a/Eventmanagement/src/eventmanagement/Genarate_bill.java b/Eventmanagement/src/eventmanagement/Genarate_bill.java new file mode 100644 index 0000000..a2f403c --- /dev/null +++ b/Eventmanagement/src/eventmanagement/Genarate_bill.java @@ -0,0 +1,898 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package eventmanagement; + +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.logging.Level; +import java.util.logging.Logger; +import javax.swing.JFrame; + +/** + * + * @author deemonface + */ +public class Genarate_bill extends javax.swing.JFrame { + + /** + * Creates new form Genarate_bill + */ + public Genarate_bill() { + initComponents(); + this.setLocationRelativeTo(null); + cal(); + } + + public void cal(){ + + int final_total; + PreparedStatement st, st2,st3; + String query = "SELECT * from event_details ORDER BY event_id DESC LIMIT 1"; + String query1 = "SELECT * from events ORDER BY id DESC LIMIT 1"; + + + try{ + st= MyConnection.getConnection().prepareStatement(query); + ResultSet rs = st.executeQuery(); + rs.next(); + int eid = rs.getInt("event_id"); + int participants = rs.getInt("no_of_participants"); + jTextField_participants.setText(Integer.toString(participants)); + int participant_total = 1000 * participants; + jTextField_participantstotal.setText(Integer.toString(participant_total)); + + + st2 = MyConnection.getConnection().prepareStatement(query1); + ResultSet rs2 = st2.executeQuery(); + rs2.next(); + int count = 0; + if(rs2.getInt("photography") == 1) count = count + 1; + if(rs2.getInt("decoration") == 1) count = count + 1; + if(rs2.getInt("sounds") == 1) count = count + 1; + if(rs2.getInt("catering") == 1) count = count + 1; + jTextField_additionalservice.setText(Integer.toString(count)); + int service_charge = count * 12000; + jTextFieldadditionaltotal1.setText(Integer.toString(service_charge)); + + jTextField_participantstotal1.setText(Integer.toString(participant_total)); + jTextFieldadditionaltotal.setText(Integer.toString(service_charge)); + + int initial_total = service_charge + participant_total; + + jTextFieldtotal1.setText(Integer.toString(initial_total)); + + + + if(participants > 500){ + jTextFielddiscout1.setText(Integer.toString(participants)); + int dicount_amount = initial_total / 10; + jTextFieldtotal3.setText(Integer.toString(dicount_amount)); + jTextFieldfinalbill.setText(Integer.toString(initial_total)); + jTextFieldtotal2.setText(Integer.toString(dicount_amount)); + final_total = initial_total - dicount_amount; + jTextFieldtotal.setText(Integer.toString(final_total)); + }else{ + final_total = initial_total; + jTextFielddiscout1.setText("0"); + jTextFieldtotal3.setText("0"); + jTextFieldtotal.setText(Integer.toString(initial_total)); + jTextFieldfinalbill.setText(Integer.toString(initial_total)); + jTextFieldtotal2.setText("0"); + } + + String query2 = "UPDATE event_details SET event_cost=? WHERE event_id = ? "; + st3 = MyConnection.getConnection().prepareStatement(query2); + st3.setInt(1, final_total); + st3.setInt(2, eid); + st3.execute(); + + }catch(SQLException ex){ + Logger.getLogger(Homepage.class.getName()).log(Level.SEVERE,null,ex); + } + + } + + /** + * This method is called from within the constructor to initialize the form. + * WARNING: Do NOT modify this code. The content of this method is always + * regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents + private void initComponents() { + + jPanel2 = new javax.swing.JPanel(); + jPanel4 = new javax.swing.JPanel(); + jLabel2 = new javax.swing.JLabel(); + jLabel7 = new javax.swing.JLabel(); + jLabel10 = new javax.swing.JLabel(); + jLabel11 = new javax.swing.JLabel(); + jLabel12 = new javax.swing.JLabel(); + jTextFieldNO = new javax.swing.JTextField(); + Continue = new javax.swing.JButton(); + jComboBox_eventname = new javax.swing.JComboBox(); + jCheckBox2 = new javax.swing.JCheckBox(); + jCheckBox3 = new javax.swing.JCheckBox(); + jCheckBox4 = new javax.swing.JCheckBox(); + jCheckBox5 = new javax.swing.JCheckBox(); + jLabel1 = new javax.swing.JLabel(); + jPanel1 = new javax.swing.JPanel(); + jPanel5 = new javax.swing.JPanel(); + jPanel6 = new javax.swing.JPanel(); + jLabel4 = new javax.swing.JLabel(); + jLabel13 = new javax.swing.JLabel(); + jLabel14 = new javax.swing.JLabel(); + jLabel15 = new javax.swing.JLabel(); + jLabel16 = new javax.swing.JLabel(); + jLabel17 = new javax.swing.JLabel(); + jTextField_additionalservice = new javax.swing.JTextField(); + jTextField_participants = new javax.swing.JTextField(); + jTextFieldfinalbill = new javax.swing.JTextField(); + jTextFieldtotal = new javax.swing.JTextField(); + jTextFieldadditionaltotal = new javax.swing.JTextField(); + jLabel18 = new javax.swing.JLabel(); + jLabel19 = new javax.swing.JLabel(); + jLabel20 = new javax.swing.JLabel(); + jLabel21 = new javax.swing.JLabel(); + jTextField_participantstotal = new javax.swing.JTextField(); + jLabel22 = new javax.swing.JLabel(); + jLabel23 = new javax.swing.JLabel(); + jLabel5 = new javax.swing.JLabel(); + jLabel24 = new javax.swing.JLabel(); + jLabel25 = new javax.swing.JLabel(); + jLabel26 = new javax.swing.JLabel(); + jTextField_participantstotal1 = new javax.swing.JTextField(); + jTextFieldadditionaltotal1 = new javax.swing.JTextField(); + jLabel27 = new javax.swing.JLabel(); + jLabel28 = new javax.swing.JLabel(); + jTextFielddiscout1 = new javax.swing.JTextField(); + jLabel29 = new javax.swing.JLabel(); + jLabel30 = new javax.swing.JLabel(); + jLabel31 = new javax.swing.JLabel(); + jTextFieldtotal1 = new javax.swing.JTextField(); + jLabel32 = new javax.swing.JLabel(); + jTextFieldtotal2 = new javax.swing.JTextField(); + jLabel33 = new javax.swing.JLabel(); + jTextFieldtotal3 = new javax.swing.JTextField(); + jButton1 = new javax.swing.JButton(); + jLabel6 = new javax.swing.JLabel(); + jLabel8 = new javax.swing.JLabel(); + jLabel9 = new javax.swing.JLabel(); + + jPanel2.setBackground(new java.awt.Color(1, 50, 67)); + + jLabel2.setFont(new java.awt.Font("Segoe UI", 1, 18)); // NOI18N + jLabel2.setText("Details of the Event"); + + javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); + jPanel4.setLayout(jPanel4Layout); + jPanel4Layout.setHorizontalGroup( + jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel4Layout.createSequentialGroup() + .addGap(25, 25, 25) + .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + ); + jPanel4Layout.setVerticalGroup( + jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel4Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addContainerGap()) + ); + + jLabel7.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel7.setForeground(new java.awt.Color(255, 255, 255)); + jLabel7.setText("Event Name:"); + + jLabel10.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel10.setForeground(new java.awt.Color(255, 255, 255)); + jLabel10.setText("Event Date:"); + + jLabel11.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel11.setForeground(new java.awt.Color(255, 255, 255)); + jLabel11.setText("Number of participants:"); + + jLabel12.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel12.setForeground(new java.awt.Color(255, 255, 255)); + jLabel12.setText("Additional Services:"); + + jTextFieldNO.setBackground(new java.awt.Color(52, 73, 94)); + jTextFieldNO.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jTextFieldNOActionPerformed(evt); + } + }); + + Continue.setText("Continue"); + Continue.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + ContinueActionPerformed(evt); + } + }); + + jComboBox_eventname.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Wedding Function", "Birthday Function", "Get Together", "Copprate Party" })); + jComboBox_eventname.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jComboBox_eventnameActionPerformed(evt); + } + }); + + jCheckBox2.setText(" Photograghy"); + + jCheckBox3.setText(" Sounds"); + + jCheckBox4.setText(" Decoration"); + + jCheckBox5.setText(" Catering"); + + javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); + jPanel2.setLayout(jPanel2Layout); + jPanel2Layout.setHorizontalGroup( + jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel2Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(29, 124, Short.MAX_VALUE)) + .addGroup(jPanel2Layout.createSequentialGroup() + .addGap(249, 560, Short.MAX_VALUE) + .addComponent(Continue) + .addGap(38, 38, 38)) + .addGroup(jPanel2Layout.createSequentialGroup() + .addGap(48, 48, 48) + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel2Layout.createSequentialGroup() + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jLabel11) + .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(206, 206, 206)) + .addGroup(jPanel2Layout.createSequentialGroup() + .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(69, 69, 69) + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jCheckBox5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(jCheckBox4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + .addGap(26, 26, 26))) + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jCheckBox3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(jTextFieldNO) + .addComponent(jComboBox_eventname, 0, 135, Short.MAX_VALUE) + .addComponent(jCheckBox2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + .addGap(120, 120, 120)) + ); + jPanel2Layout.setVerticalGroup( + jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel2Layout.createSequentialGroup() + .addGap(21, 21, 21) + .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(42, 42, 42) + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel7) + .addComponent(jComboBox_eventname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(27, 27, 27) + .addComponent(jLabel10) + .addGap(30, 30, 30) + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel11) + .addComponent(jTextFieldNO, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(28, 28, 28) + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel12) + .addComponent(jCheckBox2) + .addComponent(jCheckBox4)) + .addGap(29, 29, 29) + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jCheckBox5) + .addComponent(jCheckBox3)) + .addGap(68, 68, 68) + .addComponent(Continue) + .addContainerGap(22, Short.MAX_VALUE)) + ); + + jLabel1.setText("jLabel1"); + + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + + jPanel1.setBackground(new java.awt.Color(1, 50, 67)); + + jPanel5.setBackground(new java.awt.Color(1, 50, 67)); + + jLabel4.setFont(new java.awt.Font("Segoe UI", 1, 18)); // NOI18N + jLabel4.setText("Details of the Event"); + + javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6); + jPanel6.setLayout(jPanel6Layout); + jPanel6Layout.setHorizontalGroup( + jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel6Layout.createSequentialGroup() + .addGap(25, 25, 25) + .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(308, Short.MAX_VALUE)) + ); + jPanel6Layout.setVerticalGroup( + jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel6Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addContainerGap()) + ); + + jLabel13.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel13.setForeground(new java.awt.Color(255, 255, 255)); + jLabel13.setText("Total Charge For participants:"); + + jLabel14.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel14.setForeground(new java.awt.Color(255, 255, 255)); + jLabel14.setText("Additional Service Charge:"); + + jLabel15.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel15.setForeground(new java.awt.Color(255, 255, 255)); + jLabel15.setText("Total:"); + + jLabel16.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel16.setForeground(new java.awt.Color(255, 255, 255)); + jLabel16.setText("Discount:"); + + jLabel17.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel17.setForeground(new java.awt.Color(255, 255, 255)); + jLabel17.setText("Final Bill:"); + + jTextField_additionalservice.setBackground(new java.awt.Color(52, 73, 94)); + jTextField_additionalservice.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jTextField_additionalservice.setForeground(new java.awt.Color(255, 255, 255)); + jTextField_additionalservice.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jTextField_additionalserviceActionPerformed(evt); + } + }); + + jTextField_participants.setBackground(new java.awt.Color(52, 73, 94)); + jTextField_participants.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jTextField_participants.setForeground(new java.awt.Color(255, 255, 255)); + jTextField_participants.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jTextField_participantsActionPerformed(evt); + } + }); + + jTextFieldfinalbill.setBackground(new java.awt.Color(52, 73, 94)); + jTextFieldfinalbill.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jTextFieldfinalbill.setForeground(new java.awt.Color(255, 255, 255)); + jTextFieldfinalbill.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jTextFieldfinalbillActionPerformed(evt); + } + }); + + jTextFieldtotal.setBackground(new java.awt.Color(52, 73, 94)); + jTextFieldtotal.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jTextFieldtotal.setForeground(new java.awt.Color(255, 255, 255)); + jTextFieldtotal.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jTextFieldtotalActionPerformed(evt); + } + }); + + jTextFieldadditionaltotal.setBackground(new java.awt.Color(52, 73, 94)); + jTextFieldadditionaltotal.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jTextFieldadditionaltotal.setForeground(new java.awt.Color(255, 255, 255)); + jTextFieldadditionaltotal.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jTextFieldadditionaltotalActionPerformed(evt); + } + }); + + jLabel18.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N + jLabel18.setForeground(new java.awt.Color(255, 255, 255)); + jLabel18.setText("(Rate per head = LKR1000)"); + + jLabel19.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N + jLabel19.setForeground(new java.awt.Color(255, 255, 255)); + jLabel19.setText("(Total= Charge of participants + Additional charge )"); + + jLabel20.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N + jLabel20.setForeground(new java.awt.Color(255, 255, 255)); + jLabel20.setText("(Rate per Additional Service= LKR12,000)"); + + jLabel21.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N + jLabel21.setForeground(new java.awt.Color(255, 255, 255)); + jLabel21.setText("(Above 500 participants 10% Discount )"); + + jTextField_participantstotal.setBackground(new java.awt.Color(52, 73, 94)); + jTextField_participantstotal.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jTextField_participantstotal.setForeground(new java.awt.Color(255, 255, 255)); + jTextField_participantstotal.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jTextField_participantstotalActionPerformed(evt); + } + }); + + jLabel22.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel22.setForeground(new java.awt.Color(255, 255, 255)); + jLabel22.setText("*"); + + jLabel23.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel23.setForeground(new java.awt.Color(255, 255, 255)); + jLabel23.setText("="); + + jLabel5.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel5.setForeground(new java.awt.Color(255, 255, 255)); + jLabel5.setText("1000"); + + jLabel24.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel24.setForeground(new java.awt.Color(255, 255, 255)); + jLabel24.setText("*"); + + jLabel25.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel25.setForeground(new java.awt.Color(255, 255, 255)); + jLabel25.setText("="); + + jLabel26.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel26.setForeground(new java.awt.Color(255, 255, 255)); + jLabel26.setText("12000"); + + jTextField_participantstotal1.setBackground(new java.awt.Color(52, 73, 94)); + jTextField_participantstotal1.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jTextField_participantstotal1.setForeground(new java.awt.Color(255, 255, 255)); + jTextField_participantstotal1.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jTextField_participantstotal1ActionPerformed(evt); + } + }); + + jTextFieldadditionaltotal1.setBackground(new java.awt.Color(52, 73, 94)); + jTextFieldadditionaltotal1.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jTextFieldadditionaltotal1.setForeground(new java.awt.Color(255, 255, 255)); + jTextFieldadditionaltotal1.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jTextFieldadditionaltotal1ActionPerformed(evt); + } + }); + + jLabel27.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel27.setForeground(new java.awt.Color(255, 255, 255)); + jLabel27.setText("+"); + + jLabel28.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel28.setForeground(new java.awt.Color(255, 255, 255)); + jLabel28.setText("="); + + jTextFielddiscout1.setBackground(new java.awt.Color(52, 73, 94)); + jTextFielddiscout1.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jTextFielddiscout1.setForeground(new java.awt.Color(255, 255, 255)); + jTextFielddiscout1.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jTextFielddiscout1ActionPerformed(evt); + } + }); + + jLabel29.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel29.setForeground(new java.awt.Color(255, 255, 255)); + jLabel29.setText("*"); + + jLabel30.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel30.setForeground(new java.awt.Color(255, 255, 255)); + jLabel30.setText("10%"); + + jLabel31.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel31.setForeground(new java.awt.Color(255, 255, 255)); + jLabel31.setText("="); + + jTextFieldtotal1.setBackground(new java.awt.Color(52, 73, 94)); + jTextFieldtotal1.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jTextFieldtotal1.setForeground(new java.awt.Color(255, 255, 255)); + jTextFieldtotal1.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jTextFieldtotal1ActionPerformed(evt); + } + }); + + jLabel32.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel32.setForeground(new java.awt.Color(255, 255, 255)); + jLabel32.setText("-"); + + jTextFieldtotal2.setBackground(new java.awt.Color(52, 73, 94)); + jTextFieldtotal2.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jTextFieldtotal2.setForeground(new java.awt.Color(255, 255, 255)); + jTextFieldtotal2.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jTextFieldtotal2ActionPerformed(evt); + } + }); + + jLabel33.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel33.setForeground(new java.awt.Color(255, 255, 255)); + jLabel33.setText("="); + + jTextFieldtotal3.setBackground(new java.awt.Color(52, 73, 94)); + jTextFieldtotal3.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jTextFieldtotal3.setForeground(new java.awt.Color(255, 255, 255)); + jTextFieldtotal3.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jTextFieldtotal3ActionPerformed(evt); + } + }); + + jButton1.setBackground(new java.awt.Color(46, 204, 113)); + jButton1.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N + jButton1.setText("Continue"); + jButton1.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jButton1ActionPerformed(evt); + } + }); + + javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5); + jPanel5.setLayout(jPanel5Layout); + jPanel5Layout.setHorizontalGroup( + jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel5Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(124, 124, 124)) + .addGroup(jPanel5Layout.createSequentialGroup() + .addGap(45, 45, 45) + .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel5Layout.createSequentialGroup() + .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jLabel20) + .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 222, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGroup(jPanel5Layout.createSequentialGroup() + .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 222, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jTextField_participants, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(jLabel22))) + .addGap(18, 18, 18) + .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jLabel23) + .addGap(18, 18, 18) + .addComponent(jTextField_participantstotal, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGroup(jPanel5Layout.createSequentialGroup() + .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) + .addGroup(jPanel5Layout.createSequentialGroup() + .addComponent(jLabel15) + .addGap(191, 191, 191) + .addComponent(jTextField_participantstotal1)) + .addGroup(jPanel5Layout.createSequentialGroup() + .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 195, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(31, 31, 31) + .addComponent(jTextField_additionalservice, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE))) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jLabel24) + .addComponent(jLabel27)) + .addGap(18, 18, 18) + .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel5Layout.createSequentialGroup() + .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jLabel25) + .addGap(18, 18, 18) + .addComponent(jTextFieldadditionaltotal1, javax.swing.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)) + .addGroup(jPanel5Layout.createSequentialGroup() + .addComponent(jTextFieldadditionaltotal, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jTextFieldtotal3, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGroup(jPanel5Layout.createSequentialGroup() + .addComponent(jLabel28) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(jTextFieldtotal1, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)))))) + .addComponent(jLabel21) + .addGroup(jPanel5Layout.createSequentialGroup() + .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(95, 95, 95) + .addComponent(jTextFielddiscout1, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(jLabel29) + .addGap(18, 18, 18) + .addComponent(jLabel30, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jLabel31)) + .addComponent(jLabel19) + .addGroup(jPanel5Layout.createSequentialGroup() + .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jTextFieldfinalbill, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(jLabel32) + .addGap(18, 18, 18) + .addComponent(jTextFieldtotal2, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(18, 18, 18) + .addComponent(jLabel33) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(jTextFieldtotal, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(18, 18, 18) + .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 118, Short.MAX_VALUE))) + .addContainerGap()) + ); + jPanel5Layout.setVerticalGroup( + jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel5Layout.createSequentialGroup() + .addGap(21, 21, 21) + .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(29, 29, 29) + .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jTextField_participants, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jTextField_participantstotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jLabel22) + .addComponent(jLabel23) + .addComponent(jLabel5)) + .addGap(5, 5, 5) + .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(18, 18, 18) + .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jTextField_additionalservice, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jLabel24) + .addComponent(jLabel25) + .addComponent(jLabel26) + .addComponent(jTextFieldadditionaltotal1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(20, 20, 20) + .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel15) + .addComponent(jTextField_participantstotal1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jTextFieldadditionaltotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jLabel27) + .addComponent(jLabel28) + .addComponent(jTextFieldtotal1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE) + .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel16) + .addComponent(jTextFielddiscout1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jLabel29) + .addComponent(jLabel30) + .addComponent(jLabel31) + .addComponent(jTextFieldtotal3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(30, 30, 30) + .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel17) + .addComponent(jTextFieldfinalbill, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jLabel32) + .addComponent(jTextFieldtotal2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jLabel33) + .addComponent(jTextFieldtotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addContainerGap(33, Short.MAX_VALUE)) + ); + + javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); + jPanel1.setLayout(jPanel1Layout); + jPanel1Layout.setHorizontalGroup( + jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGap(5, 5, 5) + .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addGap(5, 5, 5)) + ); + jPanel1Layout.setVerticalGroup( + jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGap(1, 1, 1) + .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addGap(1, 1, 1)) + ); + + jLabel6.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel6.setForeground(new java.awt.Color(255, 255, 255)); + jLabel6.setText("Event Name:"); + + jLabel8.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel8.setForeground(new java.awt.Color(255, 255, 255)); + jLabel8.setText("Event Date:"); + + jLabel9.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel9.setForeground(new java.awt.Color(255, 255, 255)); + jLabel9.setText("Number of participants:"); + + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); + getContentPane().setLayout(layout); + layout.setHorizontalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addGap(259, 259, 259) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jLabel9) + .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addContainerGap(294, Short.MAX_VALUE))) + ); + layout.setVerticalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addGap(141, 141, 141) + .addComponent(jLabel6) + .addGap(27, 27, 27) + .addComponent(jLabel8) + .addGap(30, 30, 30) + .addComponent(jLabel9) + .addContainerGap(196, Short.MAX_VALUE))) + ); + + pack(); + }// </editor-fold>//GEN-END:initComponents + + private void jTextFieldNOActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldNOActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jTextFieldNOActionPerformed + + private void ContinueActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ContinueActionPerformed + + + }//GEN-LAST:event_ContinueActionPerformed + + private void jComboBox_eventnameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox_eventnameActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jComboBox_eventnameActionPerformed + + private void jTextField_additionalserviceActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField_additionalserviceActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jTextField_additionalserviceActionPerformed + + private void jTextField_participantsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField_participantsActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jTextField_participantsActionPerformed + + private void jTextFieldfinalbillActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldfinalbillActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jTextFieldfinalbillActionPerformed + + private void jTextFieldtotalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldtotalActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jTextFieldtotalActionPerformed + + private void jTextFieldadditionaltotalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldadditionaltotalActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jTextFieldadditionaltotalActionPerformed + + private void jTextField_participantstotalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField_participantstotalActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jTextField_participantstotalActionPerformed + + private void jTextField_participantstotal1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField_participantstotal1ActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jTextField_participantstotal1ActionPerformed + + private void jTextFieldadditionaltotal1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldadditionaltotal1ActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jTextFieldadditionaltotal1ActionPerformed + + private void jTextFielddiscout1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFielddiscout1ActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jTextFielddiscout1ActionPerformed + + private void jTextFieldtotal1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldtotal1ActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jTextFieldtotal1ActionPerformed + + private void jTextFieldtotal2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldtotal2ActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jTextFieldtotal2ActionPerformed + + private void jTextFieldtotal3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldtotal3ActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jTextFieldtotal3ActionPerformed + + private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed + list li = new list(); + li.setVisible(true); + li.pack(); + li.setLocationRelativeTo(null); + li.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + this.dispose(); + + }//GEN-LAST:event_jButton1ActionPerformed + + /** + * @param args the command line arguments + */ + public static void main(String args[]) { + /* Set the Nimbus look and feel */ + //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> + /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. + * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html + */ + try { + for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { + if ("Nimbus".equals(info.getName())) { + javax.swing.UIManager.setLookAndFeel(info.getClassName()); + break; + } + } + } catch (ClassNotFoundException ex) { + java.util.logging.Logger.getLogger(Genarate_bill.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (InstantiationException ex) { + java.util.logging.Logger.getLogger(Genarate_bill.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (IllegalAccessException ex) { + java.util.logging.Logger.getLogger(Genarate_bill.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (javax.swing.UnsupportedLookAndFeelException ex) { + java.util.logging.Logger.getLogger(Genarate_bill.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } + //</editor-fold> + + /* Create and display the form */ + java.awt.EventQueue.invokeLater(new Runnable() { + public void run() { + new Genarate_bill().setVisible(true); + } + }); + } + + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JButton Continue; + private javax.swing.JButton jButton1; + private javax.swing.JCheckBox jCheckBox2; + private javax.swing.JCheckBox jCheckBox3; + private javax.swing.JCheckBox jCheckBox4; + private javax.swing.JCheckBox jCheckBox5; + private javax.swing.JComboBox jComboBox_eventname; + private javax.swing.JLabel jLabel1; + private javax.swing.JLabel jLabel10; + private javax.swing.JLabel jLabel11; + private javax.swing.JLabel jLabel12; + private javax.swing.JLabel jLabel13; + private javax.swing.JLabel jLabel14; + private javax.swing.JLabel jLabel15; + private javax.swing.JLabel jLabel16; + private javax.swing.JLabel jLabel17; + private javax.swing.JLabel jLabel18; + private javax.swing.JLabel jLabel19; + private javax.swing.JLabel jLabel2; + private javax.swing.JLabel jLabel20; + private javax.swing.JLabel jLabel21; + private javax.swing.JLabel jLabel22; + private javax.swing.JLabel jLabel23; + private javax.swing.JLabel jLabel24; + private javax.swing.JLabel jLabel25; + private javax.swing.JLabel jLabel26; + private javax.swing.JLabel jLabel27; + private javax.swing.JLabel jLabel28; + private javax.swing.JLabel jLabel29; + private javax.swing.JLabel jLabel30; + private javax.swing.JLabel jLabel31; + private javax.swing.JLabel jLabel32; + private javax.swing.JLabel jLabel33; + private javax.swing.JLabel jLabel4; + private javax.swing.JLabel jLabel5; + private javax.swing.JLabel jLabel6; + private javax.swing.JLabel jLabel7; + private javax.swing.JLabel jLabel8; + private javax.swing.JLabel jLabel9; + private javax.swing.JPanel jPanel1; + private javax.swing.JPanel jPanel2; + private javax.swing.JPanel jPanel4; + private javax.swing.JPanel jPanel5; + private javax.swing.JPanel jPanel6; + private javax.swing.JTextField jTextFieldNO; + private javax.swing.JTextField jTextField_additionalservice; + private javax.swing.JTextField jTextField_participants; + private javax.swing.JTextField jTextField_participantstotal; + private javax.swing.JTextField jTextField_participantstotal1; + private javax.swing.JTextField jTextFieldadditionaltotal; + private javax.swing.JTextField jTextFieldadditionaltotal1; + private javax.swing.JTextField jTextFielddiscout1; + private javax.swing.JTextField jTextFieldfinalbill; + private javax.swing.JTextField jTextFieldtotal; + private javax.swing.JTextField jTextFieldtotal1; + private javax.swing.JTextField jTextFieldtotal2; + private javax.swing.JTextField jTextFieldtotal3; + // End of variables declaration//GEN-END:variables +} diff --git a/Eventmanagement/src/eventmanagement/Homepage.form b/Eventmanagement/src/eventmanagement/Homepage.form index 15ddc33..4cd5790 100644 --- a/Eventmanagement/src/eventmanagement/Homepage.form +++ b/Eventmanagement/src/eventmanagement/Homepage.form @@ -64,95 +64,96 @@ <Layout> <DimensionLayout dim="0"> <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" attributes="0"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" alignment="0" attributes="0"> - <EmptySpace max="-2" attributes="0"/> - <Component id="jPanel2" min="-2" max="-2" attributes="0"/> - </Group> - <Group type="102" alignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <Group type="103" groupAlignment="1" attributes="0"> + <Group type="102" alignment="1" attributes="0"> <EmptySpace min="-2" pref="48" max="-2" attributes="0"/> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" alignment="0" attributes="0"> + <Group type="103" groupAlignment="1" attributes="0"> + <Group type="102" attributes="0"> <Component id="jLabel5" min="-2" pref="140" max="-2" attributes="0"/> - <EmptySpace type="separate" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="69" max="-2" attributes="0"/> <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" attributes="0"> - <Component id="jCheckBox_Photography" min="-2" pref="125" max="-2" attributes="0"/> - <EmptySpace type="separate" max="-2" attributes="0"/> - <Component id="jCheckBox_decoration" min="-2" pref="125" max="-2" attributes="0"/> - </Group> - <Group type="102" alignment="0" attributes="0"> - <Component id="jCheckBox_catering" min="-2" pref="125" max="-2" attributes="0"/> - <EmptySpace type="separate" max="-2" attributes="0"/> - <Component id="jCheckBox_sound" min="-2" pref="125" max="-2" attributes="0"/> - <EmptySpace pref="95" max="32767" attributes="0"/> - <Component id="Continue" min="-2" max="-2" attributes="0"/> - </Group> + <Component id="jCheckBox5" max="32767" attributes="0"/> + <Component id="jCheckBox4" max="32767" attributes="0"/> </Group> - </Group> - <Group type="102" attributes="0"> + <EmptySpace min="-2" pref="26" max="-2" attributes="0"/> <Group type="103" groupAlignment="0" attributes="0"> - <Component id="jLabel9" alignment="0" min="-2" max="-2" attributes="0"/> - <Component id="jLabel8" alignment="0" min="-2" pref="103" max="-2" attributes="0"/> - <Component id="jLabel6" alignment="0" min="-2" pref="103" max="-2" attributes="0"/> + <Component id="jCheckBox3" alignment="0" max="32767" attributes="0"/> + <Component id="jCheckBox2" alignment="0" max="32767" attributes="0"/> </Group> - <EmptySpace type="separate" max="-2" attributes="0"/> - <Group type="103" groupAlignment="0" max="-2" attributes="0"> - <Component id="jTextFieldNO" max="32767" attributes="0"/> - <Component id="jDateChooser_eventdate" max="32767" attributes="0"/> - <Component id="jComboBox_eventname" pref="121" max="32767" attributes="0"/> + </Group> + <Group type="102" alignment="1" attributes="0"> + <Group type="103" groupAlignment="1" attributes="0"> + <Group type="102" attributes="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jLabel9" alignment="0" min="-2" max="-2" attributes="0"/> + <Component id="jLabel8" alignment="0" min="-2" pref="103" max="-2" attributes="0"/> + </Group> + <EmptySpace min="-2" pref="189" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jTextFieldNO" min="-2" pref="157" max="-2" attributes="0"/> + <Component id="jDateChooser_eventdate" max="32767" attributes="0"/> + </Group> + </Group> + <Group type="102" attributes="0"> + <Component id="jLabel6" min="-2" pref="103" max="-2" attributes="0"/> + <EmptySpace max="32767" attributes="0"/> + <Component id="jComboBox_eventname" min="-2" max="-2" attributes="0"/> + </Group> </Group> - <EmptySpace min="0" pref="0" max="32767" attributes="0"/> + <EmptySpace min="-2" pref="10" max="-2" attributes="0"/> </Group> </Group> </Group> + <Group type="102" alignment="1" attributes="0"> + <EmptySpace max="32767" attributes="0"/> + <Component id="jPanel2" min="-2" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="10" max="-2" attributes="0"/> + </Group> </Group> - <EmptySpace min="-2" pref="29" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="105" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="1" attributes="0"> + <EmptySpace max="32767" attributes="0"/> + <Component id="Continue" min="-2" pref="128" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="34" max="-2" attributes="0"/> </Group> </Group> </DimensionLayout> <DimensionLayout dim="1"> <Group type="103" groupAlignment="0" attributes="0"> <Group type="102" alignment="0" attributes="0"> - <EmptySpace min="-2" pref="21" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="24" max="-2" attributes="0"/> <Component id="jPanel2" min="-2" max="-2" attributes="0"/> - <EmptySpace min="-2" pref="42" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="39" max="-2" attributes="0"/> <Group type="103" groupAlignment="3" attributes="0"> <Component id="jLabel6" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="jComboBox_eventname" alignment="3" min="-2" max="-2" attributes="0"/> </Group> <EmptySpace min="-2" pref="27" max="-2" attributes="0"/> - <Group type="103" groupAlignment="1" attributes="0"> + <Group type="103" groupAlignment="0" attributes="0"> <Component id="jLabel8" min="-2" max="-2" attributes="0"/> <Component id="jDateChooser_eventdate" min="-2" max="-2" attributes="0"/> </Group> - <EmptySpace min="33" pref="33" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="27" max="-2" attributes="0"/> <Group type="103" groupAlignment="3" attributes="0"> <Component id="jLabel9" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="jTextFieldNO" alignment="3" min="-2" max="-2" attributes="0"/> </Group> - <EmptySpace min="29" pref="29" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="28" max="-2" attributes="0"/> <Group type="103" groupAlignment="3" attributes="0"> <Component id="jLabel5" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="jCheckBox_Photography" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="jCheckBox_decoration" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jCheckBox2" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jCheckBox4" alignment="3" min="-2" max="-2" attributes="0"/> </Group> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" attributes="0"> - <EmptySpace type="separate" max="-2" attributes="0"/> - <Group type="103" groupAlignment="3" attributes="0"> - <Component id="jCheckBox_catering" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="jCheckBox_sound" alignment="3" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace pref="34" max="32767" attributes="0"/> - </Group> - <Group type="102" alignment="1" attributes="0"> - <EmptySpace max="32767" attributes="0"/> - <Component id="Continue" min="-2" max="-2" attributes="0"/> - <EmptySpace min="-2" pref="27" max="-2" attributes="0"/> - </Group> + <EmptySpace min="-2" pref="29" max="-2" attributes="0"/> + <Group type="103" groupAlignment="3" attributes="0"> + <Component id="jCheckBox5" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jCheckBox3" alignment="3" min="-2" max="-2" attributes="0"/> </Group> + <EmptySpace pref="37" max="32767" attributes="0"/> + <Component id="Continue" min="-2" pref="42" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="23" max="-2" attributes="0"/> </Group> </Group> </DimensionLayout> @@ -240,77 +241,92 @@ <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Color blue="5e" green="49" red="34" type="rgb"/> </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextFieldNOActionPerformed"/> </Events> </Component> - <Component class="javax.swing.JCheckBox" name="jCheckBox_Photography"> + <Component class="javax.swing.JButton" name="Continue"> <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="71" green="cc" red="2e" type="rgb"/> + </Property> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> - <Font name="Segoe UI" size="14" style="1"/> + <Font name="Times New Roman" size="24" style="1"/> </Property> - <Property name="text" type="java.lang.String" value="Photography"/> + <Property name="text" type="java.lang.String" value="Continue"/> </Properties> <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jCheckBox_PhotographyActionPerformed"/> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="ContinueActionPerformed"/> </Events> </Component> - <Component class="javax.swing.JCheckBox" name="jCheckBox_decoration"> + <Component class="javax.swing.JComboBox" name="jComboBox_eventname"> <Properties> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Font name="Segoe UI" size="14" style="1"/> </Property> - <Property name="text" type="java.lang.String" value="Decoration"/> + <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor"> + <StringArray count="4"> + <StringItem index="0" value="Wedding Function"/> + <StringItem index="1" value="Birthday Function"/> + <StringItem index="2" value="Get Together"/> + <StringItem index="3" value="Copprate Party"/> + </StringArray> + </Property> </Properties> <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jCheckBox_decorationActionPerformed"/> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jComboBox_eventnameActionPerformed"/> </Events> </Component> - <Component class="javax.swing.JCheckBox" name="jCheckBox_catering"> + <Component class="javax.swing.JCheckBox" name="jCheckBox2"> <Properties> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Font name="Segoe UI" size="14" style="1"/> </Property> - <Property name="text" type="java.lang.String" value="Catering"/> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value=" Photograghy"/> </Properties> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jCheckBox_cateringActionPerformed"/> - </Events> </Component> - <Component class="javax.swing.JCheckBox" name="jCheckBox_sound"> + <Component class="javax.swing.JCheckBox" name="jCheckBox3"> <Properties> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Font name="Segoe UI" size="14" style="1"/> </Property> - <Property name="text" type="java.lang.String" value="Sound"/> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value=" Sounds"/> </Properties> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jCheckBox_soundActionPerformed"/> - </Events> </Component> - <Component class="javax.swing.JButton" name="Continue"> + <Component class="javax.swing.JCheckBox" name="jCheckBox4"> <Properties> - <Property name="text" type="java.lang.String" value="Continue"/> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value=" Decoration"/> </Properties> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="ContinueActionPerformed"/> - </Events> </Component> - <Component class="javax.swing.JComboBox" name="jComboBox_eventname"> + <Component class="javax.swing.JCheckBox" name="jCheckBox5"> <Properties> - <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor"> - <StringArray count="4"> - <StringItem index="0" value="Wedding Function"/> - <StringItem index="1" value="Birthday Function"/> - <StringItem index="2" value="Get Together"/> - <StringItem index="3" value="Copprate Party"/> - </StringArray> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value=" Catering"/> </Properties> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jComboBox_eventnameActionPerformed"/> - </Events> </Component> <Component class="com.toedter.calendar.JDateChooser" name="jDateChooser_eventdate"> </Component> diff --git a/Eventmanagement/src/eventmanagement/Homepage.java b/Eventmanagement/src/eventmanagement/Homepage.java index 798135b..981d547 100644 --- a/Eventmanagement/src/eventmanagement/Homepage.java +++ b/Eventmanagement/src/eventmanagement/Homepage.java @@ -7,12 +7,13 @@ import java.awt.Checkbox; import java.awt.CheckboxGroup; -import java.sql.PreparedStatement; +import java.sql.*; import java.sql.SQLException; import java.text.SimpleDateFormat; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JComboBox; +import javax.swing.JFrame; import javax.swing.JOptionPane; /** @@ -26,6 +27,7 @@ public class Homepage extends javax.swing.JFrame { */ public Homepage() { initComponents(); + this.setLocationRelativeTo(null); } /** @@ -48,12 +50,12 @@ private void initComponents() { jLabel9 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jTextFieldNO = new javax.swing.JTextField(); - jCheckBox_Photography = new javax.swing.JCheckBox(); - jCheckBox_decoration = new javax.swing.JCheckBox(); - jCheckBox_catering = new javax.swing.JCheckBox(); - jCheckBox_sound = new javax.swing.JCheckBox(); Continue = new javax.swing.JButton(); jComboBox_eventname = new javax.swing.JComboBox(); + jCheckBox2 = new javax.swing.JCheckBox(); + jCheckBox3 = new javax.swing.JCheckBox(); + jCheckBox4 = new javax.swing.JCheckBox(); + jCheckBox5 = new javax.swing.JCheckBox(); jDateChooser_eventdate = new com.toedter.calendar.JDateChooser(); jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); @@ -101,44 +103,16 @@ private void initComponents() { jLabel5.setText("Additional Services:"); jTextFieldNO.setBackground(new java.awt.Color(52, 73, 94)); + jTextFieldNO.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jTextFieldNO.setForeground(new java.awt.Color(255, 255, 255)); jTextFieldNO.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextFieldNOActionPerformed(evt); } }); - jCheckBox_Photography.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N - jCheckBox_Photography.setText("Photography"); - jCheckBox_Photography.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - jCheckBox_PhotographyActionPerformed(evt); - } - }); - - jCheckBox_decoration.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N - jCheckBox_decoration.setText("Decoration"); - jCheckBox_decoration.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - jCheckBox_decorationActionPerformed(evt); - } - }); - - jCheckBox_catering.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N - jCheckBox_catering.setText("Catering"); - jCheckBox_catering.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - jCheckBox_cateringActionPerformed(evt); - } - }); - - jCheckBox_sound.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N - jCheckBox_sound.setText("Sound"); - jCheckBox_sound.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - jCheckBox_soundActionPerformed(evt); - } - }); - + Continue.setBackground(new java.awt.Color(46, 204, 113)); + Continue.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N Continue.setText("Continue"); Continue.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { @@ -146,6 +120,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) { } }); + jComboBox_eventname.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N jComboBox_eventname.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Wedding Function", "Birthday Function", "Get Together", "Copprate Party" })); jComboBox_eventname.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { @@ -153,78 +128,95 @@ public void actionPerformed(java.awt.event.ActionEvent evt) { } }); + jCheckBox2.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jCheckBox2.setForeground(new java.awt.Color(255, 255, 255)); + jCheckBox2.setText(" Photograghy"); + + jCheckBox3.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jCheckBox3.setForeground(new java.awt.Color(255, 255, 255)); + jCheckBox3.setText(" Sounds"); + + jCheckBox4.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jCheckBox4.setForeground(new java.awt.Color(255, 255, 255)); + jCheckBox4.setText(" Decoration"); + + jCheckBox5.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jCheckBox5.setForeground(new java.awt.Color(255, 255, 255)); + jCheckBox5.setText(" Catering"); + javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel1Layout.createSequentialGroup() - .addContainerGap() - .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(48, 48, 48) - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(18, 18, 18) + .addGap(69, 69, 69) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jCheckBox5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(jCheckBox4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + .addGap(26, 26, 26) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jCheckBox3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(jCheckBox2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel1Layout.createSequentialGroup() - .addComponent(jCheckBox_Photography, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(18, 18, 18) - .addComponent(jCheckBox_decoration, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jLabel9) + .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(189, 189, 189) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jTextFieldNO, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jDateChooser_eventdate, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addGroup(jPanel1Layout.createSequentialGroup() - .addComponent(jCheckBox_catering, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(18, 18, 18) - .addComponent(jCheckBox_sound, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 95, Short.MAX_VALUE) - .addComponent(Continue)))) - .addGroup(jPanel1Layout.createSequentialGroup() - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(jLabel9) - .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addGap(18, 18, 18) - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) - .addComponent(jTextFieldNO) - .addComponent(jDateChooser_eventdate, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addComponent(jComboBox_eventname, 0, 121, Short.MAX_VALUE)) - .addGap(0, 0, Short.MAX_VALUE))))) - .addGap(29, 29, 29)) + .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(jComboBox_eventname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) + .addGap(10, 10, 10)))) + .addGroup(jPanel1Layout.createSequentialGroup() + .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(10, 10, 10))) + .addGap(105, 105, 105)) + .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() + .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(Continue, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(34, 34, 34)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() - .addGap(21, 21, 21) + .addGap(24, 24, 24) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(42, 42, 42) + .addGap(39, 39, 39) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel6) .addComponent(jComboBox_eventname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(27, 27, 27) - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel8) .addComponent(jDateChooser_eventdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addGap(33, 33, 33) + .addGap(27, 27, 27) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel9) .addComponent(jTextFieldNO, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addGap(29, 29, 29) + .addGap(28, 28, 28) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5) - .addComponent(jCheckBox_Photography) - .addComponent(jCheckBox_decoration)) - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel1Layout.createSequentialGroup() - .addGap(18, 18, 18) - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jCheckBox_catering) - .addComponent(jCheckBox_sound)) - .addContainerGap(34, Short.MAX_VALUE)) - .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addComponent(Continue) - .addGap(27, 27, 27)))) + .addComponent(jCheckBox2) + .addComponent(jCheckBox4)) + .addGap(29, 29, 29) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jCheckBox5) + .addComponent(jCheckBox3)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 37, Short.MAX_VALUE) + .addComponent(Continue, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(23, 23, 23)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); @@ -245,22 +237,6 @@ private void jTextFieldNOActionPerformed(java.awt.event.ActionEvent evt) {//GEN- // TODO add your handling code here: }//GEN-LAST:event_jTextFieldNOActionPerformed - private void jCheckBox_PhotographyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox_PhotographyActionPerformed - // TODO add your handling code here: - }//GEN-LAST:event_jCheckBox_PhotographyActionPerformed - - private void jCheckBox_decorationActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox_decorationActionPerformed - // TODO add your handling code here: - }//GEN-LAST:event_jCheckBox_decorationActionPerformed - - private void jCheckBox_cateringActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox_cateringActionPerformed - // TODO add your handling code here: - }//GEN-LAST:event_jCheckBox_cateringActionPerformed - - private void jCheckBox_soundActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox_soundActionPerformed - // TODO add your handling code here: - }//GEN-LAST:event_jCheckBox_soundActionPerformed - private void jComboBox_eventnameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox_eventnameActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jComboBox_eventnameActionPerformed @@ -276,56 +252,87 @@ private void ContinueActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRS int NoOfParticipants = Integer.parseInt(jTextFieldNO.getText()); - CheckboxGroup service = new CheckboxGroup(); - Checkbox jCheckBox_Photography = new Checkbox("Photography", false, service); - Checkbox jCheckBox_decoration = new Checkbox("Decoration", false, service); - Checkbox jCheckBox_catering = new Checkbox("Catering", false, service); - Checkbox jCheckBox_sound = new Checkbox("Sound", false, service); + int photography = 0; + int decoration = 0; + int catering = 0; + int sounds = 0; + if (jCheckBox5.isSelected()) { - //boolean checked = jCheckBox_Photography.getState(); - - if(jCheckBox_Photography.getState()) { + catering = 1; + + } - String ser1 = "Photography"; + if(jCheckBox2.isSelected()) { + + photography = 1; + } - else if (jCheckBox_decoration.getState()) { - // - String ser2 = "Decoration"; + if (jCheckBox3.isSelected()) { + + sounds = 1; } - else if (jCheckBox_catering.getState()) { - // - String ser3 = "Catering"; - } - else if (jCheckBox_sound.getState()) { - // - String ser4 = "Sound"; + + if (jCheckBox4.isSelected()) { + + decoration = 1; } + + + + //boolean checked = jCheckBox_Photography.getState(); + + + int event_cost = 0; + PreparedStatement st1,st2,st3; + ResultSet rs; + String query1 = "INSERT INTO `event_details`(`event_name`, `event_date`, `no_of_participants`, `event_cost`) VALUES (?,?,?,?)"; + String query2 = "SELECT * FROM event_details ORDER BY event_id DESC LIMIT 1"; - PreparedStatement st; - String query = "INSERT INTO `event_details`(`event_name`, `event_date`, `no_of_participants`) VALUES (?,?,?)"; try{ - st= MyConnection.getConnection().prepareStatement(query); + st1= MyConnection.getConnection().prepareStatement(query1); + + st1.setString(1,eventname); + st1.setString(2,eventdate); + st1.setInt(3,NoOfParticipants); + st1.setInt(4,event_cost); - st.setString(1,eventname); - st.setString(2,eventdate); - st.setInt(3,NoOfParticipants ); + st1.execute(); + + st2= MyConnection.getConnection().prepareStatement(query2); + rs = st2.executeQuery(); + + rs.next(); + int id = rs.getInt("event_id"); + + String query3 = "INSERT INTO events(`id`, `photography`, `sounds`, `catering`, `decoration`) VALUES (?,?,?,?,?)"; + st3= MyConnection.getConnection().prepareStatement(query3); + + st3.setInt(1,id); + st3.setInt(2,photography); + st3.setInt(3,sounds); + st3.setInt(4,catering); + st3.setInt(5,decoration); + + st3.execute(); - if(st.executeUpdate() > 0) - { - JOptionPane.showMessageDialog(null,"New User Add"); - } + }catch(SQLException ex){ Logger.getLogger(Homepage.class.getName()).log(Level.SEVERE,null,ex); } - - + Summary sum = new Summary(); + sum.setVisible(true); + sum.pack(); + sum.setLocationRelativeTo(null); + sum.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + this.dispose(); + }//GEN-LAST:event_ContinueActionPerformed /** @@ -366,10 +373,10 @@ public void run() { // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton Continue; private javax.swing.JCheckBox jCheckBox1; - private javax.swing.JCheckBox jCheckBox_Photography; - private javax.swing.JCheckBox jCheckBox_catering; - private javax.swing.JCheckBox jCheckBox_decoration; - private javax.swing.JCheckBox jCheckBox_sound; + private javax.swing.JCheckBox jCheckBox2; + private javax.swing.JCheckBox jCheckBox3; + private javax.swing.JCheckBox jCheckBox4; + private javax.swing.JCheckBox jCheckBox5; private javax.swing.JComboBox jComboBox1; private javax.swing.JComboBox jComboBox_eventname; private com.toedter.calendar.JDateChooser jDateChooser_eventdate; diff --git a/Eventmanagement/src/eventmanagement/MyConnection.java b/Eventmanagement/src/eventmanagement/MyConnection.java index 12b4c98..50a72d8 100644 --- a/Eventmanagement/src/eventmanagement/MyConnection.java +++ b/Eventmanagement/src/eventmanagement/MyConnection.java @@ -6,6 +6,8 @@ package eventmanagement; import java.sql.Connection; import java.sql.DriverManager; +import java.util.logging.Level; +import java.util.logging.Logger; /** @@ -23,7 +25,7 @@ public static Connection getConnection(){ Class.forName("com.mysql.cj.jdbc.Driver"); con = DriverManager.getConnection("jdbc:mysql://localhost/event_management_system","root",""); }catch(Exception ex){ - System.out.println(ex.getMessage()); + Logger.getLogger(Homepage.class.getName()).log(Level.SEVERE,null,ex); } return con; } diff --git a/Eventmanagement/src/eventmanagement/Summary.form b/Eventmanagement/src/eventmanagement/Summary.form index 769eecd..d91f2ee 100644 --- a/Eventmanagement/src/eventmanagement/Summary.form +++ b/Eventmanagement/src/eventmanagement/Summary.form @@ -23,13 +23,440 @@ <Layout> <DimensionLayout dim="0"> <Group type="103" groupAlignment="0" attributes="0"> - <EmptySpace min="0" pref="400" max="32767" attributes="0"/> + <Component id="jPanel1" alignment="0" max="32767" attributes="0"/> </Group> </DimensionLayout> <DimensionLayout dim="1"> <Group type="103" groupAlignment="0" attributes="0"> - <EmptySpace min="0" pref="300" max="32767" attributes="0"/> + <Component id="jPanel1" alignment="0" max="32767" attributes="0"/> </Group> </DimensionLayout> </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="jPanel1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="43" green="32" red="1" type="rgb"/> + </Property> + </Properties> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" attributes="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Component id="jPanel2" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="102" attributes="0"> + <EmptySpace min="-2" pref="29" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" attributes="0"> + <Component id="jLabel9" min="-2" pref="175" max="-2" attributes="0"/> + <EmptySpace type="unrelated" max="-2" attributes="0"/> + <Component id="jTextField_noofparticipants" min="-2" pref="155" max="-2" attributes="0"/> + <EmptySpace min="0" pref="0" max="32767" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <Component id="jLabel11" min="-2" pref="103" max="-2" attributes="0"/> + <EmptySpace pref="73" max="32767" attributes="0"/> + <Group type="103" groupAlignment="0" max="-2" attributes="0"> + <Component id="jLabel1" max="32767" attributes="0"/> + <Component id="jLabel3" max="32767" attributes="0"/> + </Group> + <EmptySpace max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jTextField7" alignment="0" min="-2" pref="67" max="-2" attributes="0"/> + <Component id="jTextField6" alignment="0" min="-2" pref="67" max="-2" attributes="0"/> + </Group> + <EmptySpace min="-2" pref="34" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jLabel4" min="-2" pref="85" max="-2" attributes="0"/> + <Component id="jLabel7" min="-2" pref="85" max="-2" attributes="0"/> + </Group> + <EmptySpace max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jTextField8" min="-2" pref="67" max="-2" attributes="0"/> + <Component id="jTextField9" min="-2" pref="67" max="-2" attributes="0"/> + </Group> + <EmptySpace min="-2" pref="156" max="-2" attributes="0"/> + </Group> + <Group type="102" attributes="0"> + <Group type="103" groupAlignment="1" attributes="0"> + <Component id="jLabel6" min="-2" pref="103" max="-2" attributes="0"/> + <Component id="jLabel5" min="-2" pref="103" max="-2" attributes="0"/> + <Component id="jLabel10" alignment="1" min="-2" pref="103" max="-2" attributes="0"/> + </Group> + <EmptySpace min="-2" pref="82" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="1" attributes="0"> + <Component id="jTextField_eventdate" min="-2" pref="155" max="-2" attributes="0"/> + <EmptySpace min="0" pref="0" max="32767" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <Component id="jTextField_eventname" min="-2" pref="155" max="-2" attributes="0"/> + <EmptySpace max="32767" attributes="0"/> + <Component id="jButton1" min="-2" pref="140" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <Component id="jTextField_eventid" min="-2" pref="155" max="-2" attributes="0"/> + <EmptySpace max="32767" attributes="0"/> + <Component id="jButton_summary" min="-2" pref="172" max="-2" attributes="0"/> + </Group> + </Group> + </Group> + </Group> + </Group> + </Group> + <EmptySpace min="-2" pref="25" max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Component id="jPanel2" min="-2" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="36" max="-2" attributes="0"/> + <Group type="103" groupAlignment="3" attributes="0"> + <Component id="jLabel6" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jTextField_eventid" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jButton_summary" alignment="3" min="-2" pref="41" max="-2" attributes="0"/> + </Group> + <EmptySpace type="separate" max="-2" attributes="0"/> + <Group type="103" groupAlignment="3" attributes="0"> + <Component id="jLabel5" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jTextField_eventname" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jButton1" alignment="3" min="-2" pref="39" max="-2" attributes="0"/> + </Group> + <EmptySpace max="-2" attributes="0"/> + <Group type="103" groupAlignment="3" attributes="0"> + <Component id="jLabel10" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jTextField_eventdate" alignment="3" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace min="-2" pref="18" max="-2" attributes="0"/> + <Group type="103" groupAlignment="3" attributes="0"> + <Component id="jLabel9" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jTextField_noofparticipants" alignment="3" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace type="separate" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" attributes="0"> + <Component id="jLabel11" min="-2" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="57" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="1" attributes="0"> + <Group type="103" groupAlignment="3" attributes="0"> + <Component id="jTextField7" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jTextField8" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jLabel3" alignment="3" min="-2" pref="20" max="-2" attributes="0"/> + <Component id="jLabel7" alignment="3" min="-2" pref="20" max="-2" attributes="0"/> + </Group> + <EmptySpace min="-2" pref="44" max="-2" attributes="0"/> + </Group> + </Group> + <Group type="103" groupAlignment="3" attributes="0"> + <Component id="jTextField6" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="jTextField9" alignment="3" min="-2" pref="22" max="-2" attributes="0"/> + <Component id="jLabel1" alignment="3" min="-2" pref="20" max="-2" attributes="0"/> + <Component id="jLabel4" alignment="3" min="-2" pref="20" max="-2" attributes="0"/> + </Group> + <EmptySpace pref="26" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="jPanel2"> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="25" max="-2" attributes="0"/> + <Component id="jLabel2" min="-2" pref="107" max="-2" attributes="0"/> + <EmptySpace pref="407" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Component id="jLabel2" max="32767" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="jLabel2"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="18" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Summary"/> + </Properties> + </Component> + </SubComponents> + </Container> + <Component class="javax.swing.JLabel" name="jLabel6"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Event ID:"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel5"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Event Name:"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel10"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Event Date:"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel9"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Number of participants:"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel11"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Services:"/> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="jTextField_eventid"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="5e" green="49" red="34" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextField_eventidActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JTextField" name="jTextField_eventname"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="5e" green="49" red="34" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextField_eventnameActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JTextField" name="jTextField_eventdate"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="5e" green="49" red="34" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextField_eventdateActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JTextField" name="jTextField_noofparticipants"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="5e" green="49" red="34" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextField_noofparticipantsActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JTextField" name="jTextField6"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="5e" green="49" red="34" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextField6ActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JTextField" name="jTextField7"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="5e" green="49" red="34" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextField7ActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JTextField" name="jTextField9"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="5e" green="49" red="34" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextField9ActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JTextField" name="jTextField8"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="5e" green="49" red="34" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextField8ActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JButton" name="jButton_summary"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="71" green="cc" red="2e" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="14" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Show the Summary"/> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton_summaryActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JLabel" name="jLabel1"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Photography"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel3"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Catering"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel4"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Sounds"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel7"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Tahoma" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Decoration"/> + </Properties> + </Component> + <Component class="javax.swing.JButton" name="jButton1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="71" green="cc" red="2e" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="14" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Genarate Bill"/> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton1ActionPerformed"/> + </Events> + </Component> + </SubComponents> + </Container> + </SubComponents> </Form> diff --git a/Eventmanagement/src/eventmanagement/Summary.java b/Eventmanagement/src/eventmanagement/Summary.java index bd11382..e614832 100644 --- a/Eventmanagement/src/eventmanagement/Summary.java +++ b/Eventmanagement/src/eventmanagement/Summary.java @@ -5,6 +5,14 @@ */ package eventmanagement; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.logging.Level; +import java.util.logging.Logger; +import javax.swing.JFrame; +import javax.swing.JOptionPane; + /** * * @author Ram @@ -16,6 +24,7 @@ public class Summary extends javax.swing.JFrame { */ public Summary() { initComponents(); + this.setLocationRelativeTo(null); } /** @@ -27,22 +36,376 @@ public Summary() { // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { + jPanel1 = new javax.swing.JPanel(); + jPanel2 = new javax.swing.JPanel(); + jLabel2 = new javax.swing.JLabel(); + jLabel6 = new javax.swing.JLabel(); + jLabel5 = new javax.swing.JLabel(); + jLabel10 = new javax.swing.JLabel(); + jLabel9 = new javax.swing.JLabel(); + jLabel11 = new javax.swing.JLabel(); + jTextField_eventid = new javax.swing.JTextField(); + jTextField_eventname = new javax.swing.JTextField(); + jTextField_eventdate = new javax.swing.JTextField(); + jTextField_noofparticipants = new javax.swing.JTextField(); + jTextField6 = new javax.swing.JTextField(); + jTextField7 = new javax.swing.JTextField(); + jTextField9 = new javax.swing.JTextField(); + jTextField8 = new javax.swing.JTextField(); + jButton_summary = new javax.swing.JButton(); + jLabel1 = new javax.swing.JLabel(); + jLabel3 = new javax.swing.JLabel(); + jLabel4 = new javax.swing.JLabel(); + jLabel7 = new javax.swing.JLabel(); + jButton1 = new javax.swing.JButton(); + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + jPanel1.setBackground(new java.awt.Color(1, 50, 67)); + + jLabel2.setFont(new java.awt.Font("Segoe UI", 1, 18)); // NOI18N + jLabel2.setText("Summary"); + + javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); + jPanel2.setLayout(jPanel2Layout); + jPanel2Layout.setHorizontalGroup( + jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel2Layout.createSequentialGroup() + .addGap(25, 25, 25) + .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(407, Short.MAX_VALUE)) + ); + jPanel2Layout.setVerticalGroup( + jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel2Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addContainerGap()) + ); + + jLabel6.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel6.setForeground(new java.awt.Color(255, 255, 255)); + jLabel6.setText("Event ID:"); + + jLabel5.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel5.setForeground(new java.awt.Color(255, 255, 255)); + jLabel5.setText("Event Name:"); + + jLabel10.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel10.setForeground(new java.awt.Color(255, 255, 255)); + jLabel10.setText("Event Date:"); + + jLabel9.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel9.setForeground(new java.awt.Color(255, 255, 255)); + jLabel9.setText("Number of participants:"); + + jLabel11.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel11.setForeground(new java.awt.Color(255, 255, 255)); + jLabel11.setText("Services:"); + + jTextField_eventid.setBackground(new java.awt.Color(52, 73, 94)); + jTextField_eventid.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jTextField_eventid.setForeground(new java.awt.Color(255, 255, 255)); + jTextField_eventid.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jTextField_eventidActionPerformed(evt); + } + }); + + jTextField_eventname.setBackground(new java.awt.Color(52, 73, 94)); + jTextField_eventname.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jTextField_eventname.setForeground(new java.awt.Color(255, 255, 255)); + jTextField_eventname.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jTextField_eventnameActionPerformed(evt); + } + }); + + jTextField_eventdate.setBackground(new java.awt.Color(52, 73, 94)); + jTextField_eventdate.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jTextField_eventdate.setForeground(new java.awt.Color(255, 255, 255)); + jTextField_eventdate.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jTextField_eventdateActionPerformed(evt); + } + }); + + jTextField_noofparticipants.setBackground(new java.awt.Color(52, 73, 94)); + jTextField_noofparticipants.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jTextField_noofparticipants.setForeground(new java.awt.Color(255, 255, 255)); + jTextField_noofparticipants.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jTextField_noofparticipantsActionPerformed(evt); + } + }); + + jTextField6.setBackground(new java.awt.Color(52, 73, 94)); + jTextField6.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jTextField6.setForeground(new java.awt.Color(255, 255, 255)); + jTextField6.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jTextField6ActionPerformed(evt); + } + }); + + jTextField7.setBackground(new java.awt.Color(52, 73, 94)); + jTextField7.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jTextField7.setForeground(new java.awt.Color(255, 255, 255)); + jTextField7.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jTextField7ActionPerformed(evt); + } + }); + + jTextField9.setBackground(new java.awt.Color(52, 73, 94)); + jTextField9.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jTextField9.setForeground(new java.awt.Color(255, 255, 255)); + jTextField9.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jTextField9ActionPerformed(evt); + } + }); + + jTextField8.setBackground(new java.awt.Color(52, 73, 94)); + jTextField8.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jTextField8.setForeground(new java.awt.Color(255, 255, 255)); + jTextField8.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jTextField8ActionPerformed(evt); + } + }); + + jButton_summary.setBackground(new java.awt.Color(46, 204, 113)); + jButton_summary.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N + jButton_summary.setText("Show the Summary"); + jButton_summary.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jButton_summaryActionPerformed(evt); + } + }); + + jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel1.setForeground(new java.awt.Color(255, 255, 255)); + jLabel1.setText("Photography"); + + jLabel3.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel3.setForeground(new java.awt.Color(255, 255, 255)); + jLabel3.setText("Catering"); + + jLabel4.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel4.setForeground(new java.awt.Color(255, 255, 255)); + jLabel4.setText("Sounds"); + + jLabel7.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + jLabel7.setForeground(new java.awt.Color(255, 255, 255)); + jLabel7.setText("Decoration"); + + jButton1.setBackground(new java.awt.Color(46, 204, 113)); + jButton1.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N + jButton1.setText("Genarate Bill"); + jButton1.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jButton1ActionPerformed(evt); + } + }); + + javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); + jPanel1.setLayout(jPanel1Layout); + jPanel1Layout.setHorizontalGroup( + jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGap(29, 29, 29) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(jTextField_noofparticipants, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(0, 0, Short.MAX_VALUE)) + .addGroup(jPanel1Layout.createSequentialGroup() + .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 73, Short.MAX_VALUE) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) + .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(34, 34, 34) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(156, 156, 156)) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) + .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(82, 82, 82) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() + .addComponent(jTextField_eventdate, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(0, 0, Short.MAX_VALUE)) + .addGroup(jPanel1Layout.createSequentialGroup() + .addComponent(jTextField_eventname, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGroup(jPanel1Layout.createSequentialGroup() + .addComponent(jTextField_eventid, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(jButton_summary, javax.swing.GroupLayout.PREFERRED_SIZE, 172, javax.swing.GroupLayout.PREFERRED_SIZE))))))) + .addGap(25, 25, 25)) + ); + jPanel1Layout.setVerticalGroup( + jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(36, 36, 36) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel6) + .addComponent(jTextField_eventid, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jButton_summary, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(18, 18, 18) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel5) + .addComponent(jTextField_eventname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel10) + .addComponent(jTextField_eventdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(18, 18, 18) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel9) + .addComponent(jTextField_noofparticipants, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(18, 18, 18) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addComponent(jLabel11) + .addGap(57, 57, 57)) + .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(44, 44, 44))) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addContainerGap(26, Short.MAX_VALUE)) + ); + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGap(0, 400, Short.MAX_VALUE) + .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGap(0, 300, Short.MAX_VALUE) + .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); pack(); }// </editor-fold>//GEN-END:initComponents + private void jTextField_eventidActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField_eventidActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jTextField_eventidActionPerformed + + private void jTextField_eventnameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField_eventnameActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jTextField_eventnameActionPerformed + + private void jTextField_eventdateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField_eventdateActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jTextField_eventdateActionPerformed + + private void jTextField_noofparticipantsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField_noofparticipantsActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jTextField_noofparticipantsActionPerformed + + private void jTextField6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField6ActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jTextField6ActionPerformed + + private void jTextField7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField7ActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jTextField7ActionPerformed + + private void jTextField9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField9ActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jTextField9ActionPerformed + + private void jTextField8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField8ActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jTextField8ActionPerformed + + private void jButton_summaryActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_summaryActionPerformed + + + PreparedStatement st, st2; + String query = "SELECT * from event_details ORDER BY event_id DESC LIMIT 1"; + String query1 = "SELECT * from events ORDER BY id DESC LIMIT 1"; + + try{ + st= MyConnection.getConnection().prepareStatement(query); + + ResultSet rs = st.executeQuery(); + + rs.next(); + jTextField_eventid.setText(Integer.toString(rs.getInt("event_id"))); + jTextField_eventname.setText(rs.getString("event_name")); + jTextField_eventdate.setText(rs.getString("event_date")); + jTextField_noofparticipants.setText(Integer.toString(rs.getInt("no_of_participants"))); + + String photography = "No"; + String catering = "No"; + String decoration = "No"; + String sounds = "No"; + + st2 = MyConnection.getConnection().prepareStatement(query1); + ResultSet rs2 = st2.executeQuery(); + rs2.next(); + if(rs2.getInt("photography") == 1) photography = "Yes"; + if(rs2.getInt("catering") == 1) catering = "Yes"; + if(rs2.getInt("decoration") == 1) decoration = "Yes"; + if(rs2.getInt("sounds") == 1) sounds = "Yes"; + + jTextField6.setText(photography); + jTextField7.setText(catering); + jTextField8.setText(decoration); + jTextField9.setText(sounds); + + }catch(SQLException ex){ + Logger.getLogger(Homepage.class.getName()).log(Level.SEVERE,null,ex); + } + + }//GEN-LAST:event_jButton_summaryActionPerformed + + private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed + Genarate_bill gb = new Genarate_bill(); + gb.setVisible(true); + gb.pack(); + gb.setLocationRelativeTo(null); + gb.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + this.dispose(); + + }//GEN-LAST:event_jButton1ActionPerformed + /** * @param args the command line arguments */ @@ -79,5 +442,27 @@ public void run() { } // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JButton jButton1; + private javax.swing.JButton jButton_summary; + private javax.swing.JLabel jLabel1; + private javax.swing.JLabel jLabel10; + private javax.swing.JLabel jLabel11; + private javax.swing.JLabel jLabel2; + private javax.swing.JLabel jLabel3; + private javax.swing.JLabel jLabel4; + private javax.swing.JLabel jLabel5; + private javax.swing.JLabel jLabel6; + private javax.swing.JLabel jLabel7; + private javax.swing.JLabel jLabel9; + private javax.swing.JPanel jPanel1; + private javax.swing.JPanel jPanel2; + private javax.swing.JTextField jTextField6; + private javax.swing.JTextField jTextField7; + private javax.swing.JTextField jTextField8; + private javax.swing.JTextField jTextField9; + private javax.swing.JTextField jTextField_eventdate; + private javax.swing.JTextField jTextField_eventid; + private javax.swing.JTextField jTextField_eventname; + private javax.swing.JTextField jTextField_noofparticipants; // End of variables declaration//GEN-END:variables } diff --git a/Eventmanagement/src/eventmanagement/Welcome.form b/Eventmanagement/src/eventmanagement/Welcome.form index 769eecd..fcee7ac 100644 --- a/Eventmanagement/src/eventmanagement/Welcome.form +++ b/Eventmanagement/src/eventmanagement/Welcome.form @@ -23,13 +23,80 @@ <Layout> <DimensionLayout dim="0"> <Group type="103" groupAlignment="0" attributes="0"> - <EmptySpace min="0" pref="400" max="32767" attributes="0"/> + <Component id="jPanel1" alignment="0" max="32767" attributes="0"/> </Group> </DimensionLayout> <DimensionLayout dim="1"> <Group type="103" groupAlignment="0" attributes="0"> - <EmptySpace min="0" pref="300" max="32767" attributes="0"/> + <Component id="jPanel1" alignment="0" max="32767" attributes="0"/> </Group> </DimensionLayout> </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="jPanel1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="43" green="32" red="1" type="rgb"/> + </Property> + </Properties> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" attributes="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" attributes="0"> + <EmptySpace min="-2" pref="52" max="-2" attributes="0"/> + <Component id="jLabel1" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="309" max="-2" attributes="0"/> + <Component id="jButton1" min="-2" pref="200" max="-2" attributes="0"/> + </Group> + </Group> + <EmptySpace pref="57" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="81" max="-2" attributes="0"/> + <Component id="jLabel1" min="-2" pref="142" max="-2" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + <Component id="jButton1" min="-2" pref="54" max="-2" attributes="0"/> + <EmptySpace pref="158" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="jLabel1"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Sitka Small" size="36" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Welcome To Cargils Event Managament"/> + </Properties> + </Component> + <Component class="javax.swing.JButton" name="jButton1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="71" green="cc" red="2e" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Start"/> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton1ActionPerformed"/> + </Events> + </Component> + </SubComponents> + </Container> + </SubComponents> </Form> diff --git a/Eventmanagement/src/eventmanagement/Welcome.java b/Eventmanagement/src/eventmanagement/Welcome.java index 587ff2b..b334a9c 100644 --- a/Eventmanagement/src/eventmanagement/Welcome.java +++ b/Eventmanagement/src/eventmanagement/Welcome.java @@ -5,6 +5,8 @@ */ package eventmanagement; +import javax.swing.JFrame; + /** * * @author Ram @@ -16,6 +18,7 @@ public class Welcome extends javax.swing.JFrame { */ public Welcome() { initComponents(); + this.setLocationRelativeTo(null); } /** @@ -27,22 +30,75 @@ public Welcome() { // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { + jPanel1 = new javax.swing.JPanel(); + jLabel1 = new javax.swing.JLabel(); + jButton1 = new javax.swing.JButton(); + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + jPanel1.setBackground(new java.awt.Color(1, 50, 67)); + + jLabel1.setFont(new java.awt.Font("Sitka Small", 1, 36)); // NOI18N + jLabel1.setForeground(new java.awt.Color(255, 255, 255)); + jLabel1.setText("Welcome To Cargils Event Managament"); + + jButton1.setBackground(new java.awt.Color(46, 204, 113)); + jButton1.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + jButton1.setText("Start"); + jButton1.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jButton1ActionPerformed(evt); + } + }); + + javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); + jPanel1.setLayout(jPanel1Layout); + jPanel1Layout.setHorizontalGroup( + jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGap(52, 52, 52) + .addComponent(jLabel1)) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGap(309, 309, 309) + .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))) + .addContainerGap(57, Short.MAX_VALUE)) + ); + jPanel1Layout.setVerticalGroup( + jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGap(81, 81, 81) + .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(158, Short.MAX_VALUE)) + ); + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGap(0, 400, Short.MAX_VALUE) + .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGap(0, 300, Short.MAX_VALUE) + .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); pack(); }// </editor-fold>//GEN-END:initComponents + private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed + Homepage hp = new Homepage(); + hp.setVisible(true); + hp.pack(); + hp.setLocationRelativeTo(null); + hp.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + this.dispose(); + + }//GEN-LAST:event_jButton1ActionPerformed + /** * @param args the command line arguments */ @@ -79,5 +135,8 @@ public void run() { } // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JButton jButton1; + private javax.swing.JLabel jLabel1; + private javax.swing.JPanel jPanel1; // End of variables declaration//GEN-END:variables } diff --git a/Eventmanagement/src/eventmanagement/list.form b/Eventmanagement/src/eventmanagement/list.form new file mode 100644 index 0000000..b04bb8a --- /dev/null +++ b/Eventmanagement/src/eventmanagement/list.form @@ -0,0 +1,152 @@ +<?xml version="1.0" encoding="UTF-8" ?> + +<Form version="1.5" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo"> + <Properties> + <Property name="defaultCloseOperation" type="int" value="3"/> + </Properties> + <SyntheticProperties> + <SyntheticProperty name="formSizePolicy" type="int" value="1"/> + <SyntheticProperty name="generateCenter" type="boolean" value="false"/> + </SyntheticProperties> + <AuxValues> + <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/> + <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/> + <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> + </AuxValues> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jPanel1" alignment="0" max="32767" attributes="0"/> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jPanel1" alignment="0" max="32767" attributes="0"/> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="jPanel1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="43" green="32" red="1" type="rgb"/> + </Property> + </Properties> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="21" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jPanel2" min="-2" max="-2" attributes="0"/> + <Component id="jScrollPane1" min="-2" pref="683" max="-2" attributes="0"/> + </Group> + <EmptySpace pref="53" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="21" max="-2" attributes="0"/> + <Component id="jPanel2" min="-2" max="-2" attributes="0"/> + <EmptySpace pref="17" max="32767" attributes="0"/> + <Component id="jScrollPane1" min="-2" max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="jPanel2"> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="25" max="-2" attributes="0"/> + <Component id="jLabel2" min="-2" pref="195" max="-2" attributes="0"/> + <EmptySpace pref="319" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Component id="jLabel2" max="32767" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="jLabel2"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="18" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Event Summary"/> + </Properties> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JScrollPane" name="jScrollPane1"> + <AuxValues> + <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/> + </AuxValues> + + <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> + <SubComponents> + <Component class="javax.swing.JTable" name="tab1"> + <Properties> + <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor"> + <Table columnCount="4" rowCount="4"> + <Column editable="false" title="Event Id" type="java.lang.Integer"/> + <Column editable="false" title="Event Name" type="java.lang.String"/> + <Column editable="false" title="Event Date" type="java.lang.String"/> + <Column editable="false" title="Event Cost" type="java.lang.Integer"/> + </Table> + </Property> + <Property name="columnModel" type="javax.swing.table.TableColumnModel" editor="org.netbeans.modules.form.editors2.TableColumnModelEditor"> + <TableColumnModel selectionModel="0"> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + </TableColumnModel> + </Property> + <Property name="tableHeader" type="javax.swing.table.JTableHeader" editor="org.netbeans.modules.form.editors2.JTableHeaderEditor"> + <TableHeader reorderingAllowed="true" resizingAllowed="true"/> + </Property> + </Properties> + </Component> + </SubComponents> + </Container> + </SubComponents> + </Container> + </SubComponents> +</Form> diff --git a/Eventmanagement/src/eventmanagement/list.java b/Eventmanagement/src/eventmanagement/list.java new file mode 100644 index 0000000..56d427b --- /dev/null +++ b/Eventmanagement/src/eventmanagement/list.java @@ -0,0 +1,183 @@ + +package eventmanagement; +import java.sql.*; +import java.util.logging.Level; +import java.util.logging.Logger; +import javax.swing.table.DefaultTableModel; +/** + * + * @author deemonface + */ +public class list extends javax.swing.JFrame { + + /** + * Creates new form list + */ + public list() { + initComponents(); + this.setLocationRelativeTo(null); + table(); + } + + public void table(){ + String sql = "SELECT * FROM event_details"; + DefaultTableModel tm; + try{ + + PreparedStatement st = MyConnection.getConnection().prepareStatement(sql); + ResultSet rs = st.executeQuery(); + tm = (DefaultTableModel)tab1.getModel(); + tm.setRowCount(0); + while(rs.next()){ + Object ob[]={rs.getInt("event_id"),rs.getString("event_name"),rs.getString("event_date"),rs.getInt("event_cost")}; + tm.addRow(ob); + } + }catch(SQLException ex){ + Logger.getLogger(Homepage.class.getName()).log(Level.SEVERE,null,ex); + } + } + + /** + * This method is called from within the constructor to initialize the form. + * WARNING: Do NOT modify this code. The content of this method is always + * regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents + private void initComponents() { + + jPanel1 = new javax.swing.JPanel(); + jPanel2 = new javax.swing.JPanel(); + jLabel2 = new javax.swing.JLabel(); + jScrollPane1 = new javax.swing.JScrollPane(); + tab1 = new javax.swing.JTable(); + + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + + jPanel1.setBackground(new java.awt.Color(1, 50, 67)); + + jLabel2.setFont(new java.awt.Font("Segoe UI", 1, 18)); // NOI18N + jLabel2.setText("Event Summary"); + + javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); + jPanel2.setLayout(jPanel2Layout); + jPanel2Layout.setHorizontalGroup( + jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel2Layout.createSequentialGroup() + .addGap(25, 25, 25) + .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 195, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(319, Short.MAX_VALUE)) + ); + jPanel2Layout.setVerticalGroup( + jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel2Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addContainerGap()) + ); + + tab1.setModel(new javax.swing.table.DefaultTableModel( + new Object [][] { + {null, null, null, null}, + {null, null, null, null}, + {null, null, null, null}, + {null, null, null, null} + }, + new String [] { + "Event Id", "Event Name", "Event Date", "Event Cost" + } + ) { + Class[] types = new Class [] { + java.lang.Integer.class, java.lang.String.class, java.lang.String.class, java.lang.Integer.class + }; + boolean[] canEdit = new boolean [] { + false, false, false, false + }; + + public Class getColumnClass(int columnIndex) { + return types [columnIndex]; + } + + public boolean isCellEditable(int rowIndex, int columnIndex) { + return canEdit [columnIndex]; + } + }); + jScrollPane1.setViewportView(tab1); + + javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); + jPanel1.setLayout(jPanel1Layout); + jPanel1Layout.setHorizontalGroup( + jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGap(21, 21, 21) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 683, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addContainerGap(53, Short.MAX_VALUE)) + ); + jPanel1Layout.setVerticalGroup( + jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGap(21, 21, 21) + .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 17, Short.MAX_VALUE) + .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + ); + + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); + getContentPane().setLayout(layout); + layout.setHorizontalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + ); + layout.setVerticalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + ); + + pack(); + }// </editor-fold>//GEN-END:initComponents + + /** + * @param args the command line arguments + */ + public static void main(String args[]) { + /* Set the Nimbus look and feel */ + //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> + /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. + * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html + */ + try { + for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { + if ("Nimbus".equals(info.getName())) { + javax.swing.UIManager.setLookAndFeel(info.getClassName()); + break; + } + } + } catch (ClassNotFoundException ex) { + java.util.logging.Logger.getLogger(list.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (InstantiationException ex) { + java.util.logging.Logger.getLogger(list.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (IllegalAccessException ex) { + java.util.logging.Logger.getLogger(list.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (javax.swing.UnsupportedLookAndFeelException ex) { + java.util.logging.Logger.getLogger(list.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } + //</editor-fold> + + /* Create and display the form */ + java.awt.EventQueue.invokeLater(new Runnable() { + public void run() { + new list().setVisible(true); + } + }); + } + + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JLabel jLabel2; + private javax.swing.JPanel jPanel1; + private javax.swing.JPanel jPanel2; + private javax.swing.JScrollPane jScrollPane1; + private javax.swing.JTable tab1; + // End of variables declaration//GEN-END:variables +}