Need Help To Connect XML as backend in Java-Swing

Ads
 

Need Help To Connect XML as backend in Java-Swing

Seat arrangment swing screenshot

I made XML program to connect to swing like this.

<?xml version="1.0" encoding="iso-8859-1"?>
<BUISNESS-CLASS>
<PERSON>
<CATEGORY>BUSINESS</CATEGORY>
<NAME>Selva</NAME>
<SEATNO>B1</SEATNO>
<OCCUPIED>N</OCCUPIED>
<OCCUPIEDBY>REFID00000</OCCUPIEDBY>
<KIND>A</KIND>
</PERSON>
<PERSON>
<CATEGORY>BUSINESS</CATEGORY>
<NAME>Ganesh</NAME>
<SEATNO>B2</SEATNO>
<OCCUPIED>Y</OCCUPIED>
<OCCUPIEDBY>REFID00001</OCCUPIEDBY>
<KIND>A</KIND>
</PERSON>
<PERSON>
<CATEGORY>BUSINESS</CATEGORY>
<NAME>Nellai</NAME>
<SEATNO>B3</SEATNO>
<OCCUPIED>N</OCCUPIED>
<OCCUPIEDBY>REFID00002</OCCUPIEDBY>
<KIND>A</KIND>
</PERSON>
<PERSON>
<CATEGORY>BUSINESS</CATEGORY>
<NAME>Samurai</NAME>
<SEATNO>B4</SEATNO>
<OCCUPIED>Y</OCCUPIED>
<OCCUPIEDBY>REFID00003</OCCUPIEDBY>
<KIND>I</KIND>
</PERSON>
<PERSON>
<CATEGORY>BUSINESS</CATEGORY>
<NAME>Raja</NAME>
<SEATNO>B5</SEATNO>
<OCCUPIED>Y</OCCUPIED>
<OCCUPIEDBY>REFID00004</OCCUPIEDBY>
<KIND>I</KIND>
</PERSON>
<PERSON>
<CATEGORY>BUSINESS</CATEGORY>
<NAME>Mano</NAME>
<SEATNO>B6</SEATNO>
<OCCUPIED>Y</OCCUPIED>
<OCCUPIEDBY>REFID00005</OCCUPIEDBY>
<KIND>I</KIND>
</PERSON>
<PERSON>
<CATEGORY>BUSINESS</CATEGORY>
<NAME>Raju</NAME>
<SEATNO>B7</SEATNO>
<OCCUPIED>Y</OCCUPIED>
<OCCUPIEDBY>REFID00006</OCCUPIEDBY>
<KIND>I</KIND>
</PERSON>
<PERSON>
<CATEGORY>BUSINESS</CATEGORY>
<NAME>Ram</NAME>
<SEATNO>B8</SEATNO>
<OCCUPIED>Y</OCCUPIED>
<OCCUPIEDBY>REFID00007</OCCUPIEDBY>
<KIND>A</KIND>
</PERSON>
<PERSON>
<CATEGORY>BUSINESS</CATEGORY>
<NAME>Shree</NAME>
<SEATNO>B9</SEATNO>
<OCCUPIED>N</OCCUPIED>
<OCCUPIEDBY>REFID00008</OCCUPIEDBY>
<KIND>A</KIND>
</PERSON>
<PERSON>
<CATEGORY>BUSINESS</CATEGORY>
<NAME></NAME>
<SEATNO>B10</SEATNO>
<OCCUPIED>N</OCCUPIED>
<OCCUPIEDBY>REFID00009</OCCUPIEDBY>
<KIND>A</KIND>
</PERSON>
</BUISNESS-CLASS>

now my problem is if i click the B1 label it need to change as(occupied-grey colour) and data changed to Y...but it did nt do it..

i cant understand how to do this.....

thanks....

View Answers

Ads









Related Tutorials/Questions & Answers:
Need Help To Connect XML as backend in Java-Swing
Need Help To Connect XML as backend in Java-Swing  Seat arrangment swing screenshot I made XML program to connect to swing like this. <?xml... problem is if i click the B1 label it need to change as(occupied-grey colour
need help....how to connect and disconnect multiple databases(databases created in mysql) using java and my sql
need help....how to connect and disconnect multiple databases(databases created... on deadlock in distributed transactions , and in that i am using my sql in java i need... such program if u can provide me...plz plz...help i need the idea/code/implementation
Advertisements
Need help
Need help  Hello... I need some help I have a method which contains 1 string value and i wnat when this method get called den that string value should b assigned as array name.. for example.. i have a method name() which
Need help
Need help  Hello... I need some help I have a method which contains 1 string value and i wnat when this method get called den that string value should b assigned as array name.. for example.. i have a method name() which
Need help
Need help  Dear sir, I have a problem. How to write JSP coding, if a user select a value from drop down list for example department, the another drop.... This name list should get from the database. Please help me. By the way, I'm
Need help with this!
Need help with this!  Can anyone please help me... to a file at all at this time. Any help would be greatly appreciated, thank you... to effectivly end the loop with out the need to break it. for(i=(0); i <
Need help with nested queries
Need help with nested queries  Hello, Table1 has "id", "votes" columns. Table2 has "id", "Name" column. I need to retrieve Name and its corresponging Votes. I tried with nested queries but its confusing. Can anyone please help
need help to create applet
need help to create applet  Can u help me..?? I get a task ...and i dont know how to make it... So I hope that u can help me... Here is the task... e) CardLayout If u can help me, then please
need help please
need help please  Dear sir, my name is logeswaran. I have a big problem that I can't find the solution for a program. How can I block a user from enter a page second time. Please help me. By the way I'm using Access database
Need Help in Java programming
Need Help in Java programming  Hello. Can someone please help me with writing the following program Java program that gives assignment details such as:assignment number,assignment name,due date,submission date,percentage marks
need help with program
need help with program  To write a program to read a set of words from a file and return the following 1)Each word in the file against its frequency 2) the frequency should be in the descending order of the frequencies
need help with program
need help with program  To write a program where we can take two integer array as input,Find the missing number from array"B" has all the numbers from array"A" except one,and find the fastest way in doing
Need help on JAVA JSP
Need help on JAVA JSP  Hi, I have never worked on java and I have... using JAVA JSP). e.g. Tool does not adjust with the resolution of the screen(need to know how I can adjust it based on the cureen system's screen resolution
Friends need a help on ruby..
Friends need a help on ruby..  Friends i need a ruby script and the requirement is When i am running a ruby script in cmd, after executing my script, a html report will be generated having my console output details. For ex
Need some help urgently
Need some help urgently  Can someone please help me with this below question. I need to write a class for this. If you roll Y standard six-sided dice... need to write a class for this where X and Y are passed as parameter. If someone
Java Swing Tutorial - Learning Java Swing programming step by step
database Java Swing Create XML file Java convert jtable...Java Swing tutorial for learning Swing programming in Java step by step Welcome of our Java Swing tutorial section, here you will find many tutorials
Java Swing Tutorial - Learning Java Swing programming step by step
database Java Swing Create XML file Java convert jtable...Java Swing tutorial for learning Swing programming in Java step by step Welcome of our Java Swing tutorial section, here you will find many tutorials
Java Swing Tutorial - Learning Java Swing programming step by step
database Java Swing Create XML file Java convert jtable...Java Swing tutorial for learning Swing programming in Java step by step Welcome of our Java Swing tutorial section, here you will find many tutorials
hello there i need help
i am a beginner, and aside from that i am really eager to learn java please help...hello there i need help  : i need to do a program like this: Automatic Teller Machine [B] Balance [D] Deposit [W] Withdrawal [Q] Quit select you
Need help with console program?
Need help with console program?  Write a console program that repeatedly prompts the user to enter data until they type done (any case, Upper, Lower, or Mixed). thanks in advance.   Here is an example that repeatedly
Need Help With This Scenario
Need Help With This Scenario  The bonnet of a car is opened to determine if there is anything wrong with the engine. Firstly, the radiator water is checked. If the radiator water is below the minimum indicator level
Need Help With This Scenario
Need Help With This Scenario  The bonnet of a car is opened to determine if there is anything wrong with the engine. Firstly, the radiator water is checked. If the radiator water is below the minimum indicator level
java swing and CSS
java swing and CSS  can css be used in java swing desktop application in different forms for better styles?plzz help
Need Help on the script
Need Help on the script  hello there, My name is Femi and am a web developer using php. am working on a project. and am having some difficulties. i dont know if you can help me out with it. The platform am building will receive
i need a help in this please
i need a help in this please  The factorial of a nonnegative integer n is written n! (pronounced ‚?? n factorial‚??) and is defined as follows: n!=n . (n-1) . (n-2) . .... . 1 (for values of n greater than or equal to 1) and n!=1
Need help with my project
Need help with my project  Uses a while loop to perform the following steps: -Prompt the user to input two integers: firstNum and secondNum where secondNum is at least 10 greater than firstNum, both numbers are positive integers
need help...................please
need help...................please  I have a problem in my JSP Coding. How to retrive value from database in to text field when user select one value... on this area. Please help me. By the way, I'm using access Database and JSP coding
Java swing
are displayed in the table..I need the source code in java swing...Java swing  If i am login to open my account the textfield,textarea and button are displayed. if i am entering the time of the textfield
I have need to help
I have need to help  Write a program that, for four points A, B, C and P, draws a triangle formed by ABC and a small cross showing the position of P; and displays a line of text indicating which of the following three cases
Java swing
Java swing  Write a java swing program to calculate the age from given date of birth
need someone to do/help with code
need someone to do/help with code  i need someone to do a code for me. It is a restaurant menu that displays a list of 10 food items. A customer..., along with the number of items sold..please help did a code 500 times cant

Ads