comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * JDK minimum *comfortable* requirements (x86) - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4dda4bf62ef0fd2d * help with arrays - 5 messages, 5 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f42ab64bb45658e2 * Anyone for a challenge? - 4 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/791ca33e07d491a5 * Documentation for generics - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bd3160390776af24 * JMF and JMFREGISTRY - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ade340ef0d32c570 * JWindow on the desktop - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9a2ba0e6bc4f0a65 * Checksum java - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/dd1da7c2f5dfafc2 * Awesome flash site... can swing do this? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e3c6b95b8cc16c92 * Very newbie question - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/87fc20cd28efb6ab * JMS: the confusion BEFORE writing my first Application. - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/31a600e33c73ac42 * Question about Java applets and web servers - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ab1520b923d30e88 * include directive context - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f7b0fa39c2ae8d96 * A good IDE?? - 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fbb4408bff9b23fd * Collections.emptySet - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bc4abb9fe8aeb1de * Tomcat 4.1.24 Logs - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b2dfd3d97edbca12 * program surveillance - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3aa42b0602e08f48 * emacs Vs Eclipse? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/58b6f53b3e1b91e1 * getting resolution of monitor - 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e18f59060e4a3468 * Teaching resources - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/90b8d2e219def2a8 * Drawing images over a JPanel - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fd5a3f6990520065 * looking for algorithm libraries! - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/33e172ba03e456e7 * Print Resultset - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/556ab9f7b40a2c26 ========================================================================== TOPIC: JDK minimum *comfortable* requirements (x86) http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4dda4bf62ef0fd2d ========================================================================== == 1 of 1 == Date: Wed, Oct 6 2004 11:15 am From: "andreas" <[EMAIL PROTECTED]> >> 1.3.1 > > Swing apps. ran just fine under 1.3.1 on Win '95 > installed on a 486 (100MHz CPU w. 64Meg RAM). > well, you have to differ between just running your swing app (jre) and developing it. developing often includes several browser windows open and some kind of IDE running, and for debugging reasons you often have totally different memory requirements for your application while it is under development (especially in embedded designs). i run a 1.4.2 on windows98, 233Mhz, 256 Mb RAM but i develop with WinXP, 2.4Ghz, 1Gb RAM. >the minimum you would feel comfortable developing java applications >with, anyway. 1 Ghz, 256 Mb RAM. no matter what jdk version, since IMHO, this is of lesser importance... andreas ========================================================================== TOPIC: help with arrays http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f42ab64bb45658e2 ========================================================================== == 1 of 5 == Date: Wed, Oct 6 2004 11:20 am From: [EMAIL PROTECTED] (TWG) I'm making a assignment function for arrays. The function has to be a void function and i need to make the "this" array larger. I know i need to make a new array of the require size. just how do i modify the "this" array to be the new array. so i return an array of the right size. == 2 of 5 == Date: Wed, Oct 6 2004 1:01 pm From: "hilz" <[EMAIL PROTECTED]> "TWG" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm making a assignment function for arrays. The function has to be a > void function and i need to make the "this" array larger. I know i > need to make a new array of the require size. just how do i modify the > "this" array to be the new array. so i return an array of the right > size. You're probably not thinking in Java terms. can you post some code? and make your question clearer? == 3 of 5 == Date: Wed, Oct 6 2004 2:10 pm From: "Ann" <[EMAIL PROTECTED]> "hilz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "TWG" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > I'm making a assignment function for arrays. The function has to be a > > void function and i need to make the "this" array larger. I know i > > need to make a new array of the require size. just how do i modify the > > "this" array to be the new array. so i return an array of the right > > size. > > > You're probably not thinking in Java terms. > can you post some code? and make your question clearer? > The requirements look inconsistent. 1. void function 2. return an array == 4 of 5 == Date: Wed, Oct 6 2004 2:35 pm From: "Mike Schilling" <[EMAIL PROTECTED]> "TWG" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm making a assignment function for arrays. The function has to be a > void function and i need to make the "this" array larger. I know i > need to make a new array of the require size. just how do i modify the > "this" array to be the new array. so i return an array of the right > size. You'll never learn anything if you don't do your own homework. == 5 of 5 == Date: Wed, Oct 6 2004 2:49 pm From: Alex Kizub <[EMAIL PROTECTED]> It is impossible. Array is immutable object. You can change elements but not Object Array itself. For example length. You can only read it. There is only one way in Java to change Array - create new one, copy old one, add new items. There is no other way. Alex Kizub. TWG wrote: > I'm making a assignment function for arrays. The function has to be a > void function and i need to make the "this" array larger. I know i > need to make a new array of the require size. just how do i modify the > "this" array to be the new array. so i return an array of the right > size. ========================================================================== TOPIC: Anyone for a challenge? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/791ca33e07d491a5 ========================================================================== == 1 of 4 == Date: Wed, Oct 6 2004 11:22 am From: "Andoni" <[EMAIL PROTECTED]> Hi, I want a way of sorting a list in Java but I don't want to re-invent the wheel as there are two sorting mechanisms in Java already. I am using Java 1.4.1. I have Hashtable which contains textual labels as keys and ArrayLists as values. I have to convert this into a LinkedHashMap which contains the same textual labels as keys but is ordered by the size of the ArrayLists (more than one of which may be the same), and now no longer contains the ArrayList but rather contains the count of their values and the addition of their values as a comma separated string! Input: "exe", [3, 6, 9] "doc", [4, 2, 4] "xls", [1, 9] "txt", [2, 2, 3, 2] Output: "txt","4,9" "exe", "3,18" "doc", "3,10" "xls","2,10" Do I have to write a bubble sort myself or can I leverage something's that's already there? Thanks in advance, Andoni == 2 of 4 == Date: Wed, Oct 6 2004 12:44 pm From: "Andoni" <[EMAIL PROTECTED]> Done, Used Arrays.sort() to sort the counts and then went through my sorted list of counts looking for (and removing) the first one I found that matched. Not forgetting up update my Iterator each time I removed an element from the ArrayList!! Thanks, Andoni. "Andoni" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I want a way of sorting a list in Java but I don't want to re-invent the > wheel as there are two sorting mechanisms in Java already. > > I am using Java 1.4.1. > > I have Hashtable which contains textual labels as keys and ArrayLists as > values. > I have to convert this into a LinkedHashMap which contains the same textual > labels as keys but is ordered by the size of the ArrayLists (more than one > of which may be the same), and now no longer contains the ArrayList but > rather contains the count of their values and the addition of their values > as a comma separated string! > > Input: > "exe", [3, 6, 9] > "doc", [4, 2, 4] > "xls", [1, 9] > "txt", [2, 2, 3, 2] > > Output: > "txt","4,9" > "exe", "3,18" > "doc", "3,10" > "xls","2,10" > > Do I have to write a bubble sort myself or can I leverage something's that's > already there? > > Thanks in advance, > Andoni > > == 3 of 4 == Date: Wed, Oct 6 2004 12:56 pm From: "hilz" <[EMAIL PROTECTED]> > Not forgetting up update my Iterator each time I removed an element from the > ArrayList!! instead, you can remove from the iterator directly, which will automatically remove from the arraylist as well. HTH == 4 of 4 == Date: Wed, Oct 6 2004 12:54 pm From: Andrew Thompson <[EMAIL PROTECTED]> On Wed, 6 Oct 2004 20:44:03 +0100, Andoni wrote: > Done, Excellent. But please do not change the subject lines of your posts unless absolutely necessary, as the response will not thread correctly. -- 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: Documentation for generics http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bd3160390776af24 ========================================================================== == 1 of 1 == Date: Wed, Oct 6 2004 11:23 am From: Andrew Thompson <[EMAIL PROTECTED]> On Wed, 06 Oct 2004 17:02:19 GMT, tom dailey wrote: > Does anyone know of any tutorial documentation on generics? Please don't multi-post* tom. See my answer on the other group. * <http://www.physci.org/codes/javafaq.jsp#xpost> -- 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: JMF and JMFREGISTRY http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ade340ef0d32c570 ========================================================================== == 1 of 1 == Date: Wed, Oct 6 2004 11:25 am From: Andrew Thompson <[EMAIL PROTECTED]> On 6 Oct 2004 09:51:50 -0700, Chinmay wrote: > I am interested in refreshing.. Please don't multi-post Chinmay. <http://www.physci.org/codes/javafaq.jsp#xpost> -- 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: JWindow on the desktop http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9a2ba0e6bc4f0a65 ========================================================================== == 1 of 1 == Date: Wed, Oct 6 2004 11:30 am From: Andrew Thompson <[EMAIL PROTECTED]> On Wed, 06 Oct 2004 15:39:46 GMT, Lee wrote: Please refrain from top-posting Lee, I find it most confusing, and so, apparently, do you. <http://www.physci.org/codes/javafaq.jsp#netiquette> > "Andrew Thompson" <[EMAIL PROTECTED]> wrote in message... >> On Wed, 06 Oct 2004 15:15:04 GMT, Lee wrote: >> >>> I've tried jwindow.toBack() but it seems >>> to disappear altogether. >> >> It works in my code. Where's yours? >> <http://www.physci.org/codes/sscce.jsp> .. > toBack() doesn't work on this: > > public DesktopPanel() It is no wonder you are having problems. That does not compile. Which part of 'self contained' are you having a problem with? -- 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: Checksum java http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/dd1da7c2f5dfafc2 ========================================================================== == 1 of 2 == Date: Wed, Oct 6 2004 11:32 am From: Andrew Thompson <[EMAIL PROTECTED]> On 6 Oct 2004 10:14:33 -0700, Alessio wrote: >> Please pay may wads of cash for consultancy, then I'd >> be happy to email, mail, or sky-write the answer for you. > > if you pay me i'd suck you dick cause u need it for sure Not big on encouraging people to help you, I see. Best of luck with it. -- 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 == 2 of 2 == Date: Wed, Oct 6 2004 1:20 pm From: "hilz" <[EMAIL PROTECTED]> > if you pay me i'd suck you dick cause u need it for sure wooooww....take it easy buddy The dude was just trying to help and just for the record, i don't see your point! you might have meant it the other way around! unless you enjoy doing that....then good for you <puke/> ========================================================================== TOPIC: Awesome flash site... can swing do this? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e3c6b95b8cc16c92 ========================================================================== == 1 of 1 == Date: Wed, Oct 6 2004 11:41 am From: Andrew Thompson <[EMAIL PROTECTED]> On 6 Oct 2004 10:32:13 -0700, keith edward wrote: > Guys, Not talking to the ladies? > I was looking at this flash app What Flash app.? Thus far you have lacked enough sense to describe it as anything beyond a 'flash app'. > THE POINT WAS can anyone provide a similar web app built in swing? Probably. But I don't know what it does. > Does anyone really use swing for web apps anymore? Yes. >..Is swing dead? No. -- 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: Very newbie question http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/87fc20cd28efb6ab ========================================================================== == 1 of 2 == Date: Wed, Oct 6 2004 12:04 pm From: "Thomas G. Marshall" <[EMAIL PROTECTED]> Stefan Schulz coughed up: > On Wed, 06 Oct 2004 04:16:23 GMT, Thomas G. Marshall > <[EMAIL PROTECTED]> wrote: > >> Stefan Schulz coughed up: >> >>> It definitly belongs to cljh, but that is not the main point. :) >> >> Based upon what? >> >> Like I pointed out, the group description for c.l.j.help is: >> >> *Set-up problems, catch-all first aid.* >> >> http://groups.google.com/groups?selm=list-20040915150002%2415cb%40isc.org > > Well, in that case, the taglines should really be updated. To what? Determined by whom? And where is the consensus? -- Onedoctortoanother:"Ifthisismyrectalthermometer,wherethehell'smypen???" == 2 of 2 == Date: Wed, Oct 6 2004 1:27 pm From: "J.F. Cornwall" <[EMAIL PROTECTED]> Andrew Thompson wrote: > On Wed, 6 Oct 2004 13:10:20 GMT, J.F. Cornwall wrote: > > >>Where's the dividing line between "copied" and "this is what >>I looked at to figure out how others have done this"? > > > I think a major measure* is 'transparency'. > > * In this instance I will not refer to commercial > situations, merely academia. > > If the person notes the link in the work they present, > it indicates that they are quite prepared to acknowledge > the source, and confident that the solution presented is > the optimal way to do it. > > If OTOH, the person makes no mention of the other work, it > inherently indicates either incompetence at referencing, > (which needs to be corrected) or guilt over the fact they > do not actually understand what they found. > > Of course, different educational institutions have different > expectations of the balance between research (if you are willing > to include 'found solutions' as research) and original creation > of content. Since that varies from course-to-course, freshman > to PhD, assignment to assignment, tutor to tutor.. ultimately it > is the student's responsibility to determine it from the rules > specified by the institution, and if still unsure, asking their > tutor/professor. > > But the bottom line is, if they neither ask nor reference, > they are 'guilty as hell'. > Thanks. This is the sort of answer I had been looking for. Not surprisingly, I do find myself in overall agreement. :-) Jim ========================================================================== TOPIC: JMS: the confusion BEFORE writing my first Application. http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/31a600e33c73ac42 ========================================================================== == 1 of 1 == Date: Wed, Oct 6 2004 12:13 pm From: [EMAIL PROTECTED] (joel s) I read in the sun jms doc that jms is the java interface to Middleware, like MQ series. Does this mean I actually need MQ series? ITs to expensive. Im already in the programming world, so this is not a school project. My boss came to me and told me that he would like to connect to a remote MQ series machine. With it. Now I have taken the channel and decided to write something at my desk with out connecting to the remote mq. I mean, even if i didnt have to do this project, i would still like to learn it. I really thought that j2ee already had a queing facility built in so I didnt need to buy mq series. If i do need a middle where queue piece, then are there any free ones. I thought i could go into the j2ee command line tool and just set up the queues the way they have it in the example Can you straighten out my confusion? jodasi ========================================================================== TOPIC: Question about Java applets and web servers http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ab1520b923d30e88 ========================================================================== == 1 of 1 == Date: Wed, Oct 6 2004 12:33 pm From: marcus <[EMAIL PROTECTED]> hehe -- I forgot the hehe which meant I was poking fun at you hehe Paul Lutus wrote: > marcus wrote: > > >>c'mon paul -- I was just pointing him in the right direction. Since he >>admitted the question had already been answered, I figured he only >>needed the keywords for a search. > > > Just posting a clarification, I saw nothing at all wrong with your post. > ========================================================================== TOPIC: include directive context http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f7b0fa39c2ae8d96 ========================================================================== == 1 of 1 == Date: Wed, Oct 6 2004 1:10 pm From: [EMAIL PROTECTED] I have one jsp in an application that includes a jsp from another application. I tried using the include directive like this: <%@ include file="/app/mypage.jsp" %> I am getting a server error when I run the jsp with this error: can't find /app/mypage.jsp (File not found) I think it is because of the context it is in because I can go to that page manually by typing it in. Is there a way I can change the context for my include directive, or should I be looking at something else to fix this problem? Thanks for any help in advance. -- Nathan ========================================================================== TOPIC: A good IDE?? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fbb4408bff9b23fd ========================================================================== == 1 of 3 == Date: Wed, Oct 6 2004 1:22 pm From: [EMAIL PROTECTED] (javabulet) Virgil, you have to upgrade to IE 5.5 - this site was apparently developed using IAB Studio, which supports IE5.5+ and NN6.2+. I guess the reason is that IE5.0 does not support some of the API, which is used in IAB Studio. I use IE6.0 and it works fine for me. BTW they also have a demo at www.iabstudio.com, some sample application; I tried it with FireFox, it seems to be working; although it looks better with IE; "Virgil Green" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > "javabulet" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > There's an absolutely amazing IDE - IAB Studio, which is a rapid > > development tool for rich internet applications; I discovered it a > > couple months ago, it's a killer app. It basically helps create rich > > internet applications in days. It's available at www.worcsnet.com; > > have a look, you will be really surprised what a web app can do (it's > > actually a web app itself). > > > > Can't get past the first page at that site with IE 5.0. > > - Virgil == 2 of 3 == Date: Wed, Oct 6 2004 1:47 pm From: Andrew Thompson <[EMAIL PROTECTED]> On 6 Oct 2004 13:22:59 -0700, javabulet wrote: > Virgil, you have to upgrade to IE 5.5 ... 1st principles of web-design. Never tell the user.. a) What they 'have to' do. b) That they have a 'crappy/obsolete' browser*. If a web-page does not work in the user's browser, it is the web-page that is broke. * You did not say that, but that is how it reads if you tell a user they have to upgrade. -- 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: Wed, Oct 6 2004 2:30 pm From: Thomas Schodt <[EMAIL PROTECTED]> javabulet wrote: > Virgil, you have to upgrade to IE 5.5 - this site was apparently > developed using IAB Studio, which supports IE5.5+ and NN6.2+. I guess > the reason is that IE5.0 does not support some of the API, which is > used in IAB Studio. I use IE6.0 and it works fine for me. BTW they > also have a demo at http://www.iabstudio.com/, some sample application; I > tried it with FireFox, it seems to be working; although it looks > better with IE Well, that URL works with Firefox, to a degree. It is not very impressive though. "A good IDE??" indeed... o_O And no, I have no intention of DOWNGRADING to IE or NN. With Firefox: The auto scrolling in the area in the main frame under "Demo tips and news" is extremely annoying - I will scroll when I am good and ready. And there is another scroll area in the left frame that seems broken, between "MEMBER LOGIN" and "ABOUT WORCSNET INC" I just see; HTTP Status 500 If I single out and open one of the frames alone I just get; HTTP Status 500 which is acceptable, but when I press back after that, the top frame just shows; HTTP Status 500 So - is all this because of shortcomings in IAB Studio or is it just that whoever made this particular demo did not think to verify that it works properly with all the most common browsers... ========================================================================== TOPIC: Collections.emptySet http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bc4abb9fe8aeb1de ========================================================================== == 1 of 1 == Date: Wed, Oct 6 2004 1:37 pm From: [EMAIL PROTECTED] (Dominik Gruntz) I found the answer to my question in the FAQ at http://www.langer.camelot.de/GenericsFAQ/FAQSections/TechnicalDetails.html under the question "What happens if a type parameter does not appear in the method parameter list". According to the answer in this FAQ, the assignment Set<Integer> empty = Collections.emtpySet() works and is valid (T is infered to Integer), but if e.g. a method foo(Set<Integer> s){} is defined, it cannot be called with Collecctions.emptySet() as actual parameter as here, the compiler cannot infer the correct type. I do not like that, but at least I understand it now. - Dominik ========================================================================== TOPIC: Tomcat 4.1.24 Logs http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b2dfd3d97edbca12 ========================================================================== == 1 of 1 == Date: Wed, Oct 6 2004 1:39 pm From: [EMAIL PROTECTED] (Michael) I have Tomcat running in standalone mode. Is there a tool that can read the Tomcat access log and provide statistics such as the number of hits for a website? Thanks, Michael ========================================================================== TOPIC: program surveillance http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3aa42b0602e08f48 ========================================================================== == 1 of 1 == Date: Wed, Oct 6 2004 2:01 pm From: "Ann" <[EMAIL PROTECTED]> "Joona I Palaste" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Anto <[EMAIL PROTECTED]> scribbled the following: > > "Sudsy" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > >> Anto wrote: > >> <snip> Someone has a po' of experience <snip> > >> > >> Translation, please? What's a "po'"? > > > Someone have experience > > In other words, "a po' of" doesn't really mean anything? > > -- > /-- Joona Palaste ([EMAIL PROTECTED]) ------------- Finland --------\ > \-- http://www.helsinki.fi/~palaste --------------------- rules! --------/ > "B-but Angus! You're a dragon!" > - Mickey Mouse Po is German for "butt". Maybe OP means "shi% load" of experience. ========================================================================== TOPIC: emacs Vs Eclipse? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/58b6f53b3e1b91e1 ========================================================================== == 1 of 1 == Date: Wed, Oct 6 2004 2:13 pm From: "Ann" <[EMAIL PROTECTED]> "slowCoder" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello everyone, > Is there a discussion on emacs vs eclipse? Are there any advantages of > emacs over eclipse? > > I'm a grad student and I've been using emacs for over 6 years ( it was > the first thing I ever tried and it worked for me). Recently, I had to > "take over" a project and improve it. I didn't have the > design/documentation. The only thing I had was the code ( about 500 > java files, 55 packages and 112kloc) developed over 5 years (yes, it > is a research project). > > Using eclipse helped me quickly understand the code. Eclipse helped me > efficiently search/navigate between files and methods. I found the > eclipse ide to be more powerful than the emacs-ide > (http://jdee.sunsite.dk/). > > Given that eclipse has plugins for C/Java/Latex and runs on Linux/Win, > I don't see a reason why I should stick with emacs. > > I would like to know why emacs-users (who have also tried eclipse) are > still sticking with emacs ? > > An Eclipse Convert. I used emacs in the early 1980's for a couple of years untill my left pinky fell off from having to press the <ctrl> key all the time. ========================================================================== TOPIC: getting resolution of monitor http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e18f59060e4a3468 ========================================================================== == 1 of 3 == Date: Wed, Oct 6 2004 2:19 pm From: [EMAIL PROTECTED] (Jean Paul) I was wondering if it is possible to create a window, where the size is dependant on the resolusion that's currently being used. That is it should set the size automaticly if run on different computer where the resolution setting for the monitors are different. == 2 of 3 == Date: Wed, Oct 6 2004 2:32 pm From: "Ann" <[EMAIL PROTECTED]> "Jean Paul" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I was wondering if it is possible to create a window, where the size > is dependant on the resolusion that's currently being used. That is it > should set the size automaticly if run on different computer where the > resolution setting for the monitors are different. import java.awt.Toolkit; Dimension myScreenSize = Toolkit.getDefaultToolkit().getScreenSize(); == 3 of 3 == Date: Wed, Oct 6 2004 2:34 pm From: Andrew Thompson <[EMAIL PROTECTED]> On 6 Oct 2004 14:19:31 -0700, Jean Paul wrote: > I was wondering if it is possible to create a window, where the size > is dependant on the resolusion that's currently being used. <http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Toolkit.html#getScreenSize()> <http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Toolkit.html#getScreenResolution()> BTW - comp.lang.java.programmer, comp.lang.java.help, comp.lang.java.gui is far too wide a cross-post* for this basic question. Please restrict your posts to c.l.j.help for the moment. * <http://www.physci.org/codes/javafaq.jsp#xpost> [ Follow-Ups set to c.l.j.help ] -- 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: Teaching resources http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/90b8d2e219def2a8 ========================================================================== == 1 of 1 == Date: Wed, Oct 6 2004 2:21 pm From: "Hal Rosser" <[EMAIL PROTECTED]> "VisionSet" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm after some basic scenarios for teaching java. > Both from an OO perspective and from a structured programming perspective, > separately for simple scenarios. > > For starters: > > a problem that will be ideally solved by a simple loop, one using a > conditional and one using both, using just primitives. > > and for OO something that lends itself to writing a simple class with one > attribute and a getter for that attribute. > > I know this is simple stuff and my imagination should be up to it, but > actually as I've found it is extraordinarily difficult to come up with good > examples don't appear overly contrived and don't invite too many distracting > tangents. > > Naturally I don't need the code but some resource that provides simple > problems such as these from the 1st steps in java, upto all the structured > programming capabilities and moderate OO ie introducing poymorphism. > > Resources or your suggestions greatfully received :-) > > -- > Mike W > SCJP, SCJD > Self congratulation for a limited time only! > > An interesting procedural problem I've had (assigned to me) was a multiple control-break problem. As I recall, the file was called "voterdata" and had fields for precinct, county, and state, name, sex, and party. The problem was: Run a detailed report by precinct, by county, by state, by party by name.. with totals for each and break totals. - The OO version has the voter class that knows how to print itself, etc. The biggest work for the instructor is creating the vot\erdata file to work with. HTH --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.772 / Virus Database: 519 - Release Date: 10/1/2004 ========================================================================== TOPIC: Drawing images over a JPanel http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fd5a3f6990520065 ========================================================================== == 1 of 1 == Date: Wed, Oct 6 2004 2:29 pm From: Abs <[EMAIL PROTECTED]> Hi people, I'm using active rendering over a JPanel implementing Runnable and I have some doubts I want share with you. Which of the following codes is better (performace, etc...): 1st one: ----------- BufferedImage im=loadImage(file); Graphics2D g = (Graphics2D) getGraphics(); while (threadSuspended) { g.drawImage(im, 0, 0, this); } g.dispose(); 2nd one: ------------ BufferedImage im=loadImage(file); while (threadSuspended) { Graphics2D g = (Graphics2D) getGraphics(); g.drawImage(im, 0, 0, this); g.dispose(); } Do I have to flush the BufferedImage too ? when ? Thanks in advance ========================================================================== TOPIC: looking for algorithm libraries! http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/33e172ba03e456e7 ========================================================================== == 1 of 2 == Date: Wed, Oct 6 2004 2:33 pm From: "jim" <[EMAIL PROTECTED]> Hi, I am looking for some searching algorithms,such as linear, binary tree, hashing, libraries in java language. anybody can tell me hwo to download them? Thanks a lot == 2 of 2 == Date: Wed, Oct 6 2004 2:40 pm From: Andrew Thompson <[EMAIL PROTECTED]> On Wed, 6 Oct 2004 17:33:42 -0400, jim wrote: > I am looking for .. Did you look in Google? What search terms did you use? In what way were the hits not suited to your needs? -- 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: Print Resultset http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/556ab9f7b40a2c26 ========================================================================== == 1 of 1 == Date: Wed, Oct 6 2004 2:39 pm From: Alex Kizub <[EMAIL PROTECTED]> Always use rs.getString(i); It gives you toString() presentation. Alex Kziub. MAB wrote: > How to print the contents of the resultset if the no. of columns and there > types are not known? If I know the no. of columns and types I can do > > while (rs.next()) { > System.out.println( rs.getString(1) + ' ' + rs.getInt(2) ) ; > } > > thx ======================================================================= 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
