First  |  Prev |  Next  |  Last
Pages: 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
License
I'm studying the JAXB API. The sample source code files provided by Sun have the following inclusion: /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved. * * The contents of this file are subject to the terms of either the GNU ... 21 Sep 2009 20:19
how to enlarger Java heap size?
Following up on the subject title "how to enlarger Java heap size?" rather than on the recent discussion: Is there a way to tell Java on the command line to take as much heap size as the physical memory or the virtual memory of the computer allows? I have a launcher written in C for Windows that runs a Java a... 19 Sep 2009 13:40
confused with LayoutManagement: JSplitPane
I've got difficulties with JSplitPane: Some dialog consist of four parts (vertically), with sliders between each. That was created by a colleague with netbean's form-editor, and works almost ok. There is one master-JSplitPane, and two inner JSplitPanes and inside that are the actual components. Now, "they" want... 20 Sep 2009 07:22
Adding int to a float
How do you get an accurate addition of a float and an int? int i = 5454697; float f = 0.7388774F; float result = new Integer(i).floatValue()+f; result=5454697.5 ?? Surely it should be 5454697.7388774? If I use double it's fine, but I need to use float ... 21 Sep 2009 19:12
Using 'final' with local variables
A question for the Java gurus. When coding in C or C++ I use 'register' to hint to the compiler that something might usefully be kept in a place with easy/quick access: for (int i = 0; i < 20; ++i) { register int iSquared = i * i; for (int j = 0; j < 250; ++j) { // Calculations involving i, iSq... 22 Sep 2009 00:44
inheriting a main method
I would like to write a base class from which child classes inherit a public static void main( String args[] ) method. As readers can probably guess, but problem is that the main method doesn't know which class to create to start the program running. The parent class is called Game. I can't write a method: p... 5 Oct 2009 12:23
in the Observer (Publish/Subscribe) pattern, are notificationsalien method calls?
neuneudr(a)yahoo.fr wrote: First thanks to Lew and Mark who responded to my question about @ThreadSafe / FindBugs... Not to mention Brian Goetz, who also responded recently. (Take a look at the cover of your Java Concurrency in Practice book, neuneudr. ;) ;) ;)) - In the Observer (aka Publish/Suscrib... 13 Sep 2009 21:39
in the Observer (Publish/Subscribe) pattern, are notifications alien method calls?
First thanks to Lew and Mark who responded to my question about @ThreadSafe / FindBugs... Now I've got other questions: - In the Observer (aka Publish/Suscribe) design pattern, the notification about the observed subject state change is named a "callback" right? (terminology question) tmp.registerObserver( ... 13 Sep 2009 08:27
Parsing XML Children
I've a scenario where i need to parse all children with a name "interestingNodes" under a "Tree". <Tree> <fruits> <interestingNotes>....</interestingNotes> <fruit> <type>apple</type> <interestingNotes>....</interestingNotes> <vitamins> .... <interestingNo... 10 Sep 2009 18:04
LWUIT and J2ME
i have developed a form in lwuit , it contains some icon , now i want to integrate it with my other simple form of j2me , the problem is with Display structure , when i am developing form with lwuit i have to use Dispaly.init(this); but in j2me application we use Display.getCurrent and setCurrent(this) , actually i... 10 Sep 2009 06:54
First  |  Prev |  Next  |  Last
Pages: 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83