comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * Help needed - new to JMX - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/47b12c2f0b090bb3 * Tomcat JK2 Connector - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7ce096912a5bf5d9 * Java History - 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5712674adb50bd0e * Unique key and value - 5 messages, 4 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3f78fd73e6d5dce7 * MIDP MIDlet: which characters are supported in the phone font? - 3 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/73bdfdf7f36c6ea0 * Scrollable JPanel having GridLayout. - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1b22abc8446a6dd0 * JOptionPane - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6f5e847fca146a36 * execution speed java vs. C - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e8713e999b13b7d1 * Is that to implement JProgessBar, we need do in different thread? - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b82cc98adac6a8bf * gmail anyone? - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/edb0463a590e0ea1 * Configuring Tomcat with HSQLDB - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/26a7d7ba7804491 * option-<key> in jEdit Syntax Package - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2de15a3e19bdc999 * To enable system wide swing antialiasing from inside Java program - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d56581872843e101 ============================================================================== TOPIC: Help needed - new to JMX http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/47b12c2f0b090bb3 ============================================================================== == 1 of 1 == Date: Fri, Dec 10 2004 12:12 am From: "kjiyer" Dear Group, I need a help (may be related to JMX). We just have some 9 EJB apps running under our product. I need to (monitor like) : 1) Display those EJBs Home/Remote Interface name and Bean class name inside a JSP page running in the same server. 2) Display the status of those EJBs whether they are deployed or not, inside the JSP page running in the same server. The server at present under use is JBoss. If I get the way how to achieve it, rest of the parts I can do by following the above problem's solution. I am not much confident after reading some materials about JMX. Pls help me give a right direction to solve my problem.... Thanks in advance... Jaiganesh.K ============================================================================== TOPIC: Tomcat JK2 Connector http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7ce096912a5bf5d9 ============================================================================== == 1 of 1 == Date: Fri, Dec 10 2004 10:25 am From: "Serg Shakhoff" Hello, All. Have anybody worked closely with JK2 Connector for Apache2? I installed connector succesfuly. Afterwards I added some mounting for some webapplication like follows: <Location "/some"> JkUriSet worker ajp13:localhost:8009 </Location> in the <VirtualHost> section of httpd.conf. Currently I have some problem with access to mounted webapplication. After requesting in browser url like follows http://localhost/some/ I receive "Zero Sized Reply" Nevertheless mounting of foregoing application in workers2.properties file is working well. What could make connector to work in foregoing manner? Please help. I will appriciate any efforts in assistance. Thank you in advance. ============================================================================== TOPIC: Java History http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5712674adb50bd0e ============================================================================== == 1 of 3 == Date: Fri, Dec 10 2004 9:38 am From: Thomas Weidenfeller Chris Smith wrote: > Well, that's a tad different from what happened with Java 2. "Java 2" > is a product, and it has several versions, of which 1.2 is only the > first one. Well, calling the first version of a product 1.2 isn't too clever. > Though it's confusing to have a numeral in the product name, > it does actually make sense from an objective standpoint. However, > Solaris is *exactly* reminiscent of the current "Java 5.0" fiasco. Solaris is also very similar to the "Java 2" rebranding. Solaris actually started as "Solaris 2" (aka SunOS 5.0) plus a desperate attempt by Sun to rebrand SunOS 4.x.y as "Solaris 1.<mumble>". So, there is someone at Sun who likes to name products "<Product> 2". Then they repeated the renumbering stunt for Solaris 7 (aka Solaris 2.7, aka SunOS 5.7). But the worst Sun has ever done in naming/numbering is there C/C++ compiler. "Pro", "Workshop", "Forte", "Sun ONE", "Sun Studio" plus almost any combination of version numbers, where e.g. Workshop or Forte version numbers as sold and the version number actually given by the compiler never matched. Oh, and the marketing department was so fast in renaming the product that the developers couldn't follow, and Forte 6 actually announced itself still as Workshop 6 when shipped. Plus random suffixes like "Forte 6 Update 2" (of course containing the 5.3 compiler with some particular patch). Plus more suffixes like "Enterprise Edition". or "Compiler Collection" with no apparent logical order. Not to mention the times when the C++ compiler was so broken, no one dared to touch it (v 4.1 of the compiler in Workshop 5). The same marketing guys messing the C/C++ compiler naming/versioning up apparently now have some say in Java naming/numbering :-( /Thomas -- ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq == 2 of 3 == Date: Fri, Dec 10 2004 9:56 am From: Michael Borgwardt Thomas Weidenfeller wrote: > The same marketing guys messing the C/C++ compiler naming/versioning up > apparently now have some say in Java naming/numbering :-( I always say: let's be thankful that they're not messing with the functionality. Who cares about product names? == 3 of 3 == Date: Fri, Dec 10 2004 11:50 am From: [EMAIL PROTECTED] (Bent C Dalager) In article <[EMAIL PROTECTED]>, Kieron Briggs <[EMAIL PROTECTED]> wrote: > >Then there were some more improvements to the standard API and Java 1.2 >was born. But for some reason (I think it had to do with the bad press >Java 1.0 had received for being slow), they decided to also call this >Java 2. I suspect much of the impetus behind the huge Java2 branding effort had to do with distancing themselves from the non-compliant Java1 implementation from Microsoft. Wasn't this more or less at the same time as the fanatical "100% Pure Java" drive? Cheers Bent D -- Bent Dalager - [EMAIL PROTECTED] - http://www.pvv.org/~bcd powered by emacs ============================================================================== TOPIC: Unique key and value http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3f78fd73e6d5dce7 ============================================================================== == 1 of 5 == Date: Fri, Dec 10 2004 10:01 am From: Michael Borgwardt Andrei Kouznetsov wrote: >>I think what is needed is a new class that extends a HashMap, and contains >>a HashSets for the values. >>then you need to override the put(Object key, Object value) method such >>that >>it checks if the value exists in the HashSet, and then override the >>remove(Object key) method such that it removes the corresponding value for >>that key from the HashSet before calling the remove in the supre class. > > > Use simple hashtable and while 'putting' just check if your value already > there. And how are you going to check that? By iterating through all the entries? *Bad* for performance. So you'll have to use something quicker to do that check. Something like a HashSet. Incidentially, that's pretty much how it would be done in a database, which the original poster referred to. Marking a column UNIQUE causes in index (basically a tree-based map) to be created if one didn't already exist for that column. == 2 of 5 == Date: Fri, Dec 10 2004 10:08 am From: Maik Heller Michael Borgwardt wrote: > Andrei Kouznetsov wrote: > >>> I think what is needed is a new class that extends a HashMap, and >>> contains a HashSets for the values. >>> then you need to override the put(Object key, Object value) method >>> such that >>> it checks if the value exists in the HashSet, and then override the >>> remove(Object key) method such that it removes the corresponding >>> value for >>> that key from the HashSet before calling the remove in the supre class. >> >> >> >> Use simple hashtable and while 'putting' just check if your value >> already there. > > > And how are you going to check that? By iterating through all the entries? > *Bad* for performance. So you'll have to use something quicker to do that > check. Something like a HashSet. > > Incidentially, that's pretty much how it would be done in a database, > which the original poster referred to. Marking a column UNIQUE causes > in index (basically a tree-based map) to be created if one didn't already > exist for that column. if memory is not an issue, you can use two sets and a hashset. the two sets keep keys/values for checking and the hashset keeps keys/values for access. == 3 of 5 == Date: Fri, Dec 10 2004 10:22 am From: Michael Borgwardt Maik Heller wrote: > if memory is not an issue, you can use two sets and a hashset. the two > sets keep keys/values for checking and the hashset keeps keys/values for > access. A HashSet keeps only keys, you mean a HashMap. But that's purely a waste of memory, since the HashMap will already prevent double keys. If you want to reject such entries instead of overwriting them, just use the containsKey() method to check for that case. == 4 of 5 == Date: Fri, Dec 10 2004 10:14 am From: bugbear Bruce Lee wrote: > Is it possible to have a hashtable that has both unique keys and unique > values (ie like a 2-columned database with both rows unique)? > > Try looking at org.apache.commons.collections.BidiMap BugBear == 5 of 5 == Date: Fri, Dec 10 2004 2:50 am From: [EMAIL PROTECTED] Bruce Lee wrote: > Is it possible to have a hashtable that has both unique keys and unique > values (ie like a 2-columned database with both rows unique)? In effect what you are asking for is not a HashMap, but a Set which holds entries of two dimensional arrays. (?) Presumably it would use java.util.Arrays.equals() to do its work, but I don't know how fast this would be, (likewise, how fast using ArrayList's instead would be), so if adding and extracting is slow you might want to use a HashMap with some kind of hash code of the array as the key and the array itself as the value. -FISH- ><> ============================================================================== TOPIC: MIDP MIDlet: which characters are supported in the phone font? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/73bdfdf7f36c6ea0 ============================================================================== == 1 of 3 == Date: Fri, Dec 10 2004 10:10 am From: Michael Borgwardt Darryl L. Pierce wrote: >> What you need to display mathematical symbols is most importantly >> a *font* that supports those symbols, and I'm pretty sure there >> are very few (if any) mobile phones that have fonts which support >> them. > > > In the US? Probably not. But, rest assured that in each country there > are phones available that support that country's displayable characters. What *are* a "country's displayable characters"? I don't think there is a formal standard for that, and it's certainly not technically implemented in the Locale class. It depends entirely on the font rendering subsystem. == 2 of 3 == Date: Fri, Dec 10 2004 12:58 pm From: Michael Borgwardt Darryl L. Pierce wrote: >> What *are* a "country's displayable characters"? > > Take, for example, the font used to display Korean characters. And do what with it? >> I don't think there is >> a formal standard for that, and it's certainly not technically >> implemented >> in the Locale class. > > Who said anything about the Locale class? What else did you mean when you said "It supports whatever locale(s) are on the phone."? == 3 of 3 == Date: Fri, Dec 10 2004 6:54 am From: "Darryl L. Pierce" Michael Borgwardt wrote: > What *are* a "country's displayable characters"? Take, for example, the font used to display Korean characters. > I don't think there is > a formal standard for that, and it's certainly not technically implemented > in the Locale class. Who said anything about the Locale class? -- Darryl L. Pierce <[EMAIL PROTECTED]> Visit my webpage: <http://mcpierce.multiply.com> "By doubting we come to inquiry, through inquiry truth." - Peter Abelard ============================================================================== TOPIC: Scrollable JPanel having GridLayout. http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1b22abc8446a6dd0 ============================================================================== == 1 of 1 == Date: Fri, Dec 10 2004 2:46 pm From: Babu Kalakrishnan sanjay manohar wrote: > Your problem is that GridLayouts always try and shrink to the size of > their container. > This is applicable only if the size of the container is set to a value that is lower than its preferredSize. In the code snippet that the OP had posted, the panel was placed as the view for the JScrollPane, and I don't see any reason why the scrollpane should set it to a size smaller than its preferredSize. For a container controlled by a Gridlayout, the preferredSize will be equal to the (preferred width of the _widest_ child component * no or columns in the grid) by (preferred height of the _tallest_ child component * no of rows). (Plus of course the insets / gaps as applicable). This means that each grid will be capable of holding the biggest child component at its preferred size - no question of "shrinking" arises. > The solution is to create _another_ panel in the hierarchy, that > contains the gridlayout panel, but is the View of the scrollpane. this > new panel should have a flowlayout, which instructs the gridlayout > panel to take up as much space as it needs. > I cannot see how this can solve the problem either. All layoutmanagers that I have seen try to give its children its preferredSize if possible. And adding another panel to the hierarchy will do nothing to change this behaviour. I would suspect that the OP has some thing else in his actual code (over and above what was posted) that is causing this behaviour. For instance he might have called setPreferredSize on the panel with some fixed value which is a very common error. BK ============================================================================== TOPIC: JOptionPane http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6f5e847fca146a36 ============================================================================== == 1 of 2 == Date: Fri, Dec 10 2004 4:26 am From: "juicy" i do a simple program which runs in Dos. When user input a keyword, a dialog box will pop up but it hides behind all the windows forms i have opened. How to let it pop up in front of all the forms? == 2 of 2 == Date: Fri, Dec 10 2004 3:53 am From: [EMAIL PROTECTED] juicy wrote: > i do a simple program which runs in Dos. When user input a keyword, a > dialog box will pop up but it hides behind all the windows forms i have > opened. How to let it pop up in front of all the forms? Try: window.toFront(); -FISH- ><> ============================================================================== TOPIC: execution speed java vs. C http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e8713e999b13b7d1 ============================================================================== == 1 of 1 == Date: Fri, Dec 10 2004 10:09 am From: "Chris Uppal" [EMAIL PROTECTED] wrote: > > 32-bit integer version would perform about the same ? Or would it be > > twice as fast ? > > The 32-bit integer version also takes 1.0 s. Using 64-bit integers, by > changing (kind=4) to (kind=8) in the program below, increases the run > time to 21.4 s. The 32-bit integer version takes the same time as the 64-bit float version (which is odd enough in itself, since there's twice as much data to push around), but the 64-bit integer version takes >20 time longer ?! There /must/ be something wrong with that... I'm no Fortran programmer, but looking at the code you posted, it appears that you are including the time to initialise the input arrays with random numbers in your timing, and also including the call to sum() (which I guess is there to prevent the optimiser from removing the multiply() ?). If you move both of those outside the section that you time, does the strange result persist ? -- chris ============================================================================== TOPIC: Is that to implement JProgessBar, we need do in different thread? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b82cc98adac6a8bf ============================================================================== == 1 of 2 == Date: Fri, Dec 10 2004 6:29 pm From: "James" without using antoher thread, there is no way to do it right? when something is processing, it will not response to progressbar? anyone can give some example(code) on it? eg. like processing for loop 10000 time the progress bar showing the percentage. == 2 of 2 == Date: Fri, Dec 10 2004 3:57 am From: [EMAIL PROTECTED] James wrote: > without using antoher thread, there is no way to do it right? > when something is processing, it will not response to progressbar? > anyone can give some example(code) on it? > eg. like processing for loop 10000 time > the progress bar showing the percentage. The progress bar should update, unless you are doing your processing inside a UI event handling method, in which case you'll be running under Swing's own thread, which would likely prevent other components from updating until your method exits and returns control back to Swing. -FISH- ><> ============================================================================== TOPIC: gmail anyone? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/edb0463a590e0ea1 ============================================================================== == 1 of 2 == Date: Fri, Dec 10 2004 2:32 am From: [EMAIL PROTECTED] HI my sister requires a gmail account. please send me the invitation. thanks. [EMAIL PROTECTED] == 2 of 2 == Date: Fri, Dec 10 2004 12:03 pm From: Joona I Palaste [EMAIL PROTECTED] scribbled the following: > HI my sister requires a gmail account. please send me the invitation. > thanks. What does this have to do with Java? -- /-- Joona Palaste ([EMAIL PROTECTED]) ------------- Finland --------\ \-------------------------------------------------------- rules! --------/ "Last year he disrespected me - and then he showed lack of respect." - Anthony Mason ============================================================================== TOPIC: Configuring Tomcat with HSQLDB http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/26a7d7ba7804491 ============================================================================== == 1 of 2 == Date: Fri, Dec 10 2004 3:03 am From: "j2eekent" Can someone point me to an opensource app or an example somewhere that uses Tomcat with HSQLDB. I am having trouble with the Tomcat documentation on JNDI DataSource HOW-TO. I follow the steps exactly but can not get a Connection. I would like to see a working app and just see how the server.xml and web.xml is configured. I am running tomcat 5.0.28, and HSQLDB 1.7.2 I am running hsqldb in Server mode. Thanks in advance. Kent == 2 of 2 == Date: Fri, Dec 10 2004 12:55 pm From: "Heiner Kücker" "j2eekent" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Can someone point me to an opensource app or an example somewhere that > uses Tomcat with HSQLDB. I am having trouble with the Tomcat > documentation on JNDI DataSource HOW-TO. I follow the steps exactly > but can not get a Connection. I would like to see a working app and > just see how the server.xml and web.xml is configured. See example code here http://hsqldb.sourceforge.net/web/hsqlDocsFrame.html Heiner Kuecker Internet: http://www.heinerkuecker.de http://www.heiner-kuecker.de JSP WorkFlow PageFlow Page Flow FlowControl Navigation: http://www.control-and-command.de Java Expression Formula Parser: http://www.heinerkuecker.de/Expression.html ============================================================================== TOPIC: option-<key> in jEdit Syntax Package http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2de15a3e19bdc999 ============================================================================== == 1 of 1 == Date: Fri, Dec 10 2004 3:26 am From: [EMAIL PROTECTED] We are using the jEdit Syntax Package (http://syntax.jedit.org) to provide an editor with Python syntax highlighting in a Java/Jython application. The component works like a charm, but we've found that option-<key> does no work on Mac OS X. This is important to for us because in UK keyboards you need such a combo to enter "#", and in Spanish keyboards it is used to enter "[", "]", "{", "}", "#", and a few more. JEditTextArea is a direct subclass of JComponent and I have no clue how to approach this. Does anybody know how could we fix that? -- fxn ============================================================================== TOPIC: To enable system wide swing antialiasing from inside Java program http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d56581872843e101 ============================================================================== == 1 of 1 == Date: Fri, Dec 10 2004 4:54 am From: [EMAIL PROTECTED] Hi, You have to set the property early on, before any SWING code has executed. Otherwise it will not have any effect. /AZ Daniel Polansky wrote: > Since Java 1.5.0 it is possible to enable system wide swing > antialiasing by using the command line option > > javaw -Dswing.aatext=true ... > > I have tried to achieve the same from inside the Java application, > upon user demand, by > > System.setProperty("swing.aatext","true"); > > without any success. Is there a working way to do that? Thanks. ============================================================================== You received this message because you are subscribed to the Google Groups "comp.lang.java.programmer" group. To post to this group, send email to [EMAIL PROTECTED] or visit http://groups-beta.google.com/group/comp.lang.java.programmer To unsubscribe from this group, send email to [EMAIL PROTECTED] To change the way you get mail from this group, visit: http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe To report abuse, send email explaining the problem to [EMAIL PROTECTED] ============================================================================== Google Groups: http://groups-beta.google.com
