comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * What charecters the lightweight component have? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b5b145eb4bff0883 * Classes in jar can't load - why? - 4 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/dc2f55bd4b5e0165 * CVS connection problem in Eclipse using ext or extssh - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f210a50f0bbbf32b * Aw Ma - Do I *have* to use tags? ;-( - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9fcfc4eec9ac055f * java&php - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/dbfc754949e2cb42 * cancel <[EMAIL PROTECTED]> - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e29354c898cb3523 * Java Swing Design question - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/96ea27640cdc1f26 * AffineTransform rotation question - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c9f275d039d53e16 * LDAP GMT date/time conversion - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7fab3851d3073e8d * Sort in the Descending Orger with Index - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7ea7449282262ca6 * Telnet client - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/34b0931dc564995f * Algorithm, please help - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8bcd7defb3cda029 * Socket commuication questions - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9037f45d8d46b965 * TOMCAT/MYSQL/JSP - 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6cfdfa12d76632b1 * Parsing a Schema to build a JTree - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4522b0f7e93fb2de * Apache POI Question - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/eb5d13d352b4d49d * Open Source Calendar Package, version 0.8, released - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7ab91e5c80534859 * Alphanumeric font - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/be4b8561da452d1c * can application convert to applete? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c2cca7c0e2ddea80 ============================================================================== TOPIC: What charecters the lightweight component have? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b5b145eb4bff0883 ============================================================================== == 1 of 1 == Date: Fri, Dec 17 2004 1:22 am From: Lāʻie Techie On Thu, 16 Dec 2004 21:24:07 -0800, Bruce Sam wrote: > I'm reading <Thinking in Java>(3rd),I see a sentence "lightweight".Because > I'm a newer in Java,so I can't understand what does the lightweight > means.If a component is lightweight,what charecters it have? A "lightweight" component doesn't have a native peer. HTH, La'ie Techie ============================================================================== TOPIC: Classes in jar can't load - why? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/dc2f55bd4b5e0165 ============================================================================== == 1 of 4 == Date: Fri, Dec 17 2004 9:31 am From: "Jack Andersson" > A much better approach would be to try and understand why it printed > to stdout and how to make it write the output somewhere else. Or use a nice GUI called AntBuild. And try to understand it. == 2 of 4 == Date: Fri, Dec 17 2004 10:17 am From: Michael Borgwardt Jack Andersson wrote: >> A much better approach would be to try and understand why it printed >>to stdout and how to make it write the output somewhere else. > > > Or use a nice GUI called AntBuild. And try to understand it. No. You need to understand the tool, not the GUI. The GUI may be easier to use, but will only hinder understanding. == 3 of 4 == Date: Fri, Dec 17 2004 11:05 am From: "Jack Andersson" > > Or use a nice GUI called AntBuild. And try to understand it. > > No. You need to understand the tool, not the GUI. The GUI may > be easier to use, but will only hinder understanding. Oh sorry, I forgot that we have the year 1975 soon, and of course I must learn to use the very modern command line tool. I will also stop using IntelliJ and use notepad as editor. I rather read the AntBuild manual than use a hopeless cmd window. I will claim that using cmd windows will hinder understanding and fast development. == 4 of 4 == Date: Fri, Dec 17 2004 11:57 am From: Tilman Bohn In message <[EMAIL PROTECTED]>, Jack Andersson wrote on Fri, 17 Dec 2004 11:05:22 +0100: [...] > learn to use the very modern command line tool. I will also stop using > IntelliJ and use notepad as editor. That would be a wise decision for learning the ropes, as it would force you to think in terms of what's going on, instead of in terms of auto-completion and something magically and inexplicably turning red in your IDE. > I rather read the AntBuild manual than use a hopeless cmd window. I will > claim that using cmd windows will hinder understanding and fast > development. Claim what you will. It's your private problem. -- Cheers, Tilman -- `Boy, life takes a long time to live...' -- Steven Wright ============================================================================== TOPIC: CVS connection problem in Eclipse using ext or extssh http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f210a50f0bbbf32b ============================================================================== == 1 of 1 == Date: Fri, Dec 17 2004 12:47 am From: "fivepopes" Tilman Bohn wrote: > So you are saying you can definitely log in via ssh with the > credentials you specified in the form, and you are definitely > getting a valid shell on the target system that way? Yes, I'm sure. I've reported this as a bug to the fine people developing Eclipse, so hopefully they may look into it. cheers, thomas ============================================================================== TOPIC: Aw Ma - Do I *have* to use tags? ;-( http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9fcfc4eec9ac055f ============================================================================== == 1 of 2 == Date: Fri, Dec 17 2004 9:54 am From: "Sime" Hello, you do not have to use struts tags at all. It doesn't matter that form is regular html form FormBean will populate it . Try to read more about struts on apache site. "milkyway" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello all, > > I am a newbie to struts and was in the process of putting something > together. From what I can see, one would turn an HTML page to a .jsp > page and use the tag libraries to convert what is written in HTML to > something "strut-like"? > > I have a lot of HTML code with me. Do I *have* to use the tag libs for > the HTML controls or can I just use them for the ones that will be > going back to the server (i.e. going to the container with > request.setXXX, session.setXXX, application.setXXX, etc.)? > > I was using struts because it seems (at least it is advertised) that > validation can happen if it is used. > > For example, if I have an entry field whose value will be sent to a > javascript function and then sent to a second field on the screen. The > second field (with the correct data) is the one that should go back to > the server. > > Given that that is the case, should I just use a taglib on the second > field and not the first - since the second one is the one that will go > to the server? The rest of the page can be just regular, old, plane, > jane HTML. > > Can someone provide some insight? > > Kindest Regards. > == 2 of 2 == Date: Fri, Dec 17 2004 2:59 am From: "milkyway" Hi Sime, Thank you for responding ;-) If one does not have to use html tags, then (sorry if this has already been asked before) why use them at all? Kindest Regards. Sime wrote: > Hello, > > you do not have to use struts tags at all. > It doesn't matter that form is regular html form FormBean will populate it . > Try to read more about struts on apache site. > > "milkyway" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hello all, > > > > I am a newbie to struts and was in the process of putting something > > together. From what I can see, one would turn an HTML page to a .jsp > > page and use the tag libraries to convert what is written in HTML to > > something "strut-like"? > > > > I have a lot of HTML code with me. Do I *have* to use the tag libs for > > the HTML controls or can I just use them for the ones that will be > > going back to the server (i.e. going to the container with > > request.setXXX, session.setXXX, application.setXXX, etc.)? > > > > I was using struts because it seems (at least it is advertised) that > > validation can happen if it is used. > > > > For example, if I have an entry field whose value will be sent to a > > javascript function and then sent to a second field on the screen. The > > second field (with the correct data) is the one that should go back to > > the server. > > > > Given that that is the case, should I just use a taglib on the second > > field and not the first - since the second one is the one that will go > > to the server? The rest of the page can be just regular, old, plane, > > jane HTML. > > > > Can someone provide some insight? > > > > Kindest Regards. > > ============================================================================== TOPIC: java&php http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/dbfc754949e2cb42 ============================================================================== == 1 of 1 == Date: Fri, Dec 17 2004 10:02 am From: Michael Rauscher codemaster wrote: >>or execute the php >>program as a commmand-line app. > > > hows that done? > > Have a look at Runtime.exec(...) and Process, both found in java.lang. Bye Michael ============================================================================== TOPIC: cancel <[EMAIL PROTECTED]> http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e29354c898cb3523 ============================================================================== == 1 of 1 == Date: Fri, Dec 17 2004 12:20 am From: [EMAIL PROTECTED] This message was cancelled from within Mozilla. ============================================================================== TOPIC: Java Swing Design question http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/96ea27640cdc1f26 ============================================================================== == 1 of 1 == Date: Fri, Dec 17 2004 10:10 am From: Thomas Weidenfeller Sid wrote: > To begin with i am pretty new at swing. I have a application wherein > i want to render forms from a MenuBAR, meaning user clicks on Add > record the add form shows up, search.. edit so forth. Please consider adapting general GUI terminology, as it is used throughout Java instead of Windows-specific terminology. > What i am doing is i have a single container and in that container i > draw the menubar You do not draw the menubar. You just add a menu bar to your top-level container. Swing will lay out and draw the bar for you. > and set up listeners on the items to render respective > forms. whenever a item is clicked i clear the container and add the > new formpanel. Sounds like you want to give CardLayout a look. > 1. I read that listeners should not be doing too much work as it slows > down the response time, so is there any better way to render these > individual forms. Listeners run in the EDT and indeed if you occupy the EDT other events are not processed. This becomes relevant if it annoys the user at that certain moment, e.g. when the user wants to interact with the GUI or the GUI is not updated in a timely fashion. So, this is the case for your particular application (I doubt it), you need to run these activities in a separate thread. See Sun's Swing tutorial (a pointer to it, and many other resources can be found via the link in my signature). > 2. Going with the same design i needed a Scrollpane to my container and > in turn to the forms, I want to add the Scrollpane to all forms so it > makes sense to add it to the container but when i do the forms dont > clear out anymore and the same welcome form is on the screen. Please consider reformulating that statement in an easy to understand form. > > Pseudo code Please provide real code (look up the meaning of SSCCE in the document linked in my sig). /Thomas -- ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq ============================================================================== TOPIC: AffineTransform rotation question http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c9f275d039d53e16 ============================================================================== == 1 of 1 == Date: Fri, Dec 17 2004 10:25 am From: Thomas Weidenfeller hilz wrote: > I have an AffineTransform that has a uniform scale(x scale == y scale). How > can i get the rotation portion of it, or the rotation angle "theta" ? Just apply the transformation to two simple points P0(0,0), P1(1,0). The resulting P0' and P1' will allow you to determine everything you want to know with elementary math. /Thomas -- ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq ============================================================================== TOPIC: LDAP GMT date/time conversion http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7fab3851d3073e8d ============================================================================== == 1 of 1 == Date: Fri, Dec 17 2004 10:19 am From: Nigel Wade [EMAIL PROTECTED] wrote: > I have an LDAP date/time entry that I need to convert to a readable > format for display. The format of the date in LDAP is supposed to be > GMT. An actual date entry in LDAP is: 20041216174159Z . The only field > that is off is the hour field ('17' when the actual hour in local time > was 09 (a.m.) ) - all of the other fields are correct. I've looked > through Novell and Suns sites for a solution to this but have come up > empty handed. Any pointers would be appreciated. Given that your timezone is -8:00 (from your posting headers) that would appear to be perfectly correct. When your local time is 9am, it is 17UTC. -- Nigel Wade, System Administrator, Space Plasma Physics Group, University of Leicester, Leicester, LE1 7RH, UK E-mail : [EMAIL PROTECTED] Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555 ============================================================================== TOPIC: Sort in the Descending Orger with Index http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7ea7449282262ca6 ============================================================================== == 1 of 1 == Date: Fri, Dec 17 2004 10:39 am From: "Luigi Napolitano" Hello, I use this algorithm to sort an array "v" in the descending order. void quickSort(float v[], int lo0, int hi0) { int lo = lo0; int hi = hi0; if (lo >= hi) return; float mid = v[(lo + hi) / 2]; while (lo < hi) { while (lo<hi && v[lo] > mid) lo++; while (lo<hi && v[hi] < mid) hi--; if (lo < hi) swap(v,lo, hi); } if (hi < lo) swap(v, hi, lo); quickSort(v, lo0, lo); quickSort(v, lo == lo0 ? lo+1 : lo, hi0); } I would like to have an array "index" to order another array "z". Example: v = [ 5, 9, 7 ] index = [ 1, 2, 0 ] z = [ 1, 2, 3 ] so... for (i = 0; i<=2; i++) cout<<z[index[i]]; Output: [ 2, 3, 1 ] I would like to have index = [ 1, 2, 0 ]. How? Thanks to everybody. Luigi Napolitano ============================================================================== TOPIC: Telnet client http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/34b0931dc564995f ============================================================================== == 1 of 1 == Date: Fri, Dec 17 2004 10:50 am From: "Jani" Thank you! I got it working now. > You should use a BufferedInputStream around Socket.getInputStream() and ============================================================================== TOPIC: Algorithm, please help http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8bcd7defb3cda029 ============================================================================== == 1 of 1 == Date: Fri, Dec 17 2004 11:59 pm From: "HS1" Thank you for your help i forget about array "John B. Matthews" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In article <[EMAIL PROTECTED]>, "HS1" <[EMAIL PROTECTED]> > wrote: > > > Hello all > > > > I have a vector that store answer objects. Each object has a question number > > and answer value that can be presented as following: > > ----------------------------------------------- > > > > Question number |Answer > > > > 3 Y > > 5 N > > 8 Y > > 10 N > > .... .. > > > > 3 Y > > 5 N > > 8 Y > > 10 N > > .. ... > > > > 3 N > > 5 Y > > 8 Y > > 10 N > > ... .. > > > > What I have to do is to determine how many percent answer is "Y" or "N" for > > each question. > > For example: > > > > question 3: 13% yes and 87% no > > question 5: 23% yes and 68% no > > > > It can be seen that those objects are separated into groups and each has > > same number of questions. I also have the list of question numbers (e.g: 3, > > 5, 8, 10...). > > > > What is the best solution for this. Could you please help > > [...] > > I have this solution but it run many times through the vector of answer > > objects > > Excellent! You have an algorithm, but you have observed that it > requires many passes through the vector to examine each element. You > wonder how to do the work in one pass. > > Assume n is the number of distinct question numbers. Instead of a > single variable to total the positive answers, consider an array, > indexed by question number: > > int[] yes = new int[n] > > Loop through the vector elements, one at a time. When an answer is > yes, increment that question number's entry in the yes array: > > yes[questionNumber] += 1; > > After a single pass through the vector, yes will have the total > number of yes's for each question number. > > -- > John > jmatthews at wright dot edu > www dot wright dot edu/~john.matthews/ ============================================================================== TOPIC: Socket commuication questions http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9037f45d8d46b965 ============================================================================== == 1 of 1 == Date: Fri, Dec 17 2004 3:01 am From: [EMAIL PROTECTED] (James Willans) If there is a more appropriate newsgroup to place this message then please point me in the right direction. We have an application that has a server and a number of clients communicating using sockets. The java.nio libraries are used in the server and java.io libraries are used in the clients (this may not be relevant). We are currently testing our application on a windows machine. All works fine until the status of the network changes, for example if a wireless signal is momentarily lost the read and write data methods begin throwing exceptions. I'm having trouble determining whether or not the network disconnection is causing the socket to be lost, or whether it is simple unavailable while the network sorts itself out. In the case of the former, is the usual strategy to simply handle the disconnection by recreating the socket? In the case of the former, should I be performing checks prior to check whether it is an unstable state? Any further information would be much appreciated. James ============================================================================== TOPIC: TOMCAT/MYSQL/JSP http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6cfdfa12d76632b1 ============================================================================== == 1 of 3 == Date: Fri, Dec 17 2004 11:19 am From: "Kevin Robinson" Can anyone please advise me about a problem I have trying to connect to MYSQL using TOMCAT and a jsp. I have tomcat 4.1.24 , mysql 4.1.7 and the jdbc driver 2.0.14. The jdbc driver is in tomcat\common\lib\org.gjt.mm.mysql.Driver. The classpath includes c:\tomcat\common\lib. I cannot however get the jsp to access the database. I tried a userid and a password in the jsp but it still didn't work Can anyone tell me what is wrong??? I have a mysql database called bfg and the following jsp: <HTML> <HEAD><TITLE>Employee List</TITLE></HEAD> <BODY> <%@ page import="java.sql.*" %> <TABLE BORDER=1 width="75%"> <TR><TH>Last Name</TH><TH>First Name</TH></TR> <% Connection conn = null; Statement st = null; ResultSet rs = null; try { Class.forName("org.gjt.mm.mysql.Driver").newInstance(); conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/bfg"); st = conn.createStatement(); rs = st.executeQuery("select * from employees"); while(rs.next()) { %> <TR><TD><%= rs.getString("lname_txt") %></TD> <TD><%= rs.getString("fname_txt") %></TD></TR> <% } %> </TABLE> <% } catch (java.sql.SQLException ex) { ex.printStackTrace(); %> </TABLE> Ooops, something bad happened: <% } finally { if (rs != null) rs.close(); if (st != null) st.close(); if (conn != null) conn.close(); } %> </BODY> </HTML> == 2 of 3 == Date: Fri, Dec 17 2004 4:27 am From: "[EMAIL PROTECTED]" what error r u getting ?? also connection setting should be DriverManager.getConnection(connectionURL, "username","password"); for ex DriverManager.getConnection("jdbc:mysql://localhost:3306/bfg", "username","password"); == 3 of 3 == Date: Fri, Dec 17 2004 4:28 am From: "Ryan Stewart" "Kevin Robinson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Can anyone please advise me about a problem I have trying to connect to > MYSQL using TOMCAT and a jsp. > > I have tomcat 4.1.24 , mysql 4.1.7 and the jdbc driver 2.0.14. > The jdbc driver is in tomcat\common\lib\org.gjt.mm.mysql.Driver. > The classpath includes c:\tomcat\common\lib. > > I cannot however get the jsp to access the database. > I tried a userid and a password in the jsp but it still didn't work > > Can anyone tell me what is wrong??? > > I have a mysql database called bfg and the following jsp: > [...] 1) Show us error messages. 2) If you only have that class in common/lib, you're missing a lot. You should have a JAR file which should *not* be unpacked. 3) Your driver should actually be in shared/lib or your application's WEB-INF/lib. See http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html ============================================================================== TOPIC: Parsing a Schema to build a JTree http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4522b0f7e93fb2de ============================================================================== == 1 of 1 == Date: Fri, Dec 17 2004 3:30 am From: [EMAIL PROTECTED] Hey, I typed out a whole long message last night, but unfortunately it screwed up a bit. I haven't had much experience using Java with XML. I've come up with a quite fix using JAXB, but as this is quite a big part of the software that I'm making I want to make it faster, because my current solution takes about 5-10 seconds to build a JTree based on a small XSD file. Your suggestion, is it basically saying to use a DOM parser to build a number of org...Element objects in a tree style, then build the JTree from that. I'm a little confused by your answer. As for a TreeCellRender, whoosh, thats gone straight over my head. I'm not looking to manipulate the tree once its been built. It's just there for reference for the user, so if thats what it's used for then I guess it doesn't really apply for me. Also, I tried installing Xerces DOM parser last night, but I couldn't manage to cos I'm a bit thick or something. Do you know of a step-by-step guide to installing any DOM parser? Cheers for the help, Dave ============================================================================== TOPIC: Apache POI Question http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/eb5d13d352b4d49d ============================================================================== == 1 of 1 == Date: Fri, Dec 17 2004 12:10 pm From: TechBookReport Si wrote: > I'm parsing an MS Excel spreadsheet using the POI HSSF event api, as this is > reportedly much faster than reading the entire sheet in as a HSSFSheet > object. > > This works well but still takes a long time so I want to give the user some > feedback on progress. However I can't seem to find a good way of knowing how > large the spreadsheet is going to be and how far through it I am at any one > point. > > If anyone has experience of using this api and can help I'd very much > appreciate it. > > Thanks, > > Simon > > Use the Excel object model to get the number of worksheets in the workbook. For each worksheet you can try using the UsedRows property to get some idea - though it depends on the dimensions of your sheets. Pan =========================================== TechBookReport - http://www.techbookreport.com ============================================================================== TOPIC: Open Source Calendar Package, version 0.8, released http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7ab91e5c80534859 ============================================================================== == 1 of 1 == Date: Fri, Dec 17 2004 12:16 pm From: [EMAIL PROTECTED] Open Source Calendar Package, version 0.8 ========================================= Homepage: http://joyds1.joensuu.fi/calendar/index.html Download: http://joyds1.joensuu.fi/calendar/calendar-0.8.tar.bz2 http://joyds1.joensuu.fi/calendar/calendar-0.8.zip (If version 0.8 does not exist, try 0.9 or 0.10 etc.) License: GNU General Public License This package implements many calendars. In addition to the Gregorian calendar, it has Armenian calendar Bahai calendar Chinese calendar Coptic calendar Ethiopic calendar French revolutionary calendar Hebrew calendar Hindu lunar calendar Hindu solar calendar Indian calendar Islamic calendar Jalali calendar Julian calendar Mayan calendar Nepali calendar Persian calendar World calendar Different countries changed from Julian to Gregorian calendar in different times. This package has calendars for the following countries (all of them do not exist any more as independend countries) Calendar Countries BohemianMoravian Bohemia and Moravia British Great Britain and Dominions Bulgarian Bulgaria Danish Denmark, Norway and many German Protestant states Finnish Finland and Sweden Hungarian Hungary Luxemburgian Luxemburg Prussian Prussia Romanian Romania Russian Russia, Estonia (was part of Russia when calendar changed) SwissProtestant Swiss Protestant cantons The classes do not implement the java.util.Calendar interface but they have functions to convert to and from java.util.GregorianCalendar. Part of the code is translated into Java from GNU Emacs's calendar package. Another source has been The Calendar FAQ http://www.tondering.dk/claus/cal/calendar26.html The package also has date formatting and parsing routines analogous to java.text.DateFormat and java.text.SimpleDateFormat. Terms of Use ------------ This package is free software distributed under the terms of the GNU General Public License, see http//www.gnu.org/copyleft/gpl.html. Change Log ---------- * Changes Since Version 0.7 - Jalali calendar (better version of Persian calendar). - Month and weekday names for non-Gregorian calendars have been localized. - Bug fixes. * Changes Since Version 0.6 - Chinese calendar. - Applet/appliction to convert between calendars. Screenshot: http://joyds1.joensuu.fi/calendar/conv.png - Bug fixes. * Changes Since Version 0.5 - One new calendar: WorldCalendar. - Symbolic names for weekdays (MONDAY, etc) and months (JANUARY, etc) in Calendar.java - More javadoc documentation. - TestDateParser.java and TestDateParserException.java updated to Java version 1.5 Beta 2. - Bug fixes. * Changes Since Version 0.4 NepaliCalendar Bug fixes. More documentation. Instructions on how to compile the package with Java version 1.4. * Changes Since Version 0.3 Five new calendars: - ArmenianCalendar - BahaiCalendar - HinduLunarCalendar - HinduSolarCalendar - IndianCalendar CalendarApplet class. Bug fixes. More documentation. * Changes Since Version 0.2 - Calculate Easter according to Julian and Gregorian Calendars. - DefaultDateFormatSymbols for each calendar. - DateParser class to parse dates using regular expressions. The class defines regular expressions to parse dates like this 31.12.2004 12/31/2004 2004-12-31 20041231 31 December 2004 December 31, 2004 31. joulukuuta 2004 31 décembre 2004 but you can also use your own regular expressions. Input can be from string or File or InputStream or any class that implements the Readable interface. You need Java version 1.5 to use DateParser. * Changes Since Version 0.1 - Bug fixes. - Java Bean to display a calendar. Screenshot: http://joyds1.joensuu.fi/calendar/cal.png - Easier installation: jar file. ============================================================================== TOPIC: Alphanumeric font http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/be4b8561da452d1c ============================================================================== == 1 of 1 == Date: Fri, Dec 17 2004 1:23 pm From: "Geli J. Crick" [EMAIL PROTECTED] wrote: > Hi, > > I want to general character fonts by java about alphanumeric > characters. That is the characters of ascii code below 128. The height > and width is 16 and 8 respectively. Anyone could teach me how to do > that? > > Thanks! > I am not sure exactly what you want to do, but I would suggest having a look at the API for the Font class (java.awt.Font). It has several methods you might find useful, like deriveFont(...), createFont(...), and createGlyphVector(...). ============================================================================== TOPIC: can application convert to applete? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c2cca7c0e2ddea80 ============================================================================== == 1 of 1 == Date: Fri, Dec 17 2004 4:37 am From: "nick" if i write a java applicaton , can i use some software to convert it into applete,let the program can run in browser? 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
