| editing nodes in JTree, icon problem |
|
 |
Index ‹ java-programmer
|
- Previous
- 5
- 1376180 CD-R, DVD R, DVD CASES LOWEST PRICE! 13 media4sale.com offers innovative and quality media, CD/DVD packaging and
other computer accessories at the best prices. We pride ourselves in
service, quality and commitment and are certain that our standards will
exceed expectations.
http://www.media4sale.com
<a href="http://www.media4sale.com" target="_blank">Media4Sale.com</a>
- 5
- Deployment problem with messge driven beans.When deploying a message driven bean I get the following error. Can
anyone help?
boss-3.0.8/server/default/deploy/TextMDB.jar
14:11:06,681 INFO [EjbModule] Creating
14:11:06,711 INFO [EjbModule] Deploying TextMDB
14:11:06,811 INFO [JMSContainerInvoker] Creating
14:11:06,821 INFO [JMSContainerInvoker] Created
14:11:06,831 INFO [EjbModule] Created
14:11:06,841 INFO [EjbModule] Starting
14:11:06,851 WARN [MessageDrivenContainer]No resource manager found
for jms/QCF
The ejb-jar.xml and jboss.xml is as follows:
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<enterprise-beans>
<message-driven>
<ejb-name>TextMDB</ejb-name>
<ejb-class>com.gbst.socketlistener.TextMDB</ejb-class>
<transaction-type>Container</transaction-type>
<acknowledge-mode>AUTO_ACKNOWLEDGE</acknowledge-mode>
<message-driven-destination>
<destination-type>javax.jms.Queue</destination-type>
</message-driven-destination>
<resource-ref>
<res-ref-name>jms/QCF</res-ref-name>
<res-type>javax.jms.QueueConnectionFactory</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</message-driven>
</enterprise-beans>
</ejb-jar>
<?xml version="1.0"?>
<jboss>
<enterprise-beans>
<message-driven>
<ejb-name>TextMDB</ejb-name>
<destination-jndi-name>queue/ListenerQueue</destination-jndi-name>
<resource-ref>
<res-ref-name>jms/QCF</res-ref-name>
<jndi-name>QueueConnectionFactory</jndi-name>
</resource-ref>
</message-driven>
</enterprise-beans>
</jboss>
Jamie
- 5
- regex: How to extract substrings?This should be really easy, but I couldn't find it in the tutorials and
documentations on the web:
What is the Java equivalent to the following Perl operation?
my $entry = "__3432__Smith__"
my ($id,$name) =
$entry =~ m/__(\d+)__([A-z]+)__/;
In other words, I want to extract the number and the name from the
string $entry, using a regular expression.
I tried the following:
Pattern p = Pattern.compile("__([0-9]+)__([A-z]+)__");
Matcher m = p.matcher("__3432__Smith__");
while(m.find()){
System.out.println(m.group());
}
But that gives me the complete match at once, not the two subgroups that
I specified using the parens: (\d+) and ([A-z]+).
Who can help?
Thanks!
- 7
- 7
- (www.shoessuperstar.com)Wholesale world famous handbag-CHANEL/CHLOE/LV/GUCCI/Feidi and so onHello
http://www.shoessuperstar.com/
shoessuperstar.co.,LTD greets and desires of success and wishes you
happy times.
This is professional export company from china who carry PAYPAL
payment and DROPSHIP .
We greated in 1998 year ,and now we become the one of best supplier
here because of we keep our credit standing .
Pls visit our site if u are interest in any products below ,
http://www.shoessuperstar.com/
Our main products :
Fashion shoes:
Air Jordan , Air force , Air max , Shox , Dunk , Adidas , Puma ,
Prada , Chanel , Gucci , Lacoste , LouisVuiton and more .
Fashion Hoodies&T-Shirt&Jeans&Jacket:
Gino Green Globa , Bape , BBC , Evsiu , Juicy couture , Burberry , 10
Deep , LRG , ED Hardy , Chanel , G-Star , Red monkey , lacoste ,
POLO,
Armani ,Replay , Tommy and more.
Fashion bags:
LouisVuiton , Pada , Chanel , Fendi , Versace , Burberry , MIUMIU ,
Y-3 , Gucci ,Chloe , Guess , Juicy and more
Electronic :
IPOD NANO , http://www.shoessuperstar.com/
Features:
1) All Package are original ,coming with guarantee cards
2) Main Market : U.S.A . U.K ,ITALY , EURO COUNTRY ,
AUSTRALIA
3) Ship Company : DHL , TNT , UPS , SODIEX , EMS
4) Payment Method : PAYPAL , WESTERN UNION ,T/T .
5) Custom : We carry the custom clear and promise items
must be arrive .
Thanks for your reading , pls mail us if u have any problem
with
the business . We hope that will make a long&great business with you
in future.
Your satisfactions,Our pursuit!
Please Email me to get discount!!
MSN : email***@***.com
email***@***.com
EMAIL: email***@***.com
http://www.shoessuperstar.com/
Best regards
Yours sincerely
- 8
- Tomcat, creating threadsI am trying to do some thread profiling on a website that consists
almost entirely of JSPs. When I create a thread in my application, I
give it a relevant name.
The problem is, I am seeing other threads that are calling my classes.
Are these threads being created by Tomcat?
The "unknown" threads have names like: Thread-17, Thread-18, etc.
I'm not sure, but I think these threads are being created every time my
JSPs try to access a session. Is there any way to tell where these
threads are coming from? Or, if they are being created by tomcat, can
I tell tomcat to name them something different?
Thanks in advance.
- 8
- To correct my program. please, check to find errors and correct me.import. Java.io.*;
import. Java.text.NumberFormat;
public class commander
public. static.void man(String[]args)throws IOException
BufferedReader in =
new BufferedReader(New InputStreamReader(Systemin));
int (commander);
System.out.println("Enter your code");
code = integer.parseint(in.readLine());
switch(commander)
{
case 1:
System.out.println("The status of president of United States);
break;
case 2:
System.out.println("The status of secretary of Defense);
break;
case 3:
System.out.println("The status of the Air force);
break;
case 4:
System.out.println("The status of Air force chief staff);
break;
case 5:
System.out.println("The status of Air university commander);
break;
case 6:
System.out.println("The status of Air commader);
break;
default:
System.out.println(" The status of commander is children");
-------------------------------------------------------------------------------
please correct me.
this is switch statement to make program.
- 10
- Jmagick and rotating image.Hello,
I am using Jmagick to manupulate and rotate images. When I rotate an
image, it gets a white color where no image is standing (in the
corners). I already tried with convertImg.setBackgroundColor( new
PixelPacket(100,50,100,200) ); but the whitespaces stay... ...white. I
need to have those areas transparent. I am using
imgInfo.setColorspace( ColorspaceType.TransparentColorspace ); so it
must be possible. can annyone help me with this?
When using imagemagick commandline I get what I need by using -
background none -rotate 10
I hope someone can help me.
thanks,
Erik
- 11
- Does my panel play hide & seek ?Hi,
In an application, that uses internal frames and the JDesktopPane! I
now want to add a pane to my application to the right side of the
window. But this pane should be hidden. In the sense when i click on a
button, it creep inside slowly and when i click on it, it should creep
out slowly again.
Is such a thing possible with swing? or is there any other way possible
for this?
Plz help,
kind regards,
Rajesh Rapaka.
- 11
- Is i irrational? (was Re: Versionincrementaphobia)In comp.lang.java.advocacy, James Westby
<email***@***.com>
wrote
on Tue, 07 Mar 2006 20:34:56 GMT
<Q7mPf.94623$email***@***.com>:
> Ian Pilcher wrote:
>> James Westby wrote:
>>
>>>What makes you think that i is rational?
>>
>>
>> I'll bite. What do you put after the decimal point?
>>
>
> I don't know, but I imagine that I couldn't write it in closed form. For
> that matter what do you pu in front?
>
> I always assumed that i would be irrational, but maybe it is neither
> irrational nor rational.
An interesting philosophical question. If a number is
rational it can be expressed as p/q, where p and q are
integers, q != 0. Therefore i is not rational.
However, it's not clear whether i is irrational or not,
since irrational also means "not rational", but I for one
would think that an irrational number is real, and i is
not real.
Also, there are at least two different ways of defining
a real number (Dedekind cuts and Cauchy sequences), and
neither can be used for i, since i is not part of the
total real ordering, nor can it be the limit of any sequence of
rationals, even allowing for silly claims such as -1 = 1+2+4+8+... .
(Briefly: if x = 1+2+4+..., then 2*x=2+4+8+... = x-1;
therefore 2*x = x-1 or x = -1, despite all partial sums
of the series being positive. But it's not i.)
On the flip side, though,
http://mathworld.wolfram.com/IrrationalNumber.html simply
defines an irrational number as any number which cannot
be a quotient p/q of two integers, but the definition is a
bit sloppy since it implies irrational numbers have decimal
expansions (though it has real and imaginary parts, which can).
This appears to be a "definitional bug".
It gets bizarre though, as i is an algebraic integer,
and a unit of the algebraic number field. (There are a
lot of units in that field, as opposed to the two units +1
and -1 in the rational field.)
So now we have a non-rational algebraic unit. At this
point it's probably best to head out for a coffee or
tea break as one's brain is probably screaming for aspirin
at this point. :-)
Followups to a slightly more logical discussion area. :-)
>
>
> James
--
#191, email***@***.com
It's still legal to go .sigless.
- 11
- main() parametersWhat's the difference in these parameters?
main(String[] args) and main(String args[]) ?
public class app extends Applet{
public static main void (String[] args)....
Bill
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----
- 12
- Difficulty with swingswe r beginners in java, creating an application similar to paintbrush.
(still working on the frontend)what r the different packages and classes that we could use to create a new window by selecting the "New" option from the MenuBar.What other sites could we visit for help?what r the recommended books that we could refer to ?
Thank you in advance.
--
Message posted via http://www.javakb.com
- 14
- Renamed: Lutus alert [Re: how many tomcat instances on one machine]This is a multi-part message in MIME format.
"Kathy Benson" <email***@***.com> wrote in message news:email***@***.com...
That should not be a problem as long as each one of them is listening on a different port and you have enough memory. We have an application that uses embedded Tomcat and I can start about 15 instances without any problem. I have about 1GB of memory and the initiali heap for Tomcat is set the the default, which I bellieve is 2 MB.
KB
--
------------------------------------------------------------------------------
This email is certified to be Spam free by Spam Marshall
You don't pay to get spam, why pay to clean it?
Visit http://www.spammarshall.com to create an account for free
------------------------------------------------------------------------------
Andy Fish wrote:
Hi,
Just curious to see if anyone has run lots of separate tomcat instances on
one machine. I currently have 2 which works fine, but I wonder if anyone has
ever done 10? 50?
I'd like to be able to host a number of separate instances of my app on the
same box for evaluation purposes and this seems the easiest way of doing it.
They will not be heavily used, so I guess RAM is the biggest factor.
Unfortunately I am on windows 2000 not *nix, so paging will be an issue.
Any comments would be appreciated
Andy
Lutus alert!!!! Hey, looks like SPAM in a signature that advertises a no SPAM product. Is this signature recursive??
--
Gary
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content=text/html;charset=ISO-8859-1>
<META content="MSHTML 6.00.2800.1264" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV>"Kathy Benson" <<A
href="mailto:email***@***.com">email***@***.com</A>> wrote in
message <A
href="news:email***@***.com">news:email***@***.com</A>...</DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">That
should not be a problem as long as each one of them is listening on a
different port and you have enough memory. We have an application that uses
embedded Tomcat and I can start about 15 instances without any problem. I have
about 1GB of memory and the initiali heap for Tomcat is set the the default,
which I bellieve is 2 MB.<BR><BR>KB<BR>
<DIV class=moz-signature>-- <BR>
<STYLE type=text/css>P {
FONT-SIZE: 12px; COLOR: black; FONT-FAMILY: Tahoma, Arial, Verdana
}
H1 {
}
H2 {
}
H3 {
}
HR {
WIDTH: 80%; COLOR: #cc0000; LINE-HEIGHT: 1; HEIGHT: 1px; TEXT-ALIGN: left
}
A {
}
A:visited {
}
A:active {
}
A:hover {
}
BODY {
FONT-SIZE: 12px; COLOR: black; FONT-FAMILY: Tahoma, Arial, Verdana
}
TABLE {
FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Tahoma, Arial, Verdana
}
</STYLE>
<HR>
This email is certified to be Spam free by Spam Marshall<BR>
<P>You don't pay to get spam, why pay to clean it?<BR>Visit <A
class=moz-txt-link-freetext
href="http://www.spammarshall.com">http://www.spammarshall.com</A> to create
an account for free<BR><A href="http://www.spammarshall.com"
target=_blank><IMG
src="http://www.spammarshall.com/SpamMarshall/images/logo-c.gif" border=0>
</A></P>
<HR>
</DIV><BR><BR>Andy Fish wrote:<BR>
<BLOCKQUOTE cite=midwJNjb.275$email***@***.com type="cite"><PRE wrap="">Hi,
Just curious to see if anyone has run lots of separate tomcat instances on
one machine. I currently have 2 which works fine, but I wonder if anyone has
ever done 10? 50?
I'd like to be able to host a number of separate instances of my app on the
same box for evaluation purposes and this seems the easiest way of doing it.
They will not be heavily used, so I guess RAM is the biggest factor.
Unfortunately I am on windows 2000 not *nix, so paging will be an issue.
Any comments would be appreciated
Andy
</PRE></BLOCKQUOTE><BR><FONT face=Arial size=2>Lutus alert!!!! Hey, looks
like SPAM in a signature that advertises a no SPAM product. Is this
signature recursive??<BR>-- <BR>Gary</FONT></BLOCKQUOTE></BODY></HTML>
- 14
- Eclipse Appearance ProblemHi all,
I have Eclipse (version: 3.2.2) and JRE (version:1.6.0.1) installed on
my Windows Vista System. When I am working regularly with Eclipse I
encounter with disappearance of some regions of Eclipse window.
Specifically package explorer and console regions are becoming a white
area right after I switch(focus/bring to front) from another
application to Eclipse. If I resize the Eclipse window or just make
some mouse gestures over those white area, they return back to normal.
I have no idea about the problem so I could not goggled it. Here is a
screenshot: http://www.imagehosting.com/show.php/502707_20070421132840.png.html
- 15
- URGENT RXTX SERIAL PORTHello
This is my situation :
A PC under OS MandrakeLinux 10.1
A machine branched on the serial port
I use jdk1.5 and the rxtx API
Opening the port seems good, i send data to the machine but when i read
th response i have a buffer with bytes null.
I have tried to sniff the serial port but i don't understand the data i
intercept, i don't recognize my protocol !
I don't know how i can debug to know what's wrong.
Any help will be welcome.
Thanks
Nanou
|
| Author |
Message |
Ender

|
Posted: 2008-2-24 3:38:00 |
Top |
java-programmer, editing nodes in JTree, icon problem
I have a JTree with a child node that has a dropdown list in it. When I
click on the node to make the list appear, then make a selection, the
icon changes to what looks like a document icon.
My problem is that the document icon stays there after I make the
selection in the dropdown list until I click on another node. It's like
the process of making a selection is unfinished.
Anyone know what that is?
|
| |
|
| |
 |
John

|
Posted: 2008-2-27 0:44:00 |
Top |
java-programmer >> editing nodes in JTree, icon problem
Ender a 閏rit :
> I have a JTree with a child node that has a dropdown list in it. When I
> click on the node to make the list appear, then make a selection, the
> icon changes to what looks like a document icon.
>
> My problem is that the document icon stays there after I make the
> selection in the dropdown list until I click on another node. It's like
> the process of making a selection is unfinished.
>
> Anyone know what that is?
The combo box is still in editing state when you select a value. You could add an action listener to the combo box (problem for reselecting the same value) and stop the editing when you receive an action event.
|
| |
|
| |
 |
Ender

|
Posted: 2008-3-7 0:41:00 |
Top |
java-programmer >> editing nodes in JTree, icon problem
On 2008-02-26 10:44:09 -0600, John <email***@***.com> said:
> Ender a 閏rit :
>> I have a JTree with a child node that has a dropdown list in it. When I
>> click on the node to make the list appear, then make a selection, the
>> icon changes to what looks like a document icon.
>>
>> My problem is that the document icon stays there after I make the
>> selection in the dropdown list until I click on another node. It's like
>> the process of making a selection is unfinished.
>>
>> Anyone know what that is?
>
> The combo box is still in editing state when you select a value. You
> could add an action listener to the combo box (problem for reselecting
> the same value) and stop the editing when you receive an action event.
That's what I actually have. I have an ActionListener tied to this
JComboBox in the JTree node and in the ActionListener, I have a
stopCellEditing() call, but before and after that call I put an
isEditing() to see if it was in editing state and it returns false.
But if I click on another node after making the selection, then the
icon returns to it's normal icon; otherwise, the icon is the editing
doc icon after I make a selection and before I click on anything else.
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- Java Bytecode to Native executable to Protect IPHi
Looking for a java bytecode compiler that will compile java byte code to a
windows self executable file. Reason is to protect intellectual property. I
realise that JET may be able to do that, but the full version is not free
and seems too taxing on the hard drive space. So anyone know of a free
bytecode compile that is simple to use.
Thanks in advance
Regards
AaA
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 5/07/2004
- 2
- Pogo Game, etc
I'm a pogo fan and an anspiring Java programmer/software
deceloper/enginneeer .
I'm curious if maybe the source code could be out on the internet
somewhere .
Do you think that maybe somebody could also explain to me about how
the graphics are created and what libraries are they using to create
game such
as poppit, etc.... I know about swing but isnt swing for creating
windows and
user interfaces ? (kind of like visual basic???) .
I would really apprececiate any input regarding my question .
- 3
- unsigned shift confusionHi, I'm testing the unsigned shift operator in Java. Unfortunately, the
value I predicted for the output is 2^17 (131072), not 2^17 - 1
(131071). See below:
"""
class unsignedshift {
public static void main(String args[])
{
int a = -10;
String bs1;
a = a >>> 15;
bs1 = Integer.toBinaryString(a);
System.out.println(bs1);
System.out.println("The length of the binary string is " + bs1.length());
System.out.println("a = " + a);
}
}
"""
Output is:
"""
11111111111111111
The length of the binary string is 17
a = 131071
"""
Where is the difference of one coming from?
Thanks.
--
Mike
- 4
- [struts] ActionForm design questionHi,
I've wrote a java application (not a web application) which containg
some bean used extensively in the application.
Now I would like to reuse those bean inside a struts based web
application.
In struts a bean supporting a form must extend ActionForm. I would like
to reuse the beans written for the first application. Is it possible in
some way???
The only way that i saw is to use Bean.Utilis.copyProperties in order
to copy a bean into another.
- 5
- 6
- Can javac do macro (conditional) compilation?In C/C++ we can do
for example:
#ifdef VERSION_1
// write version 1 codes here
...
#else
// write version 2 codes here
...
#endif
Then when we compile the code with -D option
gcc -DVERSION_1 input_filename.c -o output_filename
This will compile the codes in version 1
gcc input_filename.c -o output_filename
This will compile the codes in version 2
I am just wonder can I use -J option in javac?
If I can, then how do I write the syntax in java codes?
- 7
- Connecting to db2/400 of AS400 through java throwing SQLExceptionHello,
I am trying to connect to db2/400 of as400 through java in WDSC.
I am usinf the driver ->
com.ibm.db2.jcc.DB2Driver
I have put the db2jcc.jar and db2jcc_license_c.jar in classpath.
I am not ableto connect with db2/400
The code for connecting to the database is follows-->
******************************************************************************
//Connect to a database
try
{
Connection conn = DriverManager.getConnection
("jdbc:db2:192.168.0.10","SAVITA","SAVITA");
}
catch (SQLException e)
{
System.out.println("SQL Exception: ");
}
*******************************************************************************
I am getting the following run time error
SQL Exception
....................................................................................................
Do I have to use other url apart from jdbc:db2:192.168.0.10
I have used jdbc:db2:S650B66E
where S650B66E=system name
In the actual code instead of 192.168.0.10 they have used databasename.
My requirement is , to call stored procedure from db2/400 of as400.
Firstly how do I connect to db2/400?
Can please any body help me out.
Thanks
Regards
Savita
- 8
- Azureus wont compile coz of 4E4D4554484F440E4350500525Hello people...
So, after dodging Azureus dependancies, this might be the final hurdle
to get Azureus to compile :/
Anyway... I got an internal error (4E4D4554484F440E4350500525)
I got that error when I was installing something called "sed"
(/usr/ports/net/sed ?), but that got resolved once I mounted
linprocfs...
But Azureus refuses to compile...
I googled further more and one site tells me to add -Xint to my java
command line... I added that in the last line of work/azureus file
that was created. And thats how the number of files mentioned in the
output below reduced from 2000 something to 1476... Good thing/bad
thing???
Any ideas how to get this working?
Below from BEGIN to END is the exact console output...
PS: please CC your replies to me coz im not on the list....
=====BEGIN (I'm in directory /usr/ports/net-p2p/azureus)=====
hostname# make install clean
===> Building for azureus-2.4.0.2
Buildfile: build.xml
init:
compile:
[javac] Compiling 1476 source files to /usr/ports/net-p2p/azureus/work/build
[javac] #
[javac] # An unexpected error has been detected by HotSpot Virtual Machine:
[javac] #
[javac] # Internal Error (4E4D4554484F440E4350500525), pid=49360,
tid=0x50f000
[javac] #
[javac] # Java VM: Java HotSpot(TM) 64-Bit Server VM
(diablo-1.5.0_07-b00 mixed mode)
[javac] # An error report file with more information is saved as
hs_err_pid49360.log
[javac] #
[javac] # If you would like to submit a bug report, please write
[javac] # a letter to email***@***.com mailing list
[javac] #
BUILD FAILED
/usr/ports/net-p2p/azureus/work/build.xml:22: Compile failed; see the
compiler error output for details.
Total time: 48 seconds
*** Error code 1
Stop in /usr/ports/net-p2p/azureus.
hostname#
====END====
cheers...
Ahmed
- 9
- Application wide variables with Tomcat/AxisHello,
I have installed axis on Tomcat and a few WebServices.
My Problem: I want to have a >>APPLICATION WIDE OBJECT<<, which you can
reach from a WebService as well as a Java Application which is running
on this server.
I would like to have something similar to the Session Object on a Web
Page where you can add and remove items.
Scenario:
-------------
The Programm Codes who share a Class called MyQueue, which is a Class
which holdes
all the processes.
WebService1(Pseudo Code)/**Fills Queque with new Datasets*/
public boolean fillQueue(int GUID, String ProcId){
MyQueue myqueue = getLivingQueue(); //This function shell give
me the actual queque,
//NOT a new one!!
MyQueueDataset oneDataSet= myqueue.create() ;//Create a new
DataSet
//in the Queue.
oneDataSet.setProcId(ProcId);
oneDataSet.setGUID(GUID);
oneDataSet.setStatus("InQueue");
...
return true;
}
WebService2:(Pseudo Code)/*Find out Status of certain Queque*/
public String getStatusOfGUID(int GUID){
MyQueue myqueue = getLivingQueue(); //This function shell give
me the actual queque,
//NOT a new one!!
MyQueueDataset oneDataSet = myqueue.getByGUID(GUID);
return oneDataSet .status;
}
A Job:(Pseudo Code)/*Try to proceed DataSets which havent proceede
yet*/
Class Watcher(){
int static main(){
...
MyQueue myqueue = getLivingQueue();
while(1==1){
ArrayList allJobsNotDone =
myqueue.getAllDataSetsWhichAreNotSuccessFullProceedd()
while(allJobsNotDone.hasNext() ){
MyQueueDataset notJetSuccesfullProceedeJob =
allJobsNotDone.next();
//Now we call a function which lets say try to put the values
//of notJetSuccesfullProceedeJob into a database.
proceed(notJetSuccesfullProceedeJob );
}
}
}
}
Is this possible just with Tomcat?
Do I need a Messaging System (JMS) or something?
I would appreciate help very much.
Thanks in advanced,
Peter
- 10
- JSpinner with DateModel, setValue not working ?Hi,
I wrote a JSpinner-based Class that I use as a Time Chooser.
The spinner has a DateModel.
My problem is that the setValue does not work : the content of the
spinner is not updated.
Any clue, any one ?
thanks in advance,
--P
the TimeSpinner Class :
package fr.heartbit.viewer;
import javax.swing.*;
import javax.swing.event.*;
import java.text.*;
import java.awt.*;
import java.util.*;
import java.awt.event.*;
import javax.swing.text.*;
public class TimeSpinner
extends JSpinner {
JFormattedTextField tf;
public TimeSpinner(){
super();
final SpinnerDateModel model = new SpinnerDateModel();
this.setModel(model);
JSpinner.DateEditor editor = new
JSpinner.DateEditor(this,"HH:ss:mm");
this.setEditor(editor);
tf = ((JSpinner.DateEditor)this.getEditor()).getTextField();
tf.setEditable(true);
tf.setBackground(Color.white);
tf.setSelectionColor(Color.blue);
tf.setSelectedTextColor(Color.white);
DefaultFormatterFactory factory =
(DefaultFormatterFactory)tf.getFormatterFactory();
DateFormatter formatter =
(DateFormatter)factory.getDefaultFormatter();
formatter.setAllowsInvalid(false);
}
}
- 11
- SSL socket in MS SDK 4.0Is there a way to create a an SSL socket using Microsoft SDK 4.0? If
not is it possible to get Suns javax.net.ssl to work with jview?
Any help would be appreciated.
- 12
- 13
- Need Java professionalsDear Mr. / Ms,
Hope you are doing fine.
This is Kumar, from Javaji System Solutions Pvt. Ltd. striving to
assist the IT professionals to meet the better opportunity available
in today's IT world.
Below are the permanent job openings on Web Development With our
client in Germany which are all English speaking positions.
Our client is one of the leading Internet destinations operating a
network of websites in seven languages in Europe and the USA. The
company's combination of search, communication services, online
communities, content channels, Internet access, shopping, homepage
building and domain names registration addresses a wide range of
target groups. Our client in European Network provides an attractive
medium not only for consumers but also for advertisers and e-commerce
partners. With a wide network of websites covering Austria, Denmark,
France, Germany, Great Britain, Italy, the Netherlands, Spain,
Switzerland and the USA, Our client has a large geographical reach in
Europe and Northern America.
1. Senior Technical Manager (Java) Communities
2. Technical Project Manager
3. Technical Project Manager CRM&Billing
4. Senior Software Architect
5. Senior Java-Developer Communities
6. Passionierter Developer Communication Product
Please send your updated profile with the following details.
Latest Photo, Expected Salary (In Euros), Availability date, Contact
No's (telephone/Mobile), willing to relocate (Y/N)
Thanks/Regards
Kumar
Re-source coordinator
Javaji System Solutions Pvt. Ltd.,
+44-208-090 2178
email***@***.com
- 14
- Encrypt Text?What's the best method of text encryption if I wanted to store passwords in
an XML file? Are there any in-built functions of the API which would allow
me to store a key in code and encrypt and decrypt text using this key?
P.S. The project isnt high security so I'm not overly concerned about it
being breakable :)
- 15
- NullPointerException in javax.swing.JComponent.reshapeI sometimes get the following exception in my GUI. It is not always
reproducible, so I don't know when it throws this exception. Any idea
what could be the problem?
java.lang.NullPointerException
at javax.swing.JComponent.reshape(JComponent.java:3507)
at java.awt.Component.setBounds(Component.java:1664)
at java.awt.Component.move(Component.java:1541)
at java.awt.Component.setLocation(Component.java:1533)
at javax.swing.JViewport.setViewPosition(JViewport.java:1075)
at
javax.swing.JViewport.scrollRectToVisible(JViewport.java:396)
at
javax.swing.JComponent.scrollRectToVisible(JComponent.java:2636)
at com.sun.forte.st.mpmt.AnTable$1.run(AnTable.java:651)
at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
|
|
|