Brandi Love

Ranch Hand
+ Follow
since Sep 19, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Brandi Love

Thanks for the advice, guys! I'll give it shot.
16 years ago
Welcome Alex! I signed up for JavaRanch my freshman year of college and have found it to be a wonderful community and a helpful resource. I'm sure you will find it to be these things as well.

When started using Swing the first thing that I did was read through Sun's tutorial online. You can find it here:
http://java.sun.com/docs/books/tutorial/uiswing/

Also, I've always found the Java2s site to be very helpful. There are plently of code examples - very useful if you need to see how something actually works. Check it out here:
http://www.java2s.com/Code/Java/CatalogJava.htm

Good luck!
-Brandi L
16 years ago
Hi everyone. I wasn't sure whether to put this question on the I/O board or not, it really isn't about I/O specifically...

I have a text file that I have to read information from, and then manipulate and sort the data. I am trying to determine what would be the most efficient way to handle this.

Firstly, I need to figure out what kind of data structure I should store my data in so I can manipulate it. The lines of information are formatted in "columns" like this:

"Account Number","Name","Company","Street","City","State","Zip","Email","Birth Date","Favorites","Standard Payment","Latest Payment","Balance"

and I intend to seperate them by "column". I know how many columns there are, so it would be easy enough to put them in an array. My problem is that I do not know how many lines of information I have so I could not put this information in a 2-D array without first knowing the size of array to create and to do this I have to go through the file and count the number of lines. I could also create a Vector of String arrays, so that the Vector will resize itself every time I add a new String array (line of information seperated by column) with my data in it. Does anyone have an opinion on the most effiecient way to do this?

Help is always appreciated. Thank you!
[ June 12, 2007: Message edited by: Brandi Love ]
16 years ago
I knew I was missing something silly! I think I've been staring at the screen for far too long. Thanks, Brian!
16 years ago
Hi All!

I've written the code below to create and show a GUI for a test program that I am creating. My problem , that when I put text larger than the scroll pane in either of the JTextAreas that I've created they do not scroll even though I've set them to. I can't figure out what - I must be missing something silly. Does anyone see a problem? I've bolded the important pieces of code. Please not that any variables I have not instantiated here are global - I'm positive I haven't forgotten to declare anything.


[ June 12, 2007: Message edited by: Brandi Love ]
16 years ago
It looks to me like either of those would do the trick. Thanks, Ulf!
16 years ago
Hey all!

I'm trying to figure out how to write a piece of code that uses a browse button to select a file's location (much like when you are uploading a file but I only care about the file's location as I'm just going to connect to it). Any advice? I've been browsing around trying to find a solution and haven't found much.

Thanks, as always!

~Brandi
16 years ago
Hi all!

I have to write a symbol table for a simple grammar in Java and I'm not sure what data structure would best represent it. I thought about using a vector of vectors but it doesn't seem to be working out the way I want it to. Any suggestions?
16 years ago
Hello!

Does anyone have any idea how I might take my output from the console and direct it to a JTextArea? I've been researching and am having trouble finding a good solution. As always, I appreciate any and all assistance.
17 years ago
I overlooked a very simple solution to this one - all you need to do if you want a trace is to set DEBUG_PARSER = true under options in the .jj file.
17 years ago
Hello!

I'm a new user to JavaCC and I could use some help if anyone is willing. So far I've written the .jj file for my code and have gotten JavaCC to generate all 7 files but now I want it to do something more and I'm not sure where to start. My parser uses a GUI. It takes the parser text in from an editable TextArea and appends the output to an uneditable TextArea. What I need my parser to do is to print out a message as it parses each token, something like this:
Expecting digit...
digit found at line 1, column 2.
The error reporting works perfectly correctly and I have the errors showing up in the TextArea for the output but how do I get JavaCC to output this kind of a message to my output TextArea? I'm not sure where to start. I've pasted the code for my .jj file below...

17 years ago
Here's a useful little tool that allows you to select two RGB values and mix them together.
17 years ago
I found this JavaCC tutorial online which I found very helpful with error checking and the translation of my grammar.
17 years ago
Hello!

I've gone through the documentation and have been able to check out all of the templates but I still find myself horribly confused as to where to start. I'll keep looking around online to see if I can find somewhere to start and will post if I do.

In the meantime, if anyone has any suggestions, I'd be eternally thankful.
17 years ago
Hello all! I don't have much experience with JavaCC and I'm trying to figure it all out on my own. I'm using the Eclipse plugin, which I've already set up with Eclipse's update feature. Now I have no idea what to do! Does anyone know of any good tutorials that might be helpful for me? Thanks!
17 years ago