comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * nQueens Problem - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/619c08a5090cd2a0 * How 'java' (command) handles the classname passed - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/908d4e10411ee318 * EJB find methods. Why do they return only the primary key? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3f78cddca61b64ba * JavaBeans need help - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f42726232b7d3bb9 * Color. - 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9cc5c64bd649be2b * hey i am new to this - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1037fd04428c23dc * problems with a cardlayout. - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f278ea47478fd1c * efficient network transfer - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6996ec6c1fb6cf53 * object problem? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1bd7ea0d3b158f73 * UML class diagram generator - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a8241734de4805c3 * Seeking Programmers for GPL Project - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b1a4c15e3b355532 * Split with regular expressions - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2c7dcc86f463c843 * ide sugestions for j2me dev - 2 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/95ffdcc28f2b1a33 * JAXP - perhaps beauty is only in the eye of the beholder - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f57113f7fd851036 * Midlet distribution as .prc in NetBeans - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/298c1b1f95e6d0b5 * Looking for co-op, internship or volunteer java programmer. - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/392330321f8c5f4d * newLine in <applet>'s <param> tag - 3 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1d6211b531fb4f45 * Complete Java 2 Certification Study Guide by Philip Heller, Simon Roberts - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/23f360949f0bf362 ========================================================================== TOPIC: nQueens Problem http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/619c08a5090cd2a0 ========================================================================== == 1 of 2 == Date: Sun, Nov 21 2004 12:21 pm From: "Brian" <[EMAIL PROTECTED]> Hi, does anyone have the code to solve the nQueens problem in Java using a hill climbing method ? cheers, Brian. == 2 of 2 == Date: Sun, Nov 21 2004 6:17 pm From: "Gary Labowitz" <[EMAIL PROTECTED]> "Brian" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi, > > does anyone have the code to solve the nQueens problem in Java using a hill > climbing method ? The obvious answer is, "Yes." What I suppose you want is the code. I have it around here somewhere, but in C++. Can't you just write it in Java? I used it as a homework assignment for my (high school) C++ class. It should be pretty simple. Show us what you have and I'm sure any problems will be spotted. -- Gary ========================================================================== TOPIC: How 'java' (command) handles the classname passed http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/908d4e10411ee318 ========================================================================== == 1 of 1 == Date: Sun, Nov 21 2004 12:26 pm From: "Ben_" <[EMAIL PROTECTED]> > Being pickier still, I don;t know of any JVM restriction that limits it to > files and jars; a JVM implementation could (as far as I know) also search > databases or other sorts of repositories. > I could so, I suppose, as it's already able access it over a socket, like java.net.URLClassLoader. ========================================================================== TOPIC: EJB find methods. Why do they return only the primary key? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3f78cddca61b64ba ========================================================================== == 1 of 1 == Date: Sun, Nov 21 2004 12:53 pm From: "Grzegorz Trafny" <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: > Andrea Desole wrote: > > Playing around with EJBs, I'm noticing that the find methods in the home > > interface return a complete bean (well, its interface), but the > > implementation of the find method in the bean itself returns only the > > primary key. > > What I know is that the container first gets the primary key using the > > find method, and then retrieves the object (maybe using ejbLoad?). > > What I don't understand is why I should access the database (or whatever > > repository where I can find my information) twice, instead of just > > building the bean and returning it in the find method. It can't be > > because the client only works on a stub, because all the calls on my > > stub will eventually go to the real object, so I'll need it anyway. It > > can be because the complete bean is not always needed (for example for a > > remove), but is it really a gain? > > Am I missing something? > > well, you just discovered one of many reasons why CMP EJB's and EJB in > general is a bad but very hyped idea. > http://c2.com/cgi/wiki?WhatsWrongWithEjb > > And no, your not missing anything, accessing n entity beans, by > specification, leads to at least n+1 calls to the database. > http://c2.com/cgi/wiki?EntityBmpFinders > Hi, Yes, but we should consider fact that well configured container can connect many calls (your 'n + 1') in one big SELECT. Naturally, only EB CMP come in here in the game. And if (however practically always) we will add "caching" of EBs, general performance can be even bigger than in case of using low-level poor JDBC calls. I apologize for generalities, but I don't know any official and adequate to needs comparisons. BTW. It it is not possible here to skip fact, that J2EE and EJB additionaly introduce many auxiliary services. Greetings GT ========================================================================== TOPIC: JavaBeans need help http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f42726232b7d3bb9 ========================================================================== == 1 of 1 == Date: Sun, Nov 21 2004 12:55 pm From: "HS1" <[EMAIL PROTECTED]> Thanks I use JBoss, I found the solution, I have to create jar file for the server and put in JBoss folder "KiLVaiDeN" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "HS1" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hello > > > > > > > > I have to modify a session java bean (of other developers) as this bean > has > > an error in it. > > > > > > > > This session bean is used to add, update or delete items in a database > using > > sql query. > > > > > > > > This bean includes remote home and local home interface, a remote and > local > > interface for the bean and a enterprise bean class (this enterprise bean > > class implements the business login for the bean). The enterprise bean has > > some function add, modify items. > > > > > > > > I also have a client application that call business methods with the bean. > > The application work well with function "add". However, there is error in > > the function "modify" as it has a wrong String sql query (for "UPDATE" > > query). I hope you understand the case. > > > > > > > > Therefore, I have to change some code for this function in the enterprise > > bean class. Then I compile whole session bean into new classes. Next, I > uses > > these new classes in my client application in the classes path. > > > > > > > > However, when I run the client application, the application still uses the > > old bean and do not update what I have changed in the enterprise bean > class. > > > > > > > > So my question is: > > > > > > > > After changing or modifying a function in an enterprise bean class in a > > session bean (but still keep the same the return values and arguments in > > this function-this means I do not have to change return values and > arguments > > in interface classes), what I have to do to make that change to be > affected. > > > > > > > > I think it is simple, however, I spend some days with it but it did not > > work. > > > > > > > > Could you PLEASE help > > > > Many thanks > > > > SH1 > > Could you please tell on which environnement this is all working ? > Are you using RMI on that application ? I guess you do > > Tomcat ? > > K > > ========================================================================== TOPIC: Color. http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9cc5c64bd649be2b ========================================================================== == 1 of 3 == Date: Sun, Nov 21 2004 2:25 pm From: John Bailo <[EMAIL PROTECTED]> Whats the difference between: Color.WHITE; and Color.white; ? -- http://www.texeme.com == 2 of 3 == Date: Sun, Nov 21 2004 2:33 pm From: Chris Smith <[EMAIL PROTECTED]> John Bailo <[EMAIL PROTECTED]> wrote: > Whats the difference between: > > Color.WHITE; > > and > > Color.white; > > ? None. The all-caps version (WHITE) was added in a later Java version to conform more closely to Java naming standards. You should use the versions in all-caps in new code, unless you need to maintain compatibility with very old versions of Java. -- www.designacourse.com The Easiest Way To Train Anyone... Anywhere. Chris Smith - Lead Software Developer/Technical Trainer MindIQ Corporation == 3 of 3 == Date: Sun, Nov 21 2004 9:12 pm From: Andrew Thompson <[EMAIL PROTECTED]> On Sun, 21 Nov 2004 15:33:44 -0700, Chris Smith wrote: > John Bailo <[EMAIL PROTECTED]> wrote: .. >> Color.WHITE; >> >> and >> >> Color.white; .... > None. The all-caps version (WHITE) was added in a later Java version .. 1.4, whereas 'white' was in 1.1. I have been caught out by that several times, so in 'protest' I tend to use.. new Color(255,255,255) -- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.LensEscapes.com/ Images that escape the mundane ========================================================================== TOPIC: hey i am new to this http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1037fd04428c23dc ========================================================================== == 1 of 2 == Date: Sun, Nov 21 2004 2:49 pm From: [EMAIL PROTECTED] (Tamer R.) hey guys my name is tamer and i am new to this group and i hope that i learn more about java actually i am kinda in the middle of my java programmer certification and i feel like ofcourse am newbei here :) so hope i can learn more == 2 of 2 == Date: Sun, Nov 21 2004 9:10 pm From: Andrew Thompson <[EMAIL PROTECTED]> On 21 Nov 2004 14:49:11 -0800, Tamer R. wrote: > hey guys > my name is tamer and i am new to this group and i hope that i learn > more about java actually i am kinda in the middle of my java > programmer certification and i feel like ofcourse am newbei here :) I notice you found your way over to c.l.j.help. That is a group better suited to your questions. But since I have your attention, please locate your Shift Key* and type capital letters for the beginning of sentences, the word 'I' and proper names like 'Tamer' and 'Java'. You are likely to get better responses if you take effort to make your posts easy to read. * <http://www.physci.org/kbd.jsp?key=shift> -- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.LensEscapes.com/ Images that escape the mundane ========================================================================== TOPIC: problems with a cardlayout. http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f278ea47478fd1c ========================================================================== == 1 of 1 == Date: Sun, Nov 21 2004 2:54 pm From: steve <[EMAIL PROTECTED]> On Sun, 21 Nov 2004 09:54:42 +0800, steve wrote (in article <[EMAIL PROTECTED]>): > Hi, <SNIP> fixed. stray initialization call drifted into a loop. This is one of several times where im sure Jalopy , has moved code about. ========================================================================== TOPIC: efficient network transfer http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6996ec6c1fb6cf53 ========================================================================== == 1 of 2 == Date: Sun, Nov 21 2004 3:14 pm From: [EMAIL PROTECTED] (uzon) andrew, this is just a forum. don't be so dramatic. troll. the rest, thanks for responding. you guys were right, using the buffers made a huge difference. the transfer is more than three times faster now. -Aaron == 2 of 2 == Date: Sun, Nov 21 2004 9:36 pm From: Andrew Thompson <[EMAIL PROTECTED]> On 21 Nov 2004 15:14:37 -0800, uzon wrote: > andrew, this is just a forum. Aaron/uzon, they were just suggestions (and I am fully aware of what this is). > ..don't be so dramatic. .. Don't be so self-infatuated. > ..troll. Lovely. You cannot respond in any intelligent manner, so you start name-calling instead. -- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.LensEscapes.com/ Images that escape the mundane ========================================================================== TOPIC: object problem? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1bd7ea0d3b158f73 ========================================================================== == 1 of 1 == Date: Sun, Nov 21 2004 3:45 pm From: Michael Borgwardt <[EMAIL PROTECTED]> nick wrote: > when i change the contents of currentPlayer,will temp also change? Yes and no. If you change the *reference* currentPlayer, neither the reference temp nor the object it points at will be affected in any way. But if you change the object that currentPlayer and temp both point at, then of course the change will be "visible" through both references. > because when i change currentPlayer contents, i dont want to affect temp any > more Assuming you're talking about the object and not the references, that can only be achieved by copying the object. This in turn can only be done if the object's class allows it, e.g. by implementing Cloneable and exposing a public clone() method, or by having a copy constructor. ========================================================================== TOPIC: UML class diagram generator http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a8241734de4805c3 ========================================================================== == 1 of 1 == Date: Sun, Nov 21 2004 4:14 pm From: "Hal Rosser" <[EMAIL PROTECTED]> "Brzezi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi. > > Could you recommend mi any program, which generates UML class diagrams from > suource files? > > I`v already written code of my classes, and I have to make class diagram for > it, I`v tried some programs, but noneone do this :/, for example argouml > reads sources, parses it and generates tree of class, I can move this > classes on diagram, but it is very provisional :/, I can`t accept this, > there aren`t any relations beetwen classes :/ > > Could you help mi? > Thanks in advance. To create UML from java source files - try ArgoUML To create UML from scratch - try Poseidon To generate Java source from UML - try Poseidon. ====the combination of ArgoUML and Poseidon CE give your the round trip capabilities **free ** --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 11/19/2004 ========================================================================== TOPIC: Seeking Programmers for GPL Project http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b1a4c15e3b355532 ========================================================================== == 1 of 1 == Date: Sun, Nov 21 2004 4:27 pm From: [EMAIL PROTECTED] Good Day: I am looking for a couple of Java programmers with multi-thread client / server development experience and an entrepreneurial spirit to assist in the completion of a GPL project. Arthritis having caught up with me I can no longer code the way I used to. The job does not pay, but will look quite good on your resume and should it take off then you will become the sought after system experts. Ideally I would like you to reside in the Ottawa, Canada area to enable group meetings. For addition information please contact me via email at [EMAIL PROTECTED] Regards Robert ========================================================================== TOPIC: Split with regular expressions http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2c7dcc86f463c843 ========================================================================== == 1 of 1 == Date: Sun, Nov 21 2004 5:16 pm From: [EMAIL PROTECTED] (hiwa) [EMAIL PROTECTED] (patrik) wrote in message news:<[EMAIL PROTECTED]>... > Hi everybody... > > I have a question concerning regular expressions: > i have the following example string including quotas: > > "bbbb cccc" "dddd eeee" "ffff" > > i want to split the string with the "split(String regex) String[]" > method and want to get the following result array: > > ["bbbb cccc", "dddd eeee", "ffff"] > > so i want to be the blank as separator except the blank is within an > opened and closed quota. Is this possible to do with a regular > expression, and if so - how does this regex look like ?! > > Thanks for help, best regards > Patrik String s = "\"bbbb cccc\" \"dddd eeee\" \"ffff\""; String[] sa = s.split("(?<=\")\\s+(?=\")"); for (int i = 0; i < sa.length; ++i){ System.out.println(sa[i]); } ========================================================================== TOPIC: ide sugestions for j2me dev http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/95ffdcc28f2b1a33 ========================================================================== == 1 of 2 == Date: Sun, Nov 21 2004 5:27 pm From: [EMAIL PROTECTED] (Mike Crabs) Suck my cock manners boy, you sound like a homosexual. == 2 of 2 == Date: Sun, Nov 21 2004 5:30 pm From: [EMAIL PROTECTED] (Mike Crabs) Fuck you NAZI The only thing that frustrates me are CUNTS like you who won't let the spam bots scoop your address - here i'll help you out bitch [EMAIL PROTECTED] ========================================================================== TOPIC: JAXP - perhaps beauty is only in the eye of the beholder http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f57113f7fd851036 ========================================================================== == 1 of 2 == Date: Sun, Nov 21 2004 5:27 pm From: Frank <[EMAIL PROTECTED]> Hello folks, I've written a couple applications now that have been able to utilize JAXP to do a little processing with XML documents, and obtain some results. The problem seems to be that these programs feel like haphazard contraptions of code (implementing the correct interfaces, extending the right classes, and spawning the correct inner classes) just to parse a simple document. Now, my first couple apps with an unfamiliar language or API will be ugly - I *expect* that. But cleaning up after an app using JAXP? I'm not seeing it.. Some of the people I've spoken with have commented that many people prefer DOM over SAX, not because they need to be able to manipulate the document or even access random parts of the document, but because the API for DOM is more intuitive than that for SAX. The second strike against SAX: I have yet to even find a way to simply append data to the Document root using SAX. It seems all modifications to a document require a contorted muddling about with a Transformer, and must inevitably be passed off to a DOM structure. On top of that, the only two XML parsers that ever seem to be documented (in detail at least) are SAX and DOM. One that can't allow any mutibility to the document, and one that must load the entire document into RAM - undesirable for large documents, or scenarios where the app will open the document for long periods of time with infrequent modifications. I can think of at least two other strategies that have varying trade-offs, but do strike a middle ground. I say all this. I'm considering writing my own XML parser library. But before I dig in too deep... are there perhaps other parsers that have already addressed the issues I've cited? As I'm thinking, I could design a SAX parser - something that behaves kind of like an Iterator (though not using that interface specifically), instead of some event dispatcher. It just feels like working with JAXP is akin to flirting with a pretty girl... until she smiles and reveals two missing front teeth. I'm not calling it defective, but it makes you stop to question if you're travelling down the right track. Feedback appreciated, Frank == 2 of 2 == Date: Sun, Nov 21 2004 6:45 pm From: Aleksander Straczek <[EMAIL PROTECTED]> Frank wrote: [cut] > I say all this. I'm considering writing my own XML parser library. But > before I dig in too deep... are there perhaps other parsers that have > already addressed the issues I've cited? As I'm thinking, I could design a > SAX parser - something that behaves kind of like an Iterator (though not > using that interface specifically), instead of some event dispatcher. It > just feels like working with JAXP is akin to flirting with a pretty > girl... until she smiles and reveals two missing front teeth. I'm not > calling it defective, but it makes you stop to question if you're > travelling down the right track. > Have you tried dom4j? http://www.dom4j.org -- Regards, Olek ========================================================================== TOPIC: Midlet distribution as .prc in NetBeans http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/298c1b1f95e6d0b5 ========================================================================== == 1 of 1 == Date: Sun, Nov 21 2004 6:03 pm From: JScoobyCed <[EMAIL PROTECTED]> Kenneth P. Turvey wrote: > I'm learning about midlet development and use NetBeans as my > development platform. I can successfully build a midlet based on > the CLDC 1.1, and MIDP 2.0 specifications and can deploy it and run it > on my Treo 600. Unfortunately I can't seem to find a way to make a > .prc file from the .jar and .jad files for normal palm deployment (not > over the air). Is there a way to tell NetBeans to build the .prc > file? Is there a tool outside NetBeans that I can use to do this? > > Thanks. Hi, In the previous versin of J2ME (MIDP 1.0, CLDC 1.0), the Wireless Toolkit had a tool to generate .prc and .pdb files. But since it was not really in the Java way of thinking (plateform independant), and constructors started to include their own JVM in their devices, Sun removed this prc maker tool. I think it was still possible to generate it through personal profile "something". I have never triied, and never saw it. So don't take it for a sure thing, and I don't have much details about that. Now most PDA/smart phones include a JVM, I doubt there will be tools in wtk. You can still try the J2ME 1.4_01 which include it, and is still availbale from Sun website. But be aware MIDP 2.0 functionalities are not there, only MIDP 1.0 JScoobyCed ========================================================================== TOPIC: Looking for co-op, internship or volunteer java programmer. http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/392330321f8c5f4d ========================================================================== == 1 of 2 == Date: Sun, Nov 21 2004 7:22 pm From: [EMAIL PROTECTED] (Software Consultant) Thank you for everyone's input. Let me make this clear. There is a great concept that I've came up with, but I can't afford to pay full salary for programmer to build this. At the same time, I do hope to find the right people to work with and have a passion for design & coding. Doesn't have to be experience but I don't wanna teach everything from scratch either. When I first started to work in this field, I work for a place that without pay, just free lunch that's it. But with this on my resume, that's how my career starts. Jimmy [EMAIL PROTECTED] (Software Consultant) wrote in message news:<[EMAIL PROTECTED]>... > Are you looking for opportunity to gain professional experience in the > software development field? Do you have a passion for coding? Are > you a quick learner? > > We are looking for talented java developers to participate in our > wireless project. As the team lead, I will provide the architecture > and design. You will be responsible to build your assigned module, > based on your knowledge. We will guide you and help you to implement > your parts. Flexible hours and you can work from home. We do > encourage all developers to attend progress meeting. > > As a small company based in Toronto since 2002, we want you to grow > with us. We have the concept and design to work toward a complete > end-to-end wireless solution. And you should have the follow skills > to qualify building our modules. > > Should know: > Java, UML, SQL, XML, Javascript > > Nice to know: > WAP, HTTPS, Mailet, Servlet, Log4J, Tomcat, Ant, MySQL, Linux > > Please email resume to [EMAIL PROTECTED] and we will > contact qualified candidate for interview. > > Jimmy == 2 of 2 == Date: Sun, Nov 21 2004 7:30 pm From: "xarax" <[EMAIL PROTECTED]> "Software Consultant" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thank you for everyone's input. > > Let me make this clear. There is a great concept that I've came up > with, but I can't afford to pay full salary for programmer to build > this. At the same time, I do hope to find the right people to work > with and have a passion for design & coding. Doesn't have to be > experience but I don't wanna teach everything from scratch either. > > When I first started to work in this field, I work for a place that > without pay, just free lunch that's it. But with this on my resume, > that's how my career starts. /snip/ Then offer some equity. You don't want newbie programmers and experienced professionals need compensation. If you cannot pay money, then offer a piece of the action. ========================================================================== TOPIC: newLine in <applet>'s <param> tag http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1d6211b531fb4f45 ========================================================================== == 1 of 3 == Date: Sun, Nov 21 2004 7:44 pm From: "Ann" <[EMAIL PROTECTED]> "peter10" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello everybody, > > is there an alternative to the <param> tag when passing data to an > applet? > > The problem I have is that newLine characters are lost when using the > <param>tag. > > I tried it with replacing all /n with which worked fine inside > JBuilder but not for IE (6.0) and Netscape (7.1). > > Does anybody have any ideas? > > Thanks alot for every hint, > > Peter You could make the parameter value the name of a file on disk and manipulate the file. I don't understand why you would want to put the edited contents as the parameter value. == 2 of 3 == Date: Sun, Nov 21 2004 9:23 pm From: Andrew Thompson <[EMAIL PROTECTED]> On 21 Nov 2004 10:55:22 -0800, peter10 wrote: >> Why are you feeding 'newlines' to an applet? .. > Well the reason is that my applet functions as a text editor. One can > save and then reload text ... Note that your applet will need to be signed, and I recommend doing your testing/development as an application first. <http://www.physci.org/codes/javafaq.jsp#appfirst> HTH -- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.LensEscapes.com/ Images that escape the mundane == 3 of 3 == Date: Sun, Nov 21 2004 9:27 pm From: Andrew Thompson <[EMAIL PROTECTED]> On Mon, 22 Nov 2004 03:44:07 GMT, Ann wrote: > You could make the parameter value the name of a file on disk > and manipulate the file. Good point. Alternately, the name might be a directory where the user stores a number of documents, and the user gets presented with a file chooser pointing to the directory to select and open files. Note also that you should not rely on Applet.destroy()* for your applet, as this method is not reliably called. * For saving edited documents, for instance. -- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.LensEscapes.com/ Images that escape the mundane ========================================================================== TOPIC: Complete Java 2 Certification Study Guide by Philip Heller, Simon Roberts http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/23f360949f0bf362 ========================================================================== == 1 of 1 == Date: Sun, Nov 21 2004 9:16 pm From: Andrew Thompson <[EMAIL PROTECTED]> On 21 Nov 2004 12:00:23 -0800, Leonardo Maranh?o wrote: > Someone over here can sand me by email the e book of Philip Heller, > Simon Roberts Complete Java 2 Certification Study Guide. I live in > Moçambique - Africa and here we dont have access to this books. If you have access to email, you surely have access to Google, right? In that case it is easier for you to find this book on Google and download it yourself. It will be the same bandwidth as if someone sent it to you in email, but quicker. -- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.LensEscapes.com/ Images that escape the mundane ======================================================================= You received this message because you are subscribed to the Google Groups "comp.lang.java.programmer". comp.lang.java.programmer [EMAIL PROTECTED] Change your subscription type & other preferences: * click http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe Report abuse: * send email explaining the problem to [EMAIL PROTECTED] Unsubscribe: * click http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe ======================================================================= Google Groups: http://groups-beta.google.com
