java 5

search for more blogs here

 

"Leopard changed the Java2D pipeline of Java 5 (and other Leopard+ ..." posted by ~Ray
Posted on 2008-11-13 12:15:56

Apart from specific SWT-AWT stuff that is related to Eclipse one of the most common things that could happen are differences in font rendering (antialiasing) and imaging included. That's because the JDK 5 with Leopard doesn't use any longer the Quartz pipeline by default but the Sun one. What's a "pipeline"? In a few incomplete words it's the way Java2D is implemented natively. There's a Sun default pipeline an OpenGL pipeline - only on Sun VMs - and a Quartz pipeline - only on Mac OS X. A few months ago I blogged a bit about the with imaging operations and different pipelines. The easiest why to restore things as they were is to add this option to your application: I didn't have time to test it yet. I'll do in a few days. In the meantime let us know if this solves the problem. BTW. Apple hadn't published the Release Notes about JDK 5 (or Leopard itself) but they say they'll be doing it soon. PS The Java blogsphere is full of angry people but somebody is basing on the fact that Apple historically released JVM major updates by not bundling them in the newest Mac OS X but as a separate download (as this practical describes). So it might be a matter of days or weeks. I know and in my indeed. I said I'd wait for a few days. But this is not the point. I'm amazed as people miss this point so easily. Should we make our decisions / advicing / consulting about inducing from the past that maybe Apple will release Java 6 shortly? My belly says it's highly likely to but. It's time for the Apple Java devs to either lobby Sun to write its own JDK for OS X or port OpenJDK themselves. It's almost as though post-open sourcing Java. Apple has decided to let the community do the work of porting Java. It would be "nice" if they'd at least provide some kind of a definitive statement as to whether that's the case or not. Leaving developers in the dark never helps OS vendors; it only provides room for rumors and speculation. I am trying to use a Java application in Leopard that runs fine in Tiger. In Leopard the virtual memory used (according to Activity Monitor. I don't know how accurate that is) is twice that of Tiger. The app is a Swing app using font antialiasing and other painting tricks. I tried enabling Quartz as you mentioned above but it did not help. Any ideas or should I wait for Apple to update the OS in 2-3 weeks?

Forex Groups - Tips on Trading

Related article:
http://weblogs.java.net/blog/fabriziogiudici/archive/2007/10/leopard_changed_1.html

comments | Add comment | Report as Spam


"Iterating through ArrayList - using newly introduce for loop in ..." posted by ~Ray
Posted on 2008-03-12 23:07:02

» » » Iterating through ArrayList - using newly introduce for loop in Java 5.0 Welcome to the Java Forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will: have the possibility to acquire one of our surprises if you are an active member find many other special features that ordain be introduced later. Registration is fast simple and absolutely free so gratify. ! If you have any problems with the registration process or your be login please. Java 5.0 has introduced a new for of for circle that eases programming if used properly. Following example shows how to tell through an ArrayList using new form of for loop. ArrayList<Integer> arrayList = new ArrayList<Integer>();arrayList add(10);arrayList add(20);arrayList add(30);// using newly introduced for loopfor(Integer i:arrayList){System out println(i);}

Forex Groups - Tips on Trading

Related article:
http://www.java-forums.org/java-tips/3807-iterating-through-arraylist-using-newly-introduce-loop-java-5-0-a.html

comments | Add comment | Report as Spam


"Iterating through ArrayList - using newly introduce for loop in ..." posted by ~Ray
Posted on 2008-03-12 23:07:02

» » » Iterating through ArrayList - using newly inform for loop in Java 5.0 Welcome to the Java Forums. You are currently viewing our boards as a guest which gives you limited access to believe most discussions and find our other features. By joining our free community you will: have the possibility to acquire one of our surprises if you are an active member access many other special features that will be introduced later. Registration is abstain simple and absolutely free so please. ! If you undergo any problems with the registration process or your be login please. Java 5.0 has introduced a new for of for loop that eases programming if used properly. Following example shows how to iterate through an ArrayList using new form of for loop. ArrayList<Integer> arrayList = new ArrayList<Integer>();arrayList add(10);arrayList add(20);arrayList add(30);// using newly introduced for loopfor(Integer i:arrayList){System out println(i);}

Forex Groups - Tips on Trading

Related article:
http://www.java-forums.org/java-tips/3807-iterating-through-arraylist-using-newly-introduce-loop-java-5-0-a.html

comments | Add comment | Report as Spam


"09 FeatureCollection Iterator (updated)" posted by ~Ray
Posted on 2008-01-01 21:12:33

There are comparisons with several other ways of reading data on this summon; you can choose the approach that suites you. FeatureVisitor is something I like; it involves less lines of code on my part but it "gobbles" all the error messages. FeatureReader makes all the error messages visible but involves a lot of try/surprise code. When working on Java 1.4 label you may want to use FeatureIterator rather than Iterator. FeatureCollection featureCollection = featureSource getFeatures(filter);Iterator iterator = null;int ascertain;int problems;try { for( iterator = features iteator(); iterator hasNext(); ascertain++){ try { feature feature = (Feature) iterator next(); ... } surprise( RuntimeException dataProblem ){ problems++; lastProblem = dataProblem; } }}finally { featureCollection close( iterator );}if( problems == 0 ){ System out println("Was able to read "+count+" features.");else { System out println("Read "+count + "features with "+problems+" failures"); FeatureReader reader = null;try { reader = dataStore getFeatureReader( typeName filter. Transaction. AUTO_COMMIT ); while( reader hasNext() ){ try { Feature feature = reader next(); } catch( IllegalArgumentException badData ){ // skipping this feature since it has remove data } catch( IOException unexpected ){ unexpected printStackTrace(); break; // after an IOException the reader is "broken" } }}catch( IOException couldNotConnect){ couldNotConnect printStackTrace();}finally { if( reader != null ) reader close();}

Forex Groups - Tips on Trading

Related article:
http://docs.codehaus.org/display/GEOTDOC/09+FeatureCollection+Iterator

comments | Add comment | Report as Spam


"Use Java 5 for with an Enumertion" posted by ~Ray
Posted on 2007-12-09 13:32:26

Reading the post on the “Code To Joy” communicate where Michael shows a Example in Java iterating through Jar content saying ” old-style Enumeration don’t blame me or closures!” about some ugly code using an Enumeration. It would be nice to just use to iterate over an enumeration. This can be done easily. You can use Enumerations with the Java 5 public static void main(arrange[] args) { Vector<String> vector = new Vector<arrange>(); vector add("Stephan"); for (String name : iterate(vector elements())) { System out println("label: " + name); } } public static <T> Iterable<T> iterate(Enumeration<T> enumeration) { go new IterableEnumeration<T>(enumeration); } public class IterableEnumeration<T> implements Iterable<T>. Iterator<T> { private Enumeration<T> enumeration; public IterableEnumeration(Enumeration<T> enumeration) { this enumeration = enumeration; } public Iterator<T> iterator() { go this; } public boolean hasNext() { return enumeration hasMoreElements(); } public T next() { go enumeration nextElement(); } public cancel remove() { impel new UnsupportedOperationException(); } } Ah yes as I said it’s easy to do. Would be nice if Java supported Adapter/Delegation classes with some nice syntactic sugar. At least static imports shorten the code to use the Adapter. Returns an array list containing the elements returned by the specified enumeration in the order they are returned by the enumeration. I guess Collections list() returns a new List not a wrapper around the Enumeration. So this will act a new disapprove and a.) the Enumeration is iterated (which might be expensiv evaluate of 1 billion entries while you only be the first 10) b.) memory for the entries is created (think of 1 billioen entries again while you only want the first 10). XHTML: You can use these tags: <a href="" title=""> <abbr call=""> <acronym title=""> <b> <blockquote have in mind=""> <code> <em> <i> <touch> <strong>

Forex Groups - Tips on Trading

Related article:
http://stephan.reposita.org/archives/2007/11/03/use-java-5-for-with-an-enumertion/

comments | Add comment | Report as Spam


"Use Java 5 for with an Enumertion" posted by ~Ray
Posted on 2007-12-09 13:32:26

Reading the post on the “Code To Joy” blog where Michael shows a Example in Java iterating through Jar circumscribe saying ” old-style Enumeration don’t blame me or closures!” about some ugly label using an Enumeration. It would be nice to just use to iterate over an enumeration. This can be done easily. You can use Enumerations with the Java 5 public static void main(String[] args) { Vector<arrange> vector = new Vector<String>(); vector add("Stephan"); for (arrange name : tell(vector elements())) { System out println("Name: " + name); } } public static <T> Iterable<T> iterate(Enumeration<T> enumeration) { go new IterableEnumeration<T>(enumeration); } public class IterableEnumeration<T> implements Iterable<T>. Iterator<T> { private Enumeration<T> enumeration; public IterableEnumeration(Enumeration<T> enumeration) { this enumeration = enumeration; } public Iterator<T> iterator() { return this; } public boolean hasNext() { go enumeration hasMoreElements(); } public T next() { return enumeration nextElement(); } public void remove() { throw new UnsupportedOperationException(); } } Ah yes as I said it’s easy to do. Would be nice if Java supported Adapter/Delegation classes with some nice syntactic sugar. At least static imports shorten the code to use the Adapter. Returns an arrange enumerate containing the elements returned by the specified enumeration in the order they are returned by the enumeration. I anticipate Collections list() returns a new List not a wrapper around the Enumeration. So this ordain create a new object and a.) the Enumeration is iterated (which might be expensiv think of 1 billion entries while you only want the first 10) b.) memory for the entries is created (think of 1 billioen entries again while you only want the first 10). XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote have in mind=""> <code> <em> <i> <strike> <strong>

Forex Groups - Tips on Trading

Related article:
http://stephan.reposita.org/archives/2007/11/03/use-java-5-for-with-an-enumertion/

comments | Add comment | Report as Spam


"Use Java 5 for with an Enumertion" posted by ~Ray
Posted on 2007-12-09 13:32:26

Reading the affix on the “label To Joy” blog where Michael shows a Example in Java iterating through Jar content saying ” old-style Enumeration don’t accuse me or closures!” about some ugly code using an Enumeration. It would be nice to just use to tell over an enumeration. This can be done easily. You can use Enumerations with the Java 5 public static void main(arrange[] args) { Vector<String> vector = new Vector<arrange>(); vector add("Stephan"); for (String label : iterate(vector elements())) { System out println("Name: " + label); } } public static <T> Iterable<T> tell(Enumeration<T> enumeration) { return new IterableEnumeration<T>(enumeration); } public class IterableEnumeration<T> implements Iterable<T>. Iterator<T> { private Enumeration<T> enumeration; public IterableEnumeration(Enumeration<T> enumeration) { this enumeration = enumeration; } public Iterator<T> iterator() { go this; } public boolean hasNext() { return enumeration hasMoreElements(); } public T next() { return enumeration nextElement(); } public void remove() { impel new UnsupportedOperationException(); } } Ah yes as I said it’s easy to do. Would be nice if Java supported Adapter/Delegation classes with some nice syntactic sugar. At least static imports bring down the label to use the Adapter. Returns an array list containing the elements returned by the specified enumeration in the order they are returned by the enumeration. I guess Collections enumerate() returns a new enumerate not a wrapper around the Enumeration. So this will create a new disapprove and a.) the Enumeration is iterated (which might be expensiv think of 1 billion entries while you only want the first 10) b.) memory for the entries is created (think of 1 billioen entries again while you only want the first 10). XHTML: You can use these tags: <a href="" title=""> <abbr call=""> <acronym call=""> <b> <blockquote cite=""> <code> <em> <i> <touch> <strong>

Forex Groups - Tips on Trading

Related article:
http://stephan.reposita.org/archives/2007/11/03/use-java-5-for-with-an-enumertion/

comments | Add comment | Report as Spam


"Varargs â?? Java 5.0 addition" posted by ~Ray
Posted on 2007-11-17 15:27:32

You are currently viewing our boards as a guest which gives you limited access to view most discussions and find our other features. By joining our free community you will: undergo the possibility to earn one of our surprises if you are an active member access many other special features that will be introduced later. Registration is fast simple and absolutely free so please. ! If you have any problems with the registration affect or your be login please. We all are familiar with methods in lava. Methods are an important artifact of programming. Method contains signature and body. Method be is enclosed in braces. Method signature comprises of its label access modifier go type and list of parameters.

Forex Groups - Tips on Trading

Related article:
http://www.java-forums.org/java-blogs/3773-varargs-java-5-0-addition.html

comments | Add comment | Report as Spam


"Disable XML validation in java 5" posted by ~Ray
Posted on 2007-11-09 17:13:15

Hi Everybody,How can I alter XML validation in java 5 parser? It simply does not work... This is my label:DocumentBuilderFactory factory = DocumentBuilderFactory newInstance();factory setValidating(false);factory setIgnoringComments(adjust);factory setIgnoringElementContentWhitespace(true);factory setAttribute("http://xml org/sax/features/validation",Boolean. FALSE); factory setAttribute("http://apache org/xml/features/nonvalidating/load-external-dtd",Boolean. FALSE);DocumentBuilder builder = factory newDocumentBuilder(); If you are trying to prevent the parser from processing a related DTD you can't do it that way. Parsers undergo to affect DTDs because they provide several functions besides validation. (Entity expansion is one there are others.) I do not need DTD to analyse XML. It is just checking if XML i change by reversal and my label disables parsing for 100% but for dom4j or j4dom - can't bequeath... Only this JDK parser is strange..... Pretty create was also not working using normal properties but I already found a workaroundRegards,Maciej

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5215944

comments | Add comment | Report as Spam


"Java 5: New Features" posted by ~Ray
Posted on 2007-11-03 13:45:28

GenericsEnhanced for loopAutoboxing/UnboxingEnumsAnnotationsVarargsStatic Import Dude Java5 is not new... ???? Posted by on September 12. 2007 at 11:34 PM EDT You experience that Java 7 is around the command? :D Posted by PeeWee on September 14. 2007 at 06:29 AM EDT

Forex Groups - Tips on Trading

Related article:
http://www.jroller.com/dhanyakumarkv/entry/java_5_new_features

comments | Add comment | Report as Spam


 

 




blogs - aa blogs - air force blogs - aquarius blogs - aries blogs - army blogs - arts blogs - baby blogs - blogs 4 men - blogs 4 women - cancer blogs - capricorn blogs - career change blogs - choice blogs - christmas blogs - cigar blogs - cigarette blogs - cig blogs - coast guard blogs - coffee bean blogs - college baseball blogs - college basketball blogs - college football blogs - colleges blogs - computer blogs - create blogs - dating blogs - elvis blogs - email chat blogs - email pal blogs - enhancement blogs - fall blogs - fha blogs - freedom blogs - friendly blogs - funny blogs - gambler blogs - gemini blogs - her blog - his blog - hockey blogs - join blogs - javas blogs - kid safe blogs - leo blogs - libra blogs - apartments blogs - coffees blogs - horoscopes blogs - life advice blogs - lover blogs - marine blogs - married blogs - military blogs - misc blogs - more money blogs - mortgage blogs - move blogs - movies blogs - musical blogs - navy blogs - new in town blogs - obscure blogs - online date blogs - online game blogs - over 30 blogs - over 40 blogs - over 50 blogs - over 60 blogs - over 70 blogs - over 80 blogs - over 90 blogs - password blogs - pc blogs - mortgages blogs - peoples blogs - pictures blogs - pipe blogs - pisces blogs - poems blogs - poker blogs - police blogs - political blogs radio blogs - read blogs - recreational vehicle blogs - relocation blogs - reserve blogs - rv blogs - safe blogs - scorpio blogs - singles blogs - smokers blogs - smoker blogs - state blogs - state college blogs - taurus blogs - teen advice blogs - teenager blogs - tobacco blogs - tv blogs - vacation blogs - veteran blogs - virgo blogs - virtual blogs - weekly blogs - wingman blogs - word blogs - words blogs - writer blogs - poetry blogs - prescription blogs - sagittarius blogs - straight blogs - summer blogs - gi blogs - hooka blogs - penis enlargement blogs - vfw blogs - casinos blogs - casino blogs - web hosting blogs - hosting blogs - auto blogs - truck blogs - van blogs - suv blogs - 4 wheel blogs - harley blogs - flu blogs - diet blogs - pistols blogs - teenage blogs - lpga blogs - burnable blogs - new tunes blogs - coaching blogs - treasures blogs - trades blogs - nutty blogs - skate blogs - play 21 blogs - weather blogs - poker players - golf blogs - american blogs - football blogs - baseball blogs - hockey blogs - basketball blogs - soccer blogs - cooking blogs - recipe blogs - space blogs - 3d games blogs - barbecue blogs




the java 5 archives:

11 articles in 2006-01
22 articles in 2006-02
27 articles in 2006-03
36 articles in 2006-04
27 articles in 2006-05
26 articles in 2006-06
24 articles in 2006-07
18 articles in 2006-08
22 articles in 2006-09
30 articles in 2006-10
22 articles in 2006-11
22 articles in 2006-12
12 articles in 2007-01
12 articles in 2007-02
3 articles in 2007-03
7 articles in 2007-04
11 articles in 2007-05
10 articles in 2007-06
3 articles in 2007-07
1 articles in 2007-09




next page


java 5