comp.lang.java.programmer
  Home FAQ Contact Sign in
comp.lang.java.programmer only
 
Advanced search
July 2008
motuwethfrsasuw
 123456 27
78910111213 28
14151617181920 29
21222324252627 30
28293031    31
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.lang.java.programmer Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  clone method call non-private, non-final methods         


Author: puzzlecracker
Date: Jul 23, 2008 05:45

I saw it in the Effective Java book, though understanding still eludes
me (I suspect it goes on par with the constructor's contract). I don't
see implications whereby clone calls some public method to copy parts
of the object, resulting in the disaster or the end of the world sort
of a thing. Can someone illustrate that?

Thanks
no comments
  Distributing Java Source         


Author: Roedy Green
Date: Jul 23, 2008 05:21

1. is there any format considered more vanilla than ZIP for
distributing Java source?

2. If you distribute source via a Version control system, which is the
preferred one for Java multiplatform?

3. Is there a place where I can post my source in a vcs for free or
cheaply? SourceForge turned me down because of my "non-miltary use"
restriction. My ISP is always too busy to do the work to let me set
up my own server.

--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
2 Comments
  A Swing question about readable control-flow         


Author: Leo Breebaart
Date: Jul 23, 2008 05:11

I have a control-flow issue I was hoping to get some advice on.

In my Swing GUI, I have a button. If I click on that button, I
want, via its associated Action, but, and this is the kicker:
*depending on a certain condition*, to show and process the
results of a modal JDialog *before* I perform the actual action.
But the action should always run. It's just the showing of the
dialog that is dependent on outside context.

How I would *like* to implement this:

public class MyAction extends AbstractAction
{

public void actionPerformed(ActionEvent e)
{
if (hasQuestionnaire)
showQuestionnaire();

doStuff();
}

private void showQuestionnaire()
{
final QuestionnaireDialog dialog = new QuestionnaireDialog();
dialog.setVisible(true);
dialog.getCancelButton().addActionListener...
Show full article (2.31Kb)
no comments
  xml to object and vice versa         


Author: JyotiC
Date: Jul 23, 2008 04:02

Hi,

I have an xml file, corresponding to an xsd. If there some tool, which
would take this xml and xsd and give me an object. And also take the
object and xsd and give me xml.

I read about couple of tools like JAXB, xstrem and xmlBeans.
The issue i have with them, is they make their own classes, i want to
use classes which i have already defined by my object. And it's not
similar to the ones they create.

Is there any other tool, which also takes classes and use that for
object?

Regards,
Jyoti
no comments
  simple benchmarking timer         


Author: Roedy Green
Date: Jul 23, 2008 03:25

I took a look in the usual places and did not see anything like this:
I was about to write a little utility for timing benchmarks.

This is for multistep jobs or where you don't have access to the
source.

You would type something like this:

///////////////////////////////

timer start

prog.exe

timer elapsed "some identification string" > bench1.txt
rem in millis since start followed by id string.

prog2.exe

timer elapsed "prog2" > bench2.txt
rem in millis since previous call to timer

////////////////////////////////

Is there such a beast? It would be best written in C or MASM to avoid
skewing the results with a long Java load.

Do you have such a thing in your toolbox? there used to be something
like this part of the Norton Utilities.

--
Show full article (0.85Kb)
no comments
  String question         


Author: stef
Date: Jul 23, 2008 02:59

Hello,

Silly question, but if - internally speaking- the java compiler
replace the "String" class with "StringBuffer",
what is the real purpose of "String" ? (except shorter keyword and,
may be, when who do static stuff like String s ="hello "+"world")

thanks...
4 Comments
  Last Call for Papers (extended): World Congress on Engineering and Computer Science WCECS 2008         


Author: imecs_2008
Date: Jul 23, 2008 02:39

Last CFP (extended): World Congress on Engineering and Computer
Science WCECS 2008
From: International Association of Engineers (IAENG)
WCECS 2008: San Francisco, USA, 22-24 October, 2008
http://www.iaeng.org/WCECS2008

Important Dates:

Draft Paper Submission Deadline (extended): 30 July, 2008
Camera-Ready Papers Due & Registration Deadline (extended): 16 August,
2008
WCECS 2008: San Francisco, USA, 22-24 October, 2008
Show full article (8.05Kb)
no comments
  chian whole sale jordan shoes prada chanel versace crocs sandale www.jumpmanlocker.com.cn         


Author: jumpmanlocker4
Date: Jul 23, 2008 02:18

welcome to visit www.jumpmanlocker.com.cn
air max 87 89 90 95 ltd timberland jeans ugg boots lacoste sandals
hoodies,
t-shirts, mauri shoes, dsquared , hogan shoes, dunks , red monkey,
polo t-shirts,
evisu jeans, bbc jeans , dior, lv, dg, versace, coach puma shoes, nfl
jerseys
shox r2 r3 r4 r5 r6 tn tl1 tl3, sandals, nhl jerseys, mlb jerseys,
nba
jerseys
probowl jerseys,prada shoes,kobe james, hockey jerseys, nfl jerseys,
football
jerseys, baseball jerseys, jordan shoes, jordan fusion air force ones
25 years
basketball jerseys Men's women's shocks OZ NZ TL shoes Discount
Coach
Sandals,
Dior Sandals, Prada Sandals, Chanel Sandals, Versace Sandals, Crocs
Sandals,
Women's Sandals Men's Slippers From China jordan shoes, jordan fusion ...
Show full article (1.10Kb)
no comments
  File archive with security         


Author: pramodr
Date: Jul 22, 2008 23:31

Hi Group,

I need to build a small web application to manage a set of files which
should be maintained as an archive. The system must be able to add/
remove files to this archive. Also there should be user level security
applied to this archive ie; the archive should not be opened except
through the application. The system must support LDAP.

can any one suggest a solution here?

Thanks for any help.
regards
Pramod R
2 Comments
  Gas Price Database that is java accessible???         


Author: tiewknvc9
Date: Jul 22, 2008 22:53

Does anyone know of a free gas prices database that is available
online???

Trying to do something unique for a client (not a lowest gas price
finder, but something that gets a good idea as to what the average
price is for the US.
3 Comments
 
1 2 3 4 5 6 7 8 9