Thread View: comp.lang.java.programmer
8 messages
8 total messages
Started by - HAL9000
Sat, 01 Nov 2003 08:30
JFileChooser in J2ME
Author: - HAL9000
Date: Sat, 01 Nov 2003 08:30
Date: Sat, 01 Nov 2003 08:30
9 lines
1569 bytes
1569 bytes
I am writing a J2ME application and need to choose/select files on a network drive. My understanding is that I cannot use JFileChooser since J2ME doesn't support Swing. Is my understanding correct? Also if the above is true, can anyone recommend a web page to guide me in implementing the equivalent of JFileChooser using awt components? Thanks for your help, Forrest
Re: JFileChooser in J2ME
Author: Andrew Thompson
Date: Sat, 01 Nov 2003 08:47
Date: Sat, 01 Nov 2003 08:47
13 lines
1555 bytes
1555 bytes
"- HAL9000" <gumpy@mail.org> wrote in message news:huq6qv0grlmi79njlhfhj7aou5le4u8inm@4ax.com... .. > Also if the above is true, can anyone recommend a web page to guide me > in implementing the equivalent of JFileChooser using awt components? java.awt.FileDialog -- Andrew Thompson http://www.AThompson.info/ http://www.PhySci.org/ http://www.1point1C.org/
Re: JFileChooser in J2ME
Author: - HAL9000
Date: Sat, 01 Nov 2003 21:04
Date: Sat, 01 Nov 2003 21:04
13 lines
1713 bytes
1713 bytes
Thanks Andrew, I'll try that ! On Sat, 01 Nov 2003 08:47:11 GMT, "Andrew Thompson" <andrew64@bigNOSPAMpond.com> wrote: >"- HAL9000" <gumpy@mail.org> wrote in message >news:huq6qv0grlmi79njlhfhj7aou5le4u8inm@4ax.com... >.. >> Also if the above is true, can anyone recommend a web page to guide me >> in implementing the equivalent of JFileChooser using awt components? > >java.awt.FileDialog
Re: JFileChooser in J2ME
Author: Darryl L. Pierce
Date: Mon, 03 Nov 2003 01:35
Date: Mon, 03 Nov 2003 01:35
20 lines
2108 bytes
2108 bytes
- HAL9000 wrote: > I am writing a J2ME application and need to choose/select files on a > network drive. My understanding is that I cannot use JFileChooser > since J2ME doesn't support Swing. Is my understanding correct? Correct. > Also if the above is true, can anyone recommend a web page to guide me > in implementing the equivalent of JFileChooser using awt components? You can't. Since there's no such thing as a file system on most MIDs (Mobile Internet Devices) there's no way to browse a file system. However, on devices that *do* support the concept of a file system, Sun already has available the optional PIM APIs which includes the File System API set. -- Darryl L. Pierce <mcpierce@myrealbox.com> Visit the Infobahn Offramp - <http://bellsouthpwp.net/m/c/mcpierce> "What do you care what other people think, Mr. Feynman?"
Re: JFileChooser in J2ME
Author: Darryl L. Pierce
Date: Mon, 03 Nov 2003 01:35
Date: Mon, 03 Nov 2003 01:35
14 lines
1625 bytes
1625 bytes
Andrew Thompson wrote: >> Also if the above is true, can anyone recommend a web page to guide me >> in implementing the equivalent of JFileChooser using awt components? > > java.awt.FileDialog Nope. He was asking for the MIDP, and the AWT is definitely *not* a part of the MIDP. -- Darryl L. Pierce <mcpierce@myrealbox.com> Visit the Infobahn Offramp - <http://bellsouthpwp.net/m/c/mcpierce> "What do you care what other people think, Mr. Feynman?"
Re: JFileChooser in J2ME
Author: Darryl L. Pierce
Date: Mon, 03 Nov 2003 01:35
Date: Mon, 03 Nov 2003 01:35
11 lines
1465 bytes
1465 bytes
- HAL9000 wrote: > Thanks Andrew, I'll try that ! Andrew's advice was incorrect. The java.awt hierarchy is not available within the MIDP. -- Darryl L. Pierce <mcpierce@myrealbox.com> Visit the Infobahn Offramp - <http://bellsouthpwp.net/m/c/mcpierce> "What do you care what other people think, Mr. Feynman?"
Re: JFileChooser in J2ME
Author: Ben Jessel
Date: Mon, 03 Nov 2003 14:59
Date: Mon, 03 Nov 2003 14:59
8 lines
1621 bytes
1621 bytes
> You can't. Since there's no such thing as a file system on most MIDs > (Mobile Internet Devices) there's no way to browse a file system. However, > on devices that *do* support the concept of a file system, Sun already has > available the optional PIM APIs which includes the File System API set. Alternatively, use the device specific java API's that come with the phone. Could you accomplish what you need to do with recordsets? On most devices this is what is used for persistant storage.
Re: JFileChooser in J2ME
Author: Darryl L. Pierce
Date: Mon, 03 Nov 2003 16:39
Date: Mon, 03 Nov 2003 16:39
16 lines
2058 bytes
2058 bytes
Ben Jessel wrote: >> You can't. Since there's no such thing as a file system on most MIDs >> (Mobile Internet Devices) there's no way to browse a file system. >> However, on devices that *do* support the concept of a file system, Sun >> already has available the optional PIM APIs which includes the File >> System API set. > > Alternatively, use the device specific java API's that come with the > phone. This assumes that such APIs exist, and ignores that doing so creates a MIDlet suite that cannot be ported to another platform. Additionally, it assumes that the phone *has* a file system (something most phones do not have) or that the phone supports the required protocols for doing network directory browsing (which is a bad assumption to make).
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads