Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link

Keith Mc C

Greenhorn
+ Follow
since May 01, 2005
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 Keith Mc C

Michael Dunn wrote:from your description, generally, you would have two gridlayout panels, both (0,1)
the labels would be added to the first gridlayout
the textfields added to the second

the gridlayout panels would be added to a borderlayout panel
label gridlayout to borderlayout.west
textfield gridlayout to borderlayout.center

the labels/textfields should line up alongside each other,
and if the frame is dragged wider, the additional space will go to the textfields



Thanks Michael, found that very helpful.

Unfortunately didnt get alot of the functionality done in the time allocated but at least the GUI was readable and I got the data that was read in from file displayed on it.

Better brush up on my swing for future, thanks again. Keith.
11 years ago
In the middle of a Swing assessment for a job im going for (has to be done in next hour)

am wasting time trying to figure out how to display my JTextfields and align them when i should be coding the rest of the project

Its been a couple of years since i did any swing so cant remember much..

basically what i need is 2 columns the first has all the field titles (i.e PersonID, First Name, DOB ...etc) uneditable
the second will have corresponding editable JTextfields that will contain the data for each person

I know this is simple but like i said im rusty so a couple of lines showing how to get setlayout and get them in the roght place would be greatly appreciated
11 years ago
I figured it out. The HP-UX machine was on another network, which has tight security. So the network security stopped the Applet from performing the ftp connection, at least when i tried to access the page from here. It worked fine for users on the other network.
I'm going to read that java security page anyways, Thanks guys!
14 years ago
I figured it out. The HP-UX machine was on another network, which has tight security. So the network security stopped the Applet from performing the ftp connection, at least when i tried to access the page from here. It worked fine for users on the other network.
I'm going to read that java security page anyways, Thanks guys!
14 years ago

Originally posted by Jan Cumps:
By default, an applet can only connect to the server that 'served' the applet. Connecting to any other server will fail.
If you want to extend the capabilities of an applet, you have to sign it.
Read more from Sun.

Regards, Jan



I have signed the applet. So it should be able to connect as the server details are hard coded in the applet
14 years ago

Originally posted by Paul Clapham:
I'm confused. Is the applet running on the HP-UX machine or is it being served from that machine and running somewhere else? And what does "locally" mean?



It is running on the HP-UX machine.
by locally i mean it worked fine before porting to HP-UX
14 years ago
Oh and the applet works fine locally.
14 years ago
Hi All,

I have recently ported a project to a HP-UX machine and am having problems with an Applet that uses the FTPClient class.

It throws a 'Connection timed out: connect' exception on this line:

ftp = new FTPClient(server);

I have tried ftping from the HP-UX machine to the destination address and that works fine. Something goes wrong when the applet tries with the same details.

Any help would be brilliant!

Thanks,

Keith.
14 years ago
hello all,

i am developing a web application in which i accept bookings for a cinema. on the booking page i have a table with a drop down menu(0-10) for the number of tickets they want(ie. adults). the next column in the table is the SUBTOTAL field. i want it to automically set the subtotal price when the user selects a number from the drop down menu and display in right then. (e.g.) user selects 2 tickets...(2*7.00)=subtotal...14
does any1 know how i could do this?

thanks keith.
thanks that helped, i'm a bit of a dumbass when it comes to HTML.
didnt need a form at all, a regular link will do. nice one
16 years ago
JSP
hello, i am doing a project for college, its an online cinema booking site.
i'm just trying to pass a film code from one jsp page to another like so..

<FORM METHOD="LINK" ACTION="showTimes.jsp?code=<% request.getParameter("code") %>">
<INPUT TYPE="submit" align="CENTER" VALUE="Show All Times/ Book Now">
</FORM>


but i am getting an exception and am stuck. i'm sure its something fairly basic but HTML/JSPs not my strong point.

please help! thanks
16 years ago
JSP
to make sure its a valid email address (maybe i can do it later )
16 years ago
to make sure its a valid email address (maybe i can do it later )
16 years ago
hello,

i am taking in an email address in from a form on my register.jsp page and need to do some validation on it.
does anybody have experience using the validate() method from the javax.mail.internet.InternetAddress class? how does it work?
or else i might just check that it contains an '@'
would appreciate some suggestions please..

thanks keith.
16 years ago
happy new year folks,

i am writing a client server chat application in which i am currently trying to do this :
public class Chat extends JFrame implements Runnable { .....

i'm not sure this is the best way possible but it is mainly because i am copying another example TCPChat.java and i used JFrameBuilder to design the GUI.

so heres the problem :
public static void main(String[] args)
{
Chat chatObj = new Chat();
chatObj.run();
}
(in main i am creating an instance of Chat and calling its run() method from main also -
but then every time there is a change of state in the connectionstatus i need to call the run method again from the below function ..? :
// The non-thread-safe way to change the GUI components while
// changing state
private static void changeStatusNTS(int newConnectStatus, boolean noError) {
// Change state if valid state
if (newConnectStatus != NULL) {
connectionStatus = newConnectStatus;
}

// If there is no error, display the appropriate status message
if (noError) {
statusString = statusMessages[connectionStatus];
}
// Otherwise, display error message
else {
statusString = statusMessages[NULL];
}

// Call the run() routine (Runnable interface) on the
// current thread
chatObj.run();
}

i know i cant say chatObj.run(); from here so what should i do

thanks in advance if ANY1 could please help me out
16 years ago