 |
 |
Index ‹ java-programmer
|
- Previous
- 3
- reflect fieldHi all,
I want to get value of string variable in a class, and field it with
new strings like this :
EXample
public class helloWold()
{
String myString1 = "test1";
String myString2 = "test2";
String myString3 = "test3";
String myString4 = "test4";
}
public static void main(String[] args) {
Field myField[] = helloWold().class.getFields();
for (int i = 0; i < myField.length; i++)
{
System.out.println(myField[i].getName()); //get value
}
}
Actually I get the value, but i didn't know how to field it. I try the
method set but i have an error
'an not set java.lang.String field to java.lang.String'
Any ideas
Thanks.
Merci d avoir lu et de vos idees par avance
- 3
- Trying to put a background image in a JFrameTrying to put a background image in a JFrame
I have looked this issue up and found that extending JPanel and
specifying a paintComponent() is one possibility. I haven't tried this
yet (and a different task popped up for today).
However, I thought that using the JFrames JRootPane or JLayeredPane
could be less a hassle. Well, it's not really, but I'm curious if this
could be solved.
Get the whole NetBeans project with a compiled jar (49kB zip file) here
[1]. Please don't use the image for yourself, or my boss will kill me.
What happens is that the image (with transparent areas) is painted
infront of components instead of behind. Actually, when I first start
the application, the image is infront of one button and behind the
other. Moving the mouse over a button brings it to front, resizing the
window will put all components behind the image.
By the way, in the final project, the window will not be resizable,
although I would appreciate some hint towards catering for the image
being anchored to the lower right corner aswell.
[1] http://www.op3racional.eu/x/LayerTest.zip
--
Sabine Dinis Blochberger
Op3racional
www.op3racional.eu
- 5
- new version of Open Content Software Design web bookI have an updated version of my Software Design web
book (free!) that is primarily Java centric. This
web book is not as complete as my "Java AI" and "Introduction
to Common LISP" web books, but it is hopefully in a usable
state as-is. I am especially looking for feedback
on how to improve it (the Common LISP community was
awesome in providing great feedback for the free LISP
book - can the Java community do the same :-)
Help yourself (on the 'Free Web Books" page):
http://www.markwatson.com
-Mark
- 5
- Polymorphism in JavaHi Friends,
Don't missout on these articles on design techniques:
Polymorphism in Java:
http://javalive.com/modules/articles/article.php?id=19
The Factory Design Pattern:
http://javalive.com/modules/articles/article.php?id=18
Effective use of Interfaces and Abstract Classes:
http://javalive.com/modules/articles/article.php?id=17
Why ORM Tools are not Recommended:
http://javalive.com/modules/articles/article.php?id=16
How to Estimate Project Deadlines:
http://javalive.com/modules/articles/article.php?id=14
Regards,
Vijay
- 5
- 5
- Outsourcing to India and Chinayeah there was a philosopher back in the 60s by the name of
thornkinson (god i hope that's right) but he went into detail on how
society will eventually solve all its problems through efficient
technology. he supposed built a vehicle that can do like 50mpg back
then.
the light bulb is an interesting question tho. its horribly
inefficient. hasn't changed since edison created it. its used by
literally everyone. you would think someone would realize the
potential in mass producing something better..
however i don't think its physically possible to heat a home using 3
lightbulbs. besides a lightbulb mostly creates heat.
Roedy Green <email***@***.com> wrote in message news:<email***@***.com>...
> On 8 Jan 2004 09:19:43 -0800, email***@***.com (Loco
> Pollo) wrote or quoted :
>
> >it would take 7 planet earths to support
> >everyone with this wasteful lifestyle because we are on the whole
> >inefficient with our resources.
>
> The problem is we have some habits left over from our cave man days
> documented by Thorsten Veblen in the Theory Of The Leisure Class (a
> very funny book published in 1899).
> http://www.amazon.com/exec/obidos/ASIN/0140187952/canadianmindprod
>
> We like to impress each other with conspicuous consumption and
> conspicuous waste.
>
> Somehow, we must come to equate status with efficient and parsimonious
> use of resources.
>
> I was horrified to learn that the technology to build a house in
> Canada that can be heated with a single light bulb costs only a few
> thousand dollars extra, yet almost no one takes advantage of it.
>
> Yet the houses built today will NEED that technology to be practical
> after the age of oil.
>
> We are like castaways on a desert island, deciding to have a feast on
> whatever washed ashore, before we have any plan to live off the land.
- 5
- i'm makin traxc!!!... got it in the box.
trying to use simpldateformatter but
can't find examples on the net.
... i don't understand what and where it returns its
output??? is there a variable return. the examples show no calls???
k
--
Sometimes I'm in a good mood.
Sometimes I'm in a bad mood.
When all my moods have cum to pass
i hope they bury me upside down
so the world can kiss me porcelain,
white, Irish bottom.
- 6
- tablet stylus as graphicI am wondering if there is a simple applet somewhere, which I could embed in
an html form, such that on a tablet pc, using the tablet's
stylus, sign in some field, that field then, rather than being converted to
text(as is typical in tablets) is then maintained as an image, then, the
form is posted to a mysql database where the image of the signature is
retained as such.
Does anyone know of such an animal, or even something remotely like this?
Thanks, Ike
- 6
- Help! Constructors not workingI'm doing an assignment for a Java class. Basically, we have to build
constructors for a class, Television, whose attributes are *brand* and
*price*. I have defined the constructors and accessor and mutator
methods in Television.java, and access it via TelevisionClient.java
(code for both is posted below). Both files compile. However when I
run TelevisionClient, it runs through the code, but my constructors,
tv0, which I assign a value in the program, and tv1, which is assigned
through dialog boxes at runtime, are the same value - in other words,
even assigning a value to one, they both have the values that are
passed in through the dialog box. I appreciate any help.
******* Television.java ****************
import java.util.*;
import javax.swing.JOptionPane;
import java.io.*;
public class Television
{
public static String brand;
public static String price;
public Television(String xbrand, String xprice)
{
brand = xbrand;
price = xprice;
}
public static String getBrand()
{
return brand;
}
public static String getPrice()
{
return price;
}
public String toString()
{
String str = "";
str = "Television information:\n"
+ "The brand name is " + this.brand + "\n"
+ "The price is: $" + price;
return str;
}
public boolean equals(Television tvx)
{
if (brand.equals(tvx.brand)
&& price==(tvx.price))
return true;
else
return false;
}
}
******* end Television.java ****************
******* TelevisionClient.java ****************
import javax.swing.JOptionPane;
public class TelevisionClient
{
public static String inputMessage;
public static String outputMessage;
public static String outputMessage2;
public static String outMsg;
Television tv0, tv1;
public void workWithTV( )
{
tv0 = new Television( "RCA", "100.00");
JOptionPane.showMessageDialog( null, tv0.toString( ) );
outputMessage = "This program will list the brand and price of a
television "
+ "based on the values you enter.\n"
+ "It will then compare the values to the default: RCA - $100.00\n";
JOptionPane.showMessageDialog(null, outputMessage,"Television
Attributes",
JOptionPane.PLAIN_MESSAGE);
inputMessage = "Enter the brand of the television:\n\n";
Television.brand = JOptionPane.showInputDialog(inputMessage);
inputMessage = "Enter the price of the television:\n\n";
Television.price = JOptionPane.showInputDialog(inputMessage);
// price = Double.parseDouble(price);
Television tv1 = new Television(Television.brand, Television.price);
outputMessage = tv1.toString();
JOptionPane.showMessageDialog(null, outputMessage,"Television
Attributes",
JOptionPane.PLAIN_MESSAGE);
JOptionPane.showMessageDialog( null, tv0.toString( ) );
JOptionPane.showMessageDialog( null, tv1.toString( ) );
outMsg = "tv0: " + tv0.brand + "/" + tv0.price + "\n"
+ "tv1: " + tv1.brand + "/" + tv1.price + "\n";
JOptionPane.showMessageDialog(null, outMsg,"Television Attributes",
JOptionPane.PLAIN_MESSAGE);
if ( tv1.equals( tv0 ) )
outputMessage2 = "DOES EQUAL";
else
outputMessage2 = "DOES NOT EQUAL";
outputMessage = "The values you entered, brand: " +
Television.getBrand() + " / price: $" + Television.getPrice() + "\n"
JOptionPane.showMessageDialog( null, outputMessage );
if ( tv1 == tv0 )
outputMessage2 = "DOES EQUAL";
else
outputMessage2 = "DOES NOT EQUAL";
outputMessage = "The values you entered, brand: " +
Television.getBrand() + " / price: $" + Television.getPrice() + "\n"
JOptionPane.showMessageDialog( null, outputMessage );
}
public static void main (String[] args)
{
TelevisionClient app = new TelevisionClient( );
app.workWithTV( );
}
}
******* end TelevisionClient.java ****************
- 7
- Using Java with Dual & Quad Processors.I have a function which I call using for loop. I want that when My
Java program is run on Dual Core its speed increases by twice and when
it run on Quad core its speed increase 4 time.
Here is the Code I am using.
const NUMBER=1000;
Public int int_x;
Public int[] Array1= new int[NUMBER];
init (){
for (int i=0;i<NUMBER;i++){
function_abc(i);
}
}
// function_abc returns same value for a given Value of "i".
function_abc(int i){
int_x++;
...
...
...
Array1[i]=i*5+int_x;
}
So in the end we get an Array[i] with the formula values. On a single
processor it goes through all the for loop in NUMBER times.
I want on Dual Core the Performance doubles by using Threads. So
function_abc(i); is Called in multiple threads and Speed increases X
times depending on number of X Processors the System has.
How can it be done, any idea.
So for Single Core it will have no spped increase.
For Dual Core Twice Speed
For Quad Core 4 Times speed is seen.
Bye
Sanny
- 10
- java does not runThis is a multi-part message in MIME format.
Hi folks,
Downloaded the latest XP updates and the java stopped working(?) When I load a page with j.s. it doesn't run ie menumachine shows up in the source code but my computer does not display it.
IE.>tools>internet options>advanced and Java Console enabled and JIT compiler for virtual machine enabled
Any help would be appreciated.
Dave
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial>Hi folks,</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Downloaded the latest XP updates and the java stopped
working(?) When I load a page with j.s. it doesn't run ie menumachine shows
up in the source code but my computer does not display it. </FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>IE.>tools>internet options>advanced and Java
Console enabled and JIT compiler for virtual machine enabled</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Any help would be appreciated.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Dave</FONT></DIV></BODY></HTML>
- 10
- javadoc to ms word docAnyone got some tips to ease the conversion from javadoc to ms Word?
I've got the source code, I can produce html and yes ms word does understand
html, but its a laborious process with 50 files. And the html tables never
fit the width correctly.
Any tools to javadoc straight from source to ms .doc ?
TIA
--
Mike W
- 10
- what is Xerces,XSLT,Crimson ?regards:
what is Xerces,XSLT,Crimson ?
How to use it? could someone good give me a hand @@.
Thank you.
May god be with you.
- 10
- 15
- Java - Awareness of other programs installed on PCIs there way in JAVA to access information about the installed
programs on the PC. I mean somehow you could grab some information
about all items in (lets say for windows) the Start-Programs.
Thanks for ur help
|
| Author |
Message |
Frances

|
Posted: 2005-8-26 3:40:00 |
Top |
java-programmer, processMouseEvent()
MouseDown() and MouseUp() are deprecated; both have been replaced by
processMouseEvent()... how can this be? (two diff. methods replaced by
same method..)
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Component.html#mouseDown(java.awt.Event,%20int,%20int)
thank you..
Frances
|
| |
|
| |
 |
Thomas Hawtin

|
Posted: 2005-8-26 4:29:00 |
Top |
java-programmer >> processMouseEvent()
Frances wrote:
>
> MouseDown() and MouseUp() are deprecated; both have been replaced by
> processMouseEvent()... how can this be? (two diff. methods replaced by
> same method..)
>
> http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Component.html#mouseDown(java.awt.Event,%20int,%20int)
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/MouseEvent.html#MOUSE_PRESSED
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/MouseEvent.html#MOUSE_RELEASED
Tom Hawtin
--
Unemployed English Java programmer
http://jroller.com/page/tackline/
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- Porting C++ Template to Java GenericI've run into a road block with porting some C++ code that makes use
of templates to Java. In it, there is a main class I'll call A that
is a template class:
// C++
template <class T> class A
public:
virtual T Evaluate() const = 0;
};
Other classes extend this class:
// C++
template <class T> class B : public A<T> {
public:
B(const T &v) { value = v; }
T Evaluate() const { return value; }
private:
T value;
};
Now all of this is easy to implement in Java using Generic
programing. The issue I'm having is when I try to implement code like
this:
template <class T1, class T2> class C : public A<T2> {
public:
C(A<T1> a, A<T2> b) { t1 = a; t2 = b; }
T2 Evaluate() {
return t1->Evaluate() * t2->Evaluate();
}
private:
A<T1> t1;
A<T2> t2;
};
Java complains about about the * operator being undefined for
arguments T1, T2; Since Java doesn't have operator overloading, I
can't really see how to implement the same functionality. Has anyone
ever encountered this type of problem, or can anyone see a way around
this issue?
- 2
- Announce: A new open source O/R mapping toolAnnounce:
Molly DBO: A new open-source O/R mapping tool is out.
There are many such programs out there. But this one is very
special because it's simple (no xml configuration, yay !) and has
been tested with postgres and mysql. This tool has been used
extensively in production enviroments so the generated code has
most bugs squeezed out by now.
You can check it out at:
http://www.mollypages.org/dbo/
- 3
- policy file in eclipse.Hello.
How can I declare in Eclipse the policy file (like policy.all : I don't know
if that's matter, but I have version 3.3) ?
Thanks :)
- 4
- Sun's WTK2.5 is asking for permission to contact network every timeI've just started using the final release of Sun's wireless toolkit
(WTK) 2.5. It's asking for permission to contact the network each and
every time network access happens - I'd like to switch it to asking only
once times (or never, if possible), but can't find the option in the
docs or via the tools in WTK2.5/bin. Can anyone shed any light on this?
thanks,
lex
- 5
- edit jtable with enteri am having a problem with jtable which i was unable to solve for a
last couple a days. i think there needs to be much more docs on some
tricky uses of jtable than basic JTable/TableModel usage. so far i
managed to move to the next cell when i press enter (right hand side,
instead of moving down).
i'd like to start editing in the next cell after moving from previous
cell. so, if i was in editing mode in some cell, enter should bring me
to the next cell with caret blinking in it. of course, if i wasn't
editing some cell i don't want to edit next cell.
basicly, i want to make "row edit session", for example user starts
editing a cell with f2, and as long as he press enter he edits next
cell, until he reaches the end of the row and then changes are
commited to database, just like M$Access and SQLserver does. i think i
can do this myself, all i need is little help to start edit next cell
if user moves from previous cell. i checked BasicTableUI source, and
as i see i should get the editor component and request focus on it.
but i am stuck with that.
thanks!
- 6
- Beginner, this will be a quick fix, so please check it out!!Hi, extreme noob here (less than one week of Java exerience, or any
programming exp)
This program i am writing from a book is suppose to ask the question
"How many gumballs? How mand kids? " , and then allow the user to
input the 2 answers. for example : 80 4
but it doesn't ask that question, it just answers without asking! any
help... ? this is from the Beginner Programming with Java for Dummies
- 2nd Edition. I typed it straight out of the book, and checked it
vary carefully. the output im currently gettins is... "Each kid gets 6
gumballs"
import java.util.Scanner;
class KeepingMoreKidsQuiet {
public static void main(String args[]) {
Scanner myScanner = new Scanner(System.in);
int gumballs;
int kids;
int gumballsPerKid;
System.out.print("How many gumballs? How many kids? ");
gumballs = myScanner.nextInt();
kids = myScanner.nextInt();
gumballsPerKid = gumballs / kids;
System.out.print("Each kid gets ");
System.out.print(gumballsPerKid);
System.out.println(" gumballs.");
}
}
- 7
- Strange problem!!(it is, atleast to me!!)Although, this is not a programming or development problem instead its
an end user problem which im facing and thought programmers /
developers could help.
I have Win XP SP2, JRE 1.5 installed with IE. Now for certain sites my
applets dont refresh after i click them (well ofcourse i click where a
click is expected :) this happens when i connect using my cable
broadband connection.
(I am connected to a local provider via LAN who provides me connection
to the primary ISP). On the other hand evrything works as expected
when i use dial up connection(using the phone line). Ive tried with
many browsers and it doesn work. Ive tried everything i could. And the
same site works well at my frnds place who has the same broadband ISP
but hes on a different LAN and rest all settings are the same.
The error i see on the console- " java.lang.NullpointerException Could
not send message".
I know the error wouldn be of much use but hope the explanation of the
problem may have some solutions.
Kindly help me.
- 8
- jsp - fetching fresh inserted data - reload issue?hi ng,
i have a form, where a user can input some data.
after pressing submit, the controller.jsp makes some
validations and shall list up this new entry.
in short, my problem is, that this newest entry is
not shown - but is correctly inserted into the db.
+ form.jsp : holds the form
+ controller.jsp : inserts form data into db,
and queries the db to show the newest entry.
after refreshing the site by hand, the newest entry
is listed, BUT also in the db (duplicate in db!).
i tried some java script solutions, top.mainFrame.location.reload()
and adding some META-TAG in the HEAD-Tag of HTML, but no
effects...
feedback is appreciated, thanks in advance.
with regards,
jonas
- 9
- web page and image processingHello,
I need to do the following. Given an URL I need to produce a thumbnail
of the webpage. If you did something similar in the past, can you
please give me some pointers?
Thank you,
Nadina
- 10
- Struts & JSTL <c:out>Greetings:
Relative newcomer to Struts and JSTL. My question is about using
<c:out>, pageContext, and request.
My experience has been doing to following in an appropriate action
class. Setting an object as an attribute of the request in the execute
method of the Action Class:
request.setAttribute("object1", Obj1);
Then in the corresponding JSP, pulling the object off the request and
casting it for use:
<% Obj1 local_Obj1 = (Obj1)request.getAttribute("object1");
Then being able to use dot notation to access methods of Obj1.
My question is that with JSTL <c:out> the object needs to be on the
pageContext. Do I need to explicitly set this? If so where? How does
this tag work in this situation?
Any help on the matter is greatly appreciated.
Thank you,
Tim Morrissey
- 11
- Unc path on IntellijHi
Is there a I can add unc path when ading Jar/Directory to Module
Libraries on Intellij ?
- 12
- A question about Java ThreadI see a code like this:
in a Thread:
--------------------------
public void run() {
Thread currentThread = Thread.currentThread();
while (thread == currentThread) {
try {
repaint();
thread.sleep(100);
}
catch (InterruptedException ex) {
}
}
}
---------------------------
what's the "while (thread == currentThread) " codes mean?
what is it used for?
Thank you in advance.
- 13
- Reading from URLConnection stops at JavaScript alert callHi all,
when I post form content to a server (HTTPS protocol) using a
URLConnection and then reading the servers response using a
BufferedReader, the reader seems to stop just before reading the code
for a JavaScript alert. The code for reading the response looks like
this:
in = new BufferedReader(
new InputStreamReader(connection.getInputStream()));
stbResult = new StringBuffer(5000);
while ((sResult = in.readLine()) != null) {
stbResult.append(sResult);
}
When accessing the same site with a browser a dialog pops up at the
crucial point. After clicking away the alert the rest of the HTML page
gets loaded by the browser.
When looking at the code of the HTML page later on, I can see that the
response read by my java app ended just before the JavaScript code:
<SCRIPT LANGUAGE="JavaScript">alert("xyz");</SCRIPT>
I need to read in the whole page including the alert message. How can
I get my java app to read in the JavaScript code within the HTML page
(no problem occured with the JavaScript code in the header) and the
remaining HTML code?
Thanks for thinking about this one!
Ralf
- 14
- Shoes,Nike Discount Shoes,( paypal accept ) ( www.gotoorder.cn )Nike Cheap Shoes,footwear, Sports ( paypal accept ) ( www.gotoorder.cn )We are the professional and serious holesaler of brand products such as shoes clothing handbags sunglasses hats belts and so on We ha e man brands such as nike adidas puma Gucci North face All goods are ith best ser ice highest qualit competiti e price and safe timel deli err If ou are interested in these goods don t hasitate to cantact us please our ebsite: http: top saler cn MSN email : top saler@hotmail com Ma 90 Sneakers pa pal accept gotoorder cn Nike Air Ma 91 Supplier pa pal accept gotoorder cn Nike Air Ma 95 Shoes Supplier pa pal accept gotoorder cn Nike Air Ma 97 Trainers pa pal accept gotoorder cn Nike Air Ma 2003 Wholesale pa pal accept gotoorder cn Nike Air Ma 2004 Shoes Wholesale pa pal accept gotoorder cn Nike Air Ma 2005 Shop pa pal accept gotoorder cn Nike Air Ma 2006 Shoes Shop pa pal accept gotoorder cn Nike Air Ma 360 Catalogs pa pal accept gotoorder cn Nike Air Ma Ltd Shoes Catalogs pa pal accept gotoorder cn Nike Air Ma Tn Men s Shoes pa pal accept gotoorder cn Nike Air Ma Tn 2 Women s Shoes pa pal accept gotoorder cn Nike Air Ma Tn 3 Customi e pa pal accept gotoorder cn Nike Air Ma Tn 4 Shoes Customi e pa pal accept gotoorder cn Nike Air Ma Tn 6 Suppl pa pal accept gotoorder cn Nike Sho NZ Shoes Suppl pa pal accept gotoorder cn Nike Sho OZ Sale pa pal accept gotoorder cn Nike Sho TL Store pa pal accept gotoorder cn Nike Sho TL 2 Shoes Store pa pal accept gotoorder cn Nike Sho TL 3 Distributor pa pal accept gotoorder cn Nike Sho Bm Shoes Distributor pa pal accept gotoorder cn Nike Sho Elite Shoes Manufacturer pa pal accept gotoorder cn Nike Sho Monster Manufacturer pa pal accept gotoorder cn Nike Sho R4 Running Shoes pa pal accept gotoorder cn Nike Sho R5 Mens Shoes pa pal accept gotoorder cn Nike Sho Ride Womens Shoes pa pal accept gotoorder cn Nike Sho Ri al Shoes Wholesaler pa pal accept gotoorder cn Nike Sho Energia Wholesaler pa pal accept gotoorder cn Nike Sho LV Sneaker pa pal accept gotoorder cn Nike Sho Turbo Suppliers pa pal accept gotoorder cn Nike Sho Classic Shoes Suppliers pa pal accept gotoorder cn Nike Sho Dendara Trainer pa pal accept gotoorder cn Nike Air Jordan 1 Seller pa pal accept gotoorder cn Nike Air Jordan 2 Shoes Seller pa pal accept gotoorder cn Nike Air Jordan 3 Collection pa pal accept gotoorder cn Nike Air Jordan 4 Shoes Collection pa pal accept gotoorder cn Nike Air Jordan 5 Chaussure Shoes pa pal accept gotoorder cn Nike Air Jordan 6 Catalog pa pal accept gotoorder cn Nike Air Jordan 7 Shoes Catalog pa pal accept gotoorder cn Nike Air Jordan 8 Customi ed pa pal accept gotoorder cn Nike Air Jordan 9 Shoes Customi ed pa pal accept gotoorder cn Nike Air Jordan 10 Wholesalers pa pal accept gotoorder cn Nike Jordan 11 Shoes Wholesalers pa pal accept gotoorder cn Nike Air Jordan 12 Factor pa pal accept gotoorder cn Nike Air Jordan 13 Shoes Factor pa pal accept gotoorder cn Nike Air Jordan 14 Shoes Sell pa pal accept gotoorder cn Nike Air Jordan 16 E porter pa pal accept gotoorder cn Nike Air Jordan 17 Shoes E porter pa pal accept gotoorder cn Nike Air Jordan 18 Offer pa pal accept gotoorder cn Nike Air Jordan 19 Shoes Offer pa pal accept gotoorder cn Nike Air Jordan 20 Manufacture pa pal accept gotoorder cn Nike Jordan 21 Shoes Manufacture pa pal accept gotoorder cn Nike Air Force 1 Lo Director pa pal accept gotoorder cn Air Force 1 High Shoes Director pa pal accept gotoorder cn Nike Air Force 1 Custom Importer pa pal accept gotoorder cn Air Force 1 Dollar Shoes Importer pa pal accept gotoorder cn Nike Air Force 1 Clear Sales pa pal accept gotoorder cn Air Force 1 Car ing Shoes Sales pa pal accept gotoorder cn Timberland Boots High Offers pa pal accept gotoorder cn Timberland Boots Lo Sell pa pal accept gotoorder cn Timberland Boots Mid Shoes Bu er pa pal accept gotoorder cn Timberland Boots Womens Bu er pa pal accept gotoorder cn Adidas Good Year Bu pa pal accept gotoorder cn Adidas Running Shoes Bu pa pal accept gotoorder cn Adidas Football Shoes Selection pa pal accept gotoorder cn Adidas Basketball Shoes Discount pa pal accept gotoorder cn Adidas 35 Years 35th Anni ersar pa pal accept gotoorder cn Adidas T MAC 3 5 4 5 5 6 pa pal accept gotoorder cn Adidas 35 Years 35th Anni ersar pa pal accept gotoorder cn Jordans Wholesale pa pal accept gotoorder cn Cheap Jordans Wholesale pa pal accept gotoorder cn Jordans Retro Wholesale pa pal accept gotoorder cn Air Jordans Wholesale pa pal accept gotoorder cn Nike Shoes Wholesale China pa pal accept gotoorder cn Discount Jordans Price Wholesale pa pal accept gotoorder cn Wholesale Nike Distributor pa pal accept gotoorder cn Wholesale Nike Sneaker pa pal accept gotoorder cn Wholesale Nike Air Force 1 pa pal accept gotoorder cn Air Clear Force One Wholesale pa pal accept gotoorder cn Nike Air Force Wholesale pa pal accept gotoorder cn Bu Jordans Wholesale pa pal accept gotoorder cn Wholesale Nike Tennis Shoes pa pal accept gotoorder cn Jordans Retro Wholesale pa pal accept gotoorder cn Wholesale Kid Jordans pa pal accept gotoorder cn Wholesale Nike Dunk pa pal accept gotoorder cn Authentic Jordans Wholesale pa pal accept gotoorder cn Nike Shoes Wholesale China pa pal accept gotoorder cn Wholesale Custom Jordans pa pal accept gotoorder cn Air China Jordans Wholesale pa pal accept gotoorder cn Jordans Retro Wholesale pa pal accept gotoorder cn Nike Air Jordan Wholesale pa pal accept gotoorder cn Nike Golf Wholesale pa pal accept gotoorder cn Wholesale Jordans pa pal accept gotoorder cn Wholesale Nike Sho pa pal accept gotoorder cn Wholesale Basketball Shoes Nike pa pal accept gotoorder cn Air Jordans Price Wholesale pa pal accept gotoorder cn Jordans Kid Wholesale pa pal accept gotoorder cn Wholesale Air Force One And Jordans pa pal accept gotoorder cn Jordans Shoes Wholesale pa pal accept gotoorder cn Wholesale Air Jordans pa pal accept gotoorder cn Air Jordans At Wholesale Price pa pal accept gotoorder cn Wholesale Nike Tennis Shoes pa pal accept gotoorder cn Wholesale NIKE Sneakers pa pal accept gotoorder cn Nike factor pa pal accept gotoorder cn Nike shop pa pal accept gotoorder cn Nike store sale and Wholesale all of Nike stock Shoes e ha e man t pe of NIKE Sneakers :Nike discount Shoes pa pal accept gotoorder cn Nike cheap Shoes Nike stock Shoes pa pal accept gotoorder cn Nike Trainers Nike Sneakers pa pal accept gotoorder cn Nike Running Shoes Nike Basketball pa pal accept gotoorder cn Shoes Nike Discount Shoes pa pal accept gotoorder cn Nike Cheap Shoes foot ear Sports pa pal accept gotoorder cn Shoes Nike Shoes Wholesale si es include pa pal accept gotoorder cn Nike men s Shoes Nike pa pal accept gotoorder cn omen s Shoes Nike mens Shoes pa pal accept gotoorder cn Nike omens Shoes Nike men Shoes Nike pa pal accept gotoorder cn omen Shoes Nike kids Shoes pa pal accept gotoorder cn Nike child Shoes Nike discount pa pal accept gotoorder cn Shoes Nike in pa pal accept gotoorder cn
- 15
- Log4J problemHi everyone,
Consider the following piece of code:
Logger mylogger = Logger.getLogger(Log4JFileDeletionTest.class);
public Log4JFileDeletionTest() throws Exception
{
FileAppender fapp = new FileAppender(new
XMLLayout(),"/tmp/Log4JFileDeletionTest.log",true);
mylogger.setLevel(Level.DEBUG);
mylogger.addAppender(fapp);
mylogger.info("This is a test log");
Thread.sleep(7000);
mylogger.info("This is after deleting the file");
}
If during the Sleep(), I delete the log file, then none of the
subsequent log statements re-create the file. It remains deleted, no
exceptions get thrown and all the logs are lost.
Is there any solution to this, other than modifying the log4J code ?
Thanks in advance.
|
|
|