You can click the code button and then start writing after the first ] and before the second [. Note there is no space there, so you have to be accurate with the mouse or cursor.
Alternatively, you can write the code (copy-and-paste) is better, highlight the whole code block and click the code button to add tags after writing.
Note code tags maintain indentation and multiple spaces, and don't wrap, so avoid very long lines. Use spaces, not tab for indentation. You can get text editors which will automatically change a tab to spaces; most people prefer tab→4 spaces.
For delimiters you can try separating the tokens with commas in the input file, and use \w*,\w* as the delimiter. Look in the
java.util.regex.Pattern class or the
Java™ Tutorials that \w means whitespace and comma isn't a "metacharacter". If you express that as a
String you would have to double up the \ characters "\\w*,\\w*". You can try putting "" round all your tokens and splitting on quote mark-whitespace*-quote mark instead, but I would prefer commas. You can find out what the * means in the Tutorials.
If you are using text fields, you won't have that problem; you can put AB60 CDE in your registration number field and not have any problems about the space in the middle.
I have corrected the code tags, and shall delete my half post in a little while.
Where are you getting the variables from? You quote RegNo, model, etc, but are they local variables, parameters or fields? (By the way: that should be regNo, and it would be better to call the field regNoTextField than txtRegNo).
I don't like the addActionListener(this) concept. I would prefer to have classes associated with the buttons. It would be too much like hard work to change that just as the moment, however. Get your adding working first. Change the adding block to read like this:
See what prints out when you click the button. Are you suffering any exceptions? If that doesn't give any explanation, we shall have to see some more code, I think.