 |
 |
Index ‹ java-programmer
|
- Previous
- 5
- Spidering and strippingIs it a difficult task to develop a Java agent that spiders a web site,
copies the text, and strips the HTML tags?
Thanks.
- 5
- 6
- crazy pooling jdbc driver on msaccessI swear that when using the Jakarta commons pooling code with the Sun
JDBC ODBC driver and Microsoft Access I have instances of it closing a
connection on me randomly.
Actually not so randomly - seems to happen regularly but not at the
same spot.
ugh, so tricky to troubleshoot...
- 7
- shrinkwrap JavaRoedy Green <email***@***.com> wrote or quoted:
> Java detractors seem to think Java is unsuited for writing anything
> visually complex.
>
> Take a peak at this stock market app. I think the authors went
> overboard with complexity, but it shows you what is possible and just
> how fast rendering can be. My guess is they use clipregions for
> re-rendering just two tall slivers to get that speed.
>
> http://www.downloadquotes.com/en/applet.phtml?key=Demo&id=3097
It's not exactly doing very much.
Give me http://www.ibiblio.org/lifepatterns/ any day ;-)
--
__________
|im |yler http://timtyler.org/ email***@***.com Remove lock to reply.
- 7
- Clever JNI solution neededOn Thu, 25 Mar 2004 20:01:32 -0500, Jim Sculley
<email***@***.com> wrote:
> I'm wrapping some Java around a large C++/COM API for a Windows
> application via JNI. I cannot see a way to implement one particular
> feature of this API, so I'm posting here to see if it is:
>
> a) impossible
> b) possible with a little cleverness
> c) trivial and I have simply missed something obvious.
>
> The API includes a function to add menu items to a Windows application.
> The COM API call in C++ looks like this:
>
> AddMenuItem("SomeMenuItem@SomeMenu","someFunctionToCall");
>
> The 'someFunctionToCall' parameter is the name of the method to be
> called in the native code. I cannot see a way to implement this on the
> Java side since the native code doesn't even know that Java is involved.
>
> The most I can do is point the native code to a single function for all
> added menu items, but then I have no way of knowing which menu item's
> action needs to be performed.
>
> I suspect that this is impossible but if anyone believes otherwise, feel
> free to comment.
How about generating the necessary C++ functions at build time, that all
just delegate to their Java counterparts? Shouldn't be too hard with Ant
and XDoclet, I reckon. Just tag the relevant methods and use a custom
doclet.
Michiel
- 11
- Locator2 and SAX parsersHello:
I'm using the org.xml.sax JAVA API to manage a XML file.
I want to know if it exists a SAX parser ( SAX driver ) that supports
Locator2 interface (in org.xml.sax.ext package ).
My objetive is to get the encoding property of a XML file, and that
interface has a getEncoding() method.
Anyone SAX parsers that I've probed don't supports this interface (xerces,
piccolo, oracle , aelfred, ... )
I would like to know if somebody has used this JAVA interface (Locator2).
Thaaaaaanks
- 11
- HELP!! Iam new in JAVAI am geting this error in JGRASP:
Lab01.java:2: package edu.pace does not exist
How do I fix it......????
- 11
- Threading In Java BeansHello, I was trying to find some information regarding Concurrency in
J2EE. In my application I simply put a lock on the session and the
accessor/mutator methods inside the bean. Is this the proper way of
ensuring data consistency in a large scale web site. Any opinions or
links would be appreciated.
thanks
- 11
- Problem with Look and FeelI have an applet in which i set the look and feel to that of the system.
This works when the applet is loaded but when the user selects another
page and then returns to the applet the look and feel has changed.
I have no ideas as to why this is happening.
Any help would be much appreciated.
Regards
Clive
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
- 11
- Media Framework presenceHello,
Applications produced by my project, sometimes (not always) relys on
the presence of the Media Framework on the machine of the final user.
When an application created with my project uses Media framework, is
launched on a machine where JMF is not installed, it crashes badly
(hard reset necessary).
So my question : is there a way to detect if the JMF is installed on
the machine of the final user?
Thanks for you input,
Francois
- 12
- [ANT] apply-task and relative attribute (gettext-like internationalisation/localisation)Hello,
We are currently trying to internationalise Jmol with gettext. Therefor I
wrote an ant-build-script to generate everything necessary to allow the
typical use of gettext. You will find it here:
http://cvs.sourceforge.net/viewcvs.py/jmol/Jmol/build-i18n.xml?rev=1.7&view=auto
or http://pastebin.com/291187
But I have a minor problem. At the moment xgettext gets all files relative
to the src-directory (${basedir}/src), which leads to such .po(t)-file
location-entries:
#: org/jmol/applet/Jmol.java:118
but I would like to have entries relative to the directory, where the .pot
and .po files reside (${basedir}/src/org/jmol/translation/Jmol):
#: ../../../jmol/applet/Jmol.java:118
Is there anyone with an idea, how this can be realized (I wasn't
successful in my last tries)? You can also reach me via IRC
(irc.freenode.net, #cdk) or ICQ (#148295333) for a direct discussion
and/or work on the file at pastebin.com. Of course, I will also send all
discussion results to the group.
BTW: Ant is version 1.6.2.
Regards, Daniel
--
GnuPG-ID 4F981411 ~~ http://www.wgdd.de/
Usenet-FAQ http://www.afaik.de/usenet/faq/ & http://got.to/quote
de.sci.chemie http://www.dsc-faq.de/ & http://www.chemie-webverzeichnis.de/
de.comp.security.*-FAQs http://www.linkblock.de
- 14
- 14
- loop through all controls on a panel without hardcodingHello,
In other environments (Delphi and .NET have things like ComponentCount
and FindControl) I've used prior to Java, I could automatically find
all the controls (or only the controls of a certain type, like
checkboxes for example) on a form by passing that form off to some
built in methods which know how to iterate through all the controls
contained within that form.
I haven't been able to find an equivalent feature in Java. In my Java
app, if I have 5 checkboxes on a panel, I would prefer to pass just
the panel to my method for processing (and have checkbox state
determined there) rather than myMethod (cb1, cb2, cb3, cb4, cb5).
How is this done in Java?
Thanks!
- 14
- java/53790: Let tomcat41ctl start java -server
>Number: 53790
>Category: java
>Synopsis: Let tomcat41ctl start java -server
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-java
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Jun 26 09:40:00 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Ernst de Haan
>Release: FreeBSD 4.8-STABLE i386
>Organization:
FreeBSD Project
>Environment:
System: FreeBSD zaphod.euronet.nl 4.8-STABLE FreeBSD 4.8-STABLE #16: Mon Jun 16 14:38:13 CEST 2003 email***@***.com:/usr/obj/usr/src/sys/ZAPHOD i386
>Description:
Wojtek Sobczuk is requesting the following:
i believe that tomcat41ctl should start tomcat using: java -server, and
not java -client (which is the default).
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
- 15
- china wholesale chanel adidas prada sneakers UGG timberland boots,cheap nike jordan 11 15 21 22 23 shoes
( WWW.NikeChinaWholesale.Com ) china wolesale nike air force 1's, nike
air force one, air force one sneakers, nike air force ones air
forces, Nike Air Force 1 Premium (Barkley), Nike Air Force One Premium
'07, Nike Air Force One Mid '07, Nike Air Force One Supreme Max Air,
Nike Air Force One '07 (Auburn), Nike Air Force One '07, Nike Air
Force One Supreme Max Air '07, Nike Air Force One Supreme Max Air,
Nike Air Force One '07, Nike Air Force One Low, Nike Air Force One
Premium '07, Nike Air Force One '07, Nike Air Force One Mid Premium
(Barkley), Nike Air Force One Supreme MCO CB, Nike Air Force One '07,
Nike Air Force 1 Low (Barkley)
Wholesale Air Jordan 12 Fusions
china wholesaler Air Jordan 5 x AF1 Fusions Black/Red Sneaker
wholesale Air Jordan Force 12 Fusions
Air Jordan V x Air Force 1 Fusion
Nike Air Jordan Force XII Fusion
Air Jordan XII x AF1 Fusion www.nikechinawholesale.com
Nike AIR FORCE 1 AIR JORDAN V fusions
Nike Air Jordan XII Fusions
Nike AF1 Air Jordan Fusions wholesale
Nike Air Jordan Fusions XII Mid
Men's Nike Air Jordan Fusion XII Mid
Air Jordan "Fusions": AJ XII x Air Force 1
Sell Air Jordan 12 fusion sneakers
Air Jordan 5 (V) x Air Force 1 (One) - Fusion
air jordan 12 air force one 1 fusion www.nikechinawholesale.com
Air Jordan fusion XII
Wholesale cheap jordans and air force ones site at
wholesale Air Jordan 12 Fusion,air jordan 5 x air force 1 Fusion
Wholesale New Air Jordan 12 Fusion,Air
Jordan 12 X Air Force 1 Wholesale New Air Jordan 12 Fusion,Air Jordan
12 X Air Force 1
cheap Air Jordan 5 x Air Force one Fusion www.nikechinawholesale.com
discount Air Jordan 5 and Air Force one Fusion www.nikechinawholesale.com
Air Jordan 12 x Air Force One china online store
Air Jordan V x Air Force 1 Fusion www.nikechinawholesale.com
Air Jordan 12 x Air Force Ones Fusion
Nike AF1 x Air Jordan 5.
Nike Air Force Ones Shoes & Air Jordan 5. www. nikechinawholesale. com
wholesale Air Jordan 5 (V) x Air Force 1 Fusion
|
| Author |
Message |
aaronfude

|
Posted: 2006-11-15 0:04:00 |
Top |
java-programmer, JWS app does not update.
Hi,
I'm familiar with the rules for JWS automatics updates, but my machine
doesn't seem to follow those rules and the application is frequently
stale (even when redeployed off the web).
What could be the cause of this?
For example, does one need to restart one's browser?
Restart one's computer?
Clear out temporary files?
Thanks!
Aaron Fude
|
| |
|
| |
 |
Andrew Thompson

|
Posted: 2006-11-15 0:19:00 |
Top |
java-programmer >> JWS app does not update.
email***@***.com wrote:
> Hi,
>
> I'm familiar with the rules for JWS automatics updates, but my machine
> doesn't seem to follow those rules and the application is frequently
> stale (even when redeployed off the web).
There are any number of reasons a JWS app.
might not update as you might expect.
Some of them are in the Java Plug-In configuration,
others in the JNLP*, still others dependant on network
availability (JWS will only ever wait 'so long' before
abandoning a server check and using cached
resources)
> What could be the cause of this?
See the JWS Plug-In config., *post the URL
to your JNLP, ..and check the network connection
and server speed..
> For example, does one need to restart one's browser?
No.
> Restart one's computer?
No.
> Clear out temporary files?
Yes. But only when done ..
- From the Java control panel (not the browser's cache)
- Using the JWS (command line) -uninstall parameter.
Now - since I've provided (some) help on your JWS
matter, I could use some help (at least test results)
on mine. Details here..
<http://forum.java.sun.com/thread.jspa?threadID=785224&tstart=0>
Andrew T.
|
| |
|
| |
 |
John Maline

|
Posted: 2006-11-15 1:16:00 |
Top |
java-programmer >> JWS app does not update.
email***@***.com wrote:
> I'm familiar with the rules for JWS automatics updates, but my machine
> doesn't seem to follow those rules and the application is frequently
> stale (even when redeployed off the web).
We had problems with Java WebStart refreshing when using the
offline-allowed element in our JNLP file. It appeared that that
configuration caused the version check to time out excessively quickly.
If that check doesn't complete, JWS assumed we were up-to-date.
If you use offline-allowed, run an experiment without it. Of course,
your currently deployed app will have offline-allowed, and may not
update to the new version lacking offline-allowed. That's a bootstrap
problem that I'll leave as an exercise for the reader...
Now if you actually want offline-allowed, then it's just an artificial
test to see if that's your problem.
Post back if that helps.
Regards,
John
|
| |
|
| |
 |
Oliver Wong

|
Posted: 2006-11-15 3:16:00 |
Top |
java-programmer >> JWS app does not update.
"Andrew Thompson" <email***@***.com> wrote in message
news:email***@***.com...
>
> I could use some help (at least test results)
> on mine. Details here..
> <http://forum.java.sun.com/thread.jspa?threadID=785224&tstart=0>
Using Java 1.6.0-beta2 on WinXP.
If I double click on a sss file, I get asked whether I want to let your
app have read access. If I say yes, the app does not actually open the sss
file I double clicked on, but rather, it presents a file open dialog. If I
select the file and open it, the program continues loading normally. If
instead, I click cancel, the program is frozen, and click on the X in the
top right corner does not quite the program. I have to kill the process from
the OS.
Either way, the same problem happens on my system as you've described:
The "Don't ask me again" checkbox doesn't seem to do anything. I'm always
asked whether I want to allow read access.
- Oliver
|
| |
|
| |
 |
Andrew Thompson

|
Posted: 2006-11-15 11:27:00 |
Top |
java-programmer >> JWS app does not update.
Oliver Wong wrote:
> "Andrew Thompson" <email***@***.com> wrote in message
> news:email***@***.com...
> >
> > I could use some help (at least test results)
> > on mine. Details here..
> > <http://forum.java.sun.com/thread.jspa?threadID=785224&tstart=0>
>
> Using Java 1.6.0-beta2 on WinXP.
>
> If I double click on a sss file, I get asked whether I want to let your
> app have read access. If I say yes, the app does not actually open the sss
> file I double clicked on, but rather, it presents a file open dialog.
That is non-optimal but expected. The only way to access
a File(Contents) in sandboxed JWS is via the FileOpenService,
which introuduces the unnecessary dialog.
Even worse, on my system (Winx XP Pro with Java 1.5.0_09)
none of the file names I suggest appear in the file save service,
the 'I understand these extensios' suggestions are largely ignored,
and while the specific file I am interested in might appear in the
dialog, but is never selected..)
>...If I
> select the file and open it, the program continues loading normally. If
> instead, I click cancel, the program is frozen, and click on the X in the
> top right corner does not quite the program.
My bad. I'll need to fix that in very next version.
>...I have to kill the process from
> the OS.
>
> Either way, the same problem happens on my system as you've described:
> The "Don't ask me again" checkbox doesn't seem to do anything. I'm always
> asked whether I want to allow read access.
:-( Thanks..
Andrew T.
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- replace scrollbar by buttonHi everybody
I would like to suppress scroll bar and replace it by narrow, let
explain me.
I' ve got a panel with flowlayout with many component, textarea,
combobox, button. it is impossible to see all.
I can use scroll panel but it's not nice in my opinion
So I would like a button with an arrow left, at the left of the panel
and a button with an arrow right at the right of the panel, everytime
visible
click on arrow left, let see the lefter components, click on arrow
right, let see the righter components. In brief I would to navigate on
components using the arrows. I hope it's clear.
My first idea is to create a parent panel with border layout, on west
and east the navigate button and in the center will contains my components.
Do you thing it's a good a way ?
Do you know some sources that always do it ?
Thank you helping me
Antoine
- 2
- Constructors + Information HidingI have a random question about a constructor having access to a private
instance variable from an object of the same type.
Class:
public class VarTest {
private int x;
private String s;
public VarTest(){
x = 10;
s = "Testing";
}
public VarTest(int i, String str){
x = i;
s = str;
}
//I know why this would be a useful constructor,
// but why is this allowed if the instance variables for
// vt are private?????
public VarTest(VarTest vt){
x = vt.x;
s = vt.s;
}
public int getX(){
return x;
}
public String getS(){
return s;
}
}
Test Class:
public class Tester{
public static void main(String args[]){
VarTest var1, var2;
var1 = new VarTest(34, "Working?");
var2 = new VarTest(var1);
System.out.println("var2 - x:\t" + var2.getX());
//var2.getX() display 34... Why can is get that from var1?
}
}
Thanks In Advance Folks,
Josh
- 3
- Positioning dialogboxes created with JOptionPaneThe dialog boxes created using JOptionPane like showConfirmDialog,
showInputDialog gets displayed in the centre of the screen. I need to change
its position. How to do this?
These methods return int or none.
How to get access to the dialog boxes so that they
can be positioned by using appropriate method? or I need to create a custom
dialog box so that they can be positioned?
- 4
- how do i paste into eclipsei just downloaded eclipse 3, but i can't seem to paste text into it. all it
gives me is the first character. is there a way i can paste, because it
would be a headache to type out everything needed
- 5
- AWT -> Swing, blocked dispatch thread
Ok, so I'm finally modernizing my code and switching everything from AWT
to Swing. I keep getting errors like the one below. What might I be
doing that would be blocking the event dispatch thread? Or maybe I'm
doing something else? Is there some common noob mistake that causes
this?
Thanks.
Event
java.awt.event.MouseEvent[MOUSE_PRESSED,(17,93),mods=16,clickCount=1] on
frame0 not handled after 30 seconds. Are you blocking the event
dispatch thread?
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Thread.java:1004)
at
com.apple.mrj.internal.awt.basepeers.EventHandlingComponentPeer.pumaWorka
roundPostEvent(EventHandlingComponentPeer.java:931)
at
com.apple.mrj.internal.awt.basepeers.EventHandlingComponentPeer.mousePres
sed(EventHandlingComponentPeer.java:680)
at
com.apple.mrj.internal.awt.frames.SimpleFramePeer.handleClick(SimpleFrame
Peer.java:1729)
at
com.apple.mrj.internal.awt.framehosts.CarbonWindowFrameHost.handleClick(C
arbonWindowFrameHost.java:1113)
at
com.apple.mrj.internal.awt.framehosts.CarbonWindowFrameHost.handleClickCo
ntentRgn(CarbonWindowFrameHost.java:1073)
at
com.apple.buckyball.app.WindowEventHandler.handleEvent(WindowEventHandler
.java:101)
at
com.apple.buckyball.app.EventHandler$Adapter.EventHandler(EventHandler.ja
va:248)
--
Please take off your shoes before arriving at my in-box.
I will not, no matter how "good" the deal, patronise any business which sends
unsolicited commercial e-mail or that advertises in discussion newsgroups.
- 6
- To class or to methodI have a class
public class CascadeAction {
...
public CascadeAction(JDesktopPane ... ) {
}
...
public void setIgnoreIconified(...) {
...
}
public void actionPerformed(ActionEvent evt) {
...
}
...
}
Instead of having a class, is the proper way to create a method :
public void cascadeFrames(JDesktopPane desktopPane, int layer, boolean
ignoreIconified) {
...
}
I don't think I should place this method in a subclass of JDesktopPane
since doing so will make it impossible for other users to use the
cascade feature if they already have their own custom JDesktopPane.
Please advice me on the proper way.
- 7
- any easy way to write out a XML DOM object to file?Hello!
I am using Document and DOM to hold a XML file, and make some changes
to the Document. After that, I just wonder is there any easy way to
write the modified XML file back to disk? (loop all the nodes and
print them out is one way of course, any other better way?)
The piece of node is:
String filename="mytest.xml";
DocumentBuilderFactory factory =
DocumentBuilderFactory.newInstance();
// Create the builder and parse the file
Document doc = factory.newDocumentBuilder().parse(new
File(filename));
// changes the doc, add, edit nodes, etc.
Now, I want to get the updated xml file from "doc", what to do?
Anything like doc.writeAsXMLFile("newFile.xml")?
Thanks and happy holiday. :-)
- 8
- New book on web services and Apache Axis availableHi,
A new book "Developing Web Services with Apache Axis" is now available.
If you'd like to learn to create web services (in particular, using
Apache Axis) and make some sense of various standards like SOAP, WSDL,
JAX-RPC, SOAP with attachments, WS-Security, XML Encryption and XML
Signature, then please check it out at http://www.agileskills2.org/DWSAA
- 9
- How to validate XSLT output in java?Howdi,
This should be simple but I am lost in the maze of java xml/xsl
classes. Given a dom Document and an xsl Templates object I want to
run the document through a transformer and validate the output against
a schema and then return the output xml as another Document.
At the moment the only way I can work out how to do this is by
writing the xslt output to a File, then parsing it back in from the
File with validation enabled.. How do I do it directly? Here is where
I have got too. I am working with Java 1.4.2 default implementation.
Regards,
Damon.
====================
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.Templates;
import javax.xml.transform.Transformer;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.sax.SAXResult;
import org.w3c.dom.Document;
import org.xml.sax.InputSource;
public class ValidatingTransform {
public static Document transformXMLDocumentWithValidate(Document
in,
Templates template) throws Exception {
if (in == null)
throw (new Exception("Input document is null"));
// What goes here?
SAXResult result = null;
// Get a transformer from the template
Transformer transformer = template.newTransformer();
transformer.transform(new DOMSource(in), result);
// What goes here??
InputSource source = null;
// Parse the output into a dom with validation
// I am assuming the XSLT output will contain a valid
schemaLocation
DocumentBuilderFactory dbFactory =
DocumentBuilderFactory.newInstance();
dbFactory.setNamespaceAware(true);
dbFactory.setValidating(true);
DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
Document docResult = dBuilder.parse(source);
return docResult;
}
}
- 10
- Calling Stored procedure within the Orcale Server or outside clientHi all,
I have liitle confusion about the stored procedures. I am doing the
Database purging using stored procedures in Oracle 9g. can you tell is
it better to call stored procedures from outside client which i will
take care of the flow in which stored procedues are called or call it
from JAVA STORED PROCEDURS loaded in the database, which will take
care of flow in which stored procs will get executed which inturn is
set by UNIX CRON
- 11
- Typing number from idle screenHi All,
Can anyone give me a sample code in J2ME how to bring a screen such
that you can type in numbers in the idle screen to make a call?
- 12
- mail parser ?Hi
I am programming a smtp proxy and i would like to parse the email (in
rfc 822 format). Does a library already exist ?
many thanks
- 13
- Where to find web game programmer?Where is the best place for me to find a java programmer to write a
few games for a website? These would be mostly casino style games
that would interact with our existing database to take advantage of
the points/tokens our users already have obtained.
Please email me if interested, or, send me to the best place to find
such a person or group of people..
c b r o m l e y @ g m a i l . c o m
- 14
- 15
- SOLVED: How to read MANIFEST.MF from pluginHi,
here is a way to access "your" manifest, i.e. the manifest of the jar
your class is loaded from. It only works for SunPlugin. In other cases
you may have another ClassLoader not supporting a public
findResource-method. The always public getResource unfortunatly
prefers to return resources returned by the parent's getResource if it
is not null. That's why you would get the manifest of rt.jar. Is there
any good reason to revert the principle 'local hides global' in case
of getting resources? Anyway, here it is:
import java.util.jar.Manifest;
import sun.applet.AppletClassLoader;
...
AppletClassLoader cl = (AppletClassLoader)
getClass().getClassLoader();
URL manifest_url = cl.findResource("META-INF/MANIFEST.MF");
Manifest manifest = new Manifest(manifest_url.openStream());
Yours,
Albrecht
|
|
|