Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jtalerico

macrumors 6502
Original poster
Nov 23, 2005
358
0
Okay, so I wrote a little cheesy program that allows a user to connect to their server (via ftp right now, thinking about making it sftp) grab a document (.txt, .html, .php etc...) Opens it in my cheesy editor (simple JTextArea() ). Then allows the user to save it, then upload it back to the server... Here is where i could use some help.

My cheesy FTP thing does not have like real time view area... I really dont know how to explain it but like this... Say you want to change directories.. Well i have a JOptionPane.showInputDialog that tells the user where they are currently at and ask them where they want to be. If they hit cancel they will be asked what file in the working directory, if they input a directory it will move to that directory. What i want is to get rid of the JOptionPane.. and get like a JTextField that updates once the user inputs the directory they would like to be in.. And get rid of all the Pane popups... Any ideas??
 

HiRez

macrumors 603
Jan 6, 2004
6,265
2,629
Western US
jtalerico said:
Say you want to change directories.. Well i have a JOptionPane.showInputDialog that tells the user where they are currently at and ask them where they want to be.
Why not just use a JFileChooser? Or, instead of using JOptionPane, implement those things yourself in a custom dialog window that will do what you want. Not sure I'm understanding exactly what you want though... :confused:
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.