Matthew Middleton

Greenhorn
+ Follow
since May 05, 2004
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 Matthew Middleton

Thats another idea I was thinking about, every time you press the next or previous buttons to browse the entries, the values are saved to variable. I was thinking about when you press either button, check to see if the new value is different, setting the flag to true (that the file is modified). I was wondering if I doing those comparisons would be best put into a thread.
19 years ago
I have an homework organizing application in which you can save you assignments to a file. I want to be able to, when the users exits, and if the document is modified, prompt to save changes or not. How would I go about calling a function to do this on a person choosing to close (I would know how if they chose 'Exit' from the menu, but I would like to know how to if they choose to click the "X" to close) Also I would like to know the most efficient way of doing this. I was thinking about containing a hash of the information in the file and when exit is chosen compare the hash of the new data to the old. What would you suggest, and how, if hashing is the best idea, would I go about that? Would reading the information into a stream and then hashing the stream be the best, or creating a temporary file and hashing it be the best way. Thank you for your time and GOD Bless.

Matthew Middleton
19 years ago
I have a simple application that just shows the contents of files. As of right now you simply type the full path of the file into a text field, hit read and it shows you the file contents. I want to add an explorer file tree to the side so you can browse to the file and double click it. What would the easiest way be to create the file tree? Thank you for your time and GOD Bless

Matthew Middleton
19 years ago
I have a "Date-book" type application and wanted to add a graphical calendar to it, much like the ones that are built in to the system trays in most OS, something where the current day is highlighted and the date of the current entry is highlighted. Is there a good package that would help me with this or would I have to utilize the Calendar package in conjunction with java graphics to make my own instance of a graphical calendar. Please let me know what you think and if I would have to make it myself, what would be some tips you would suggest. Thank you for your time and GOD Bless.

Matthew Middleton
19 years ago
I have an application that I am working on character mapping with. This program has a menubar w/two menus in it, File, and Edit. I want to have the standerd Alt + f and Alt + d to open these files, how is the best way of doing this. (I'll post what I have if it is necessary.) Also, how do you do underlining a single letter in a string. (i.e. having the F in file and the d in edit underlined). Thank you all in advance. GOD Bless

Matthew Middleton
19 years ago
How many menu items are you talking about, and why won't they fit? Are they cut off at the bottom, or the window isn't wide enough? Have you thought of maybe categorizing the menu items into different menus? Maybe like the file and edit menus, that way it'll show up and maybe make the user interface a little smoother. Let me know if that helped at all, or maybe if you explain it a little more I can help you better. GOD Bless

Matthew Middleton
19 years ago
I tried the start command, it just basically calls another command prompt, no text is in it, kinda like turning the echo off, but it is still there. When you said about using javaw, what exactly were you thinking. Even if you don't know how to implement it please try and explain what you are thinking of, maybe we can work together to find out exactly how to do it. Thanks for your help and GOD Bless

Matthew Middleton
19 years ago
I was talking about java. If its no different, which program should you use to write it that would be the conterpart to notepad, and how do you handle the command prompt in linux. Thanks again and GOD BLess.
19 years ago
I am very new at using linux, I've been programming in windows for 5 years now and would love to learn the ins and outs of programming on a linux machine. I currently have Red Hat 9.0 installed on my computer, any tips, or tutorials on learning how to do this would be greatly appriciated. Thanks for everything and GOD bless.

Matthew Middleton
19 years ago
This question is more about behaviors of batch files b/c I am using one to run my java application. When you run the app through the batch file you get the command prompt window in the background, I turned echoing off and all that does is not print the text in the command prompt. I want to have it where the command window doesn't appear at all, I am programming in windows xp, if there are any good tutorials on this I would love to read up on it. Thank you for your time and GOD Bless

Matthew Middleton
19 years ago
Batch files!!! Haha, I just made a batch file that called the program.
java -jar C:/j2sdk1.4.2_01/bin/Organizer.jar %1. Then just make it where the files are associated w/the batch file. It does call any annoying cmd window behind the app. Now to find out if i can find a way to get rid of that window in the back ground. Thank you agian for all of your help and GOD Bless.
[ August 27, 2004: Message edited by: Matthew Middleton ]
19 years ago
Here's where i am at right now, your code for opening into by typing java -jar jarfile.jar openfile.txt worked, if i type that in the cmd prompt and they are in the same directory it works. now, where do i go from here, i had a couple of ideas but they seem a little bit of a hassle. One would be to write a small app that would write that into the cmd prompt, and create a temp .jar file so they are in the same directory. My friend suggested messing with the registry. I'll be honest, i have no idea how to do that, but i would love to learn. Any tutorials or webpages would be amazingly welcome. Thank you for everything and GOD Bless
19 years ago
I've written a program that you can open a file into, when you chose open it reads in the data and displays it to modify in text areas. I want to be able to make it so if you double click on a file of the certain extension it calls that open function. I know of a couple programs that can integrate a java app into windows so that you can make a file extension open the program, but it only opens the program, it doesn't open the file and read it into the text areas like i want, does any one have an idea on how do to that. I was thinking maybe a way to get the filename of the file that called it??
Thank you for your time and may GOD Bless you!

Matthew Middleton
19 years ago
I have an application that is set up like this, the main frame is a jframe, I have a menu bar on it and two jpanels on the inside of the jframe, one to hold the textfields and one to hold my buttons, previous and next. I want to add keylisteners to the application so that when you press the right arrow key it would be the same as pressing the next button and the left arrow key the same as the Previous button. What part of my app (the jframe, the buttons or the jpanels) should I add the keylisteners too?? I think I've tried them all, but it seems like it does nothing do I have to do something else since I have so many panels, add a focus to one of them, or maybe the buttons?? Any help here would be appriciated. Thank you for your time and GOD Bless.

Matthew Middleton
19 years ago
Ok, I was just wondering what all file extensions that you could read in java. I just bought a new organizer and it can import/export different files such as the to do list/schedule/phone book, but it's only for back up, I wanted to see if I could write a program to open the file and interpret the file so I could read it on my computer and maybe modify it. The files are saved as .csv. Is this possible, can i just read the file like I would a regular text file?? If not how would you do this?? Thank you for your time and GOD Bless.

Matthew Middleton
19 years ago