Mike Brooks

Greenhorn
+ Follow
since Oct 07, 2007
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 Mike Brooks

Hey,

Is there anyway to change a JTable row colour using the abstract table model not the default table modle cant find this information anywhere.

Thanks and regards
14 years ago
Hello, i trying to read a file into a JTable but when i do so instead of getting many different columns I am only get 1. does any one know where i am going wrong

The first line of the data file contains the column names. Fields are separated by the "|" character.

[customers.dat]



[DataFileTableModel.java]


[DataFileTable.java]
14 years ago
Hello what i am doing is creating a program that will let me allow two android phones to communicate over TCP. The code that I have is

Server:


Client:


The problem is when I run the client on the emulator and then the server on the phone the client produces the following error. Note the server is running first and both programs have Internet permissions in the mainifest.



My aim is to use two phone where a phone is the server and the client is also on a phone. Any help would be much appreciated.
14 years ago
The error is

14 years ago
Hey,

I have put a file on an sdcard and I am right now trying to read it to send using sockets. My code is



The error comes from this line

14 years ago
Hey,

In my code here i get an error at the line



Just wondering if i doing something wrong



14 years ago
Hello,

I have a program that is sending files using sockets. My question is how go I could about reading/scanning a music file to send and then recreate the file at the other end.

Thanks and Regards
Mike
14 years ago
Would it be possible to do using bluetooth and if so is there any good tutorials on the topic. I just thought it would better due to the higher speed to send between phones over 802.11.

Thanks
Mike
14 years ago
Hey what I was planing on doing was using HTTP in a program to send a file to another phone which would use HTTP to receive.

What I'm not sure on is if you can use sockets to send a recive files between androids phones. Or is there a better way to do this.

Regards and Thanks
Mike
14 years ago
Hey guys,

I am new to android development and I am trying to find out how to send files over WiFi. I have failed to find any tutorials on the topic and was hoping you could help or point me in the right direction.

Regards
Mike
14 years ago
Hey

This is probably a stupid question, but is there any way that I can read in the files in a directary in alphabetical order. This would really help as right now when i read them in they come in in a random order which is not very nice in a display.

Thanks.
15 years ago
Hey,

I am writing a program that display a Jtree and in doing so i would like to change the name of the node from file to a string. The reason i make it a file in the first place is so that it give me the folder icon if it is a directory etc.. The problem is i don t want to show the full file path in the Jtree so I change the name of the node but when i do this the icon can change as the name is no longer a file.

Is there a way to lock the DefaultTreeCellRenderer so that node does not change or is there a better way to change the name so that the DefaultTreeCellRenderer does not change the icon

Please any help would be much appreciated.
15 years ago
Well i ment if you have the row number how would you be able to highlight that row? So realy how do you highlight a row without selecting it with the mouse or keyboard?
15 years ago
Hey, does anyone know if there is a method for highlighting a row such that if you give the function the row number in the table then the function will highlight the row which number was supplied to the function.
15 years ago