| Underline in a JTextfield |
|
 |
Index ‹ java-programmer
|
- Previous
- 2
- Compile with gotoI have a problem that you may be able with java and since there is no
java catergory I have to post it here, when I try to compile java
source with the goto function, I try to compile it with javac.exe and
it doesn't work so I try to compile it with javac_g.exe and it comes
up with a funny message and still doesn't work. Is there a way to get
around this atill using the goto syntax, I'm javasdk1.5 or so...
- 4
- newbie question: ear's, war's, exploded directory
"Greg Williams" <email***@***.com> wrote in message
news:wiVVa.3379$email***@***.com...
>
> Im a developer - new to java, but not to my company - working on a
> project with a brand new lead. One of the first things he did was
> change the way we deploy in our development environment (all our config
> and build files are in version control, so he controls the team's dev
> enviroments). Right now it takes me ~90 seconds to see a change on my
> web server after i've begun compiling (compile, build process, etc).
> I've confronted him about this and he just says: "java is different than
> CGI, you actually have to compile it." Sure, but from what i understand
> (what I've been reading, and have been hearing from friends with years
> of experience in j2ee) ear files are generally for deployment and not
> for development. one friend said he waits under 10 seconds to see his
> changes. I want to get started figuring out how to change weblogic's
> configuration and change the way ant build's (eventhough i have very
> limited experience in this technology). I just wanted to get some
> feedback before i began. Weblogic is on my computer, i assume that i
> want to configure it to use exploded directories. would i change my ant
> build file? would using ant take too long even with this? should i
> just develop and compile on the command line within the directory (where
> web logic is looking)?
>
> I have a technical background. So, if it is not possible to speed up my
> development - eventhough I'm no expert in java i think i'd understand a
> reasonable explaination (other than "java is different than CGI").
I've worked with both, and prefer exploded directories for development.
WebLogic allows them (although it isn't well documented) so unless your lead
is policing your directory structure, use them. If your lead is policing
your directory structure, find a better job.
If you write automated unit tests first you can avoid the app server
altogether for much of development.
- 5
- A question about the Batik ApiHello all,
I have to write an application using the Batik API, but I don't know
very well how to use it. I want to draw a flow chart on a screen. Each
part of this chart has to be clickable. For the moment, I add a mouse
listener to my JSVGCanvas, and by getting the mouse's position when I
click on it, I determine what object of the screen is concerned by the
event. But this solution doesn't satisfy me because I'm afraid it will
be too long or too difficult to deal a more complicated chart...
So I want to know if it's possible to define objects (like rectangle,
ellipse, ...) on which we can add mouse listeners (like a button) and
how to do this. If you have code example to do this, or internet
address where to find information, it would be great.
- 6
- Nevermind I figured it outSorry i was using the plantInformation.setWrapStyleWord(true); and could
nto figure out why it would not work .. I compleltly missed the
plantInformation.setLineWrap(true); method.. Sorry for wasting you time.
- 8
- wholesale,sneakers ( paypal accept ) ( www.top-saler.com ) wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
wholesale,sneakers ( paypal accept ) ( www.top-saler.com
)
- 8
- What is a type error?
Marshall wrote:
> Joe Marshall wrote:
> > Marshall wrote:
> > >
> > > Consider the following Java fragment:
> > >
> > > void foo() {
> > > int i = 0;
> > > int j = 0;
> > >
> > > // put any code here you want
> > >
> > > j = 1;
> > > i = 2;
> > > // check value of j here. It is still 1, no matter what you filled in
> > > above.
> > > // The assignment to i cannot be made to affect the value of j.
> > >
> > > }
> >
> > True, but you have hidden the pointers. Semantically, the identifiers
> > i and j refer not to integers but to locations that hold integers. The
> > assignment modifies the location.
>
> What the implementation looks like shouldn't affect how we speak
> of the logical model. In the above code, there are no pointers.
>
> By your definition, "pointer" and "variable" are synonyms. That doesn't
> seem like a good idea to me. (What if i and j end up in registers?
> I have not heard it said that registers have addresses.)
You probably won't like this, but....
The example you give above is a bit ambiguous as to whether or not it
shows `true' mutation. So what do I mean by `true' mutation? The code
above could be transformed by alpha-renaming into an equivalent version
that does no mutation:
void foo() {
int i = 0;
int j = 0;
// put any code here you want
int jj = 1;
int ii = 2;
// rename all uses of i to ii and j to jj after this point.
}
Once I've done the renaming, we're left with a pure function. I claim
that this sort of `mutation' is uninteresting because it can be
trivially eliminated through renaming. Since we can eliminate it
through renaming, we can use a simplified semantics that does not
involve a `store', and use a substitution model of evaluation.
The more interesting kind of mutation cannot be eliminated through
renaming. The semantic model requires the notion of a stateful
`store', and the model is not referentially transparent: substitution
does not work. These qualities are what make mutation problematic. My
claim is that this kind of mutation cannot be had without some model of
pointers and references.
There is a further distinguishing characteristic: Can I write a
program that detects the mutation (and acts differently depending on
whether there is mutation or not)? It is unclear from your example
above whether you intended this to be possible, but certainly there is
no way for a caller of foo to tell that foo reassigns an internal
variable. If there a procedure is extrinsically a pure function, then
there is no real meaning to any `mutation' that goes on inside; there
is always a way to turn the internal mutation into a pure function
through alpha-renaming.
>
> Clearly there is *some* difference between a language which allows
> explicit pointers and thus aliasing and one that doesn't. What term
> would you use? First-class variables?
My argument to you in re this statement:
> Again, I disagree: it is posible to have mutability without
> pointers/identity/objects.
is that mutability without a notion of pointers, identity, or objects
is trivially eliminated through alpha renaming and thus isn't the
`mutability' of interest.
- 8
- env var hell - please help, J2EE_HOME, JAVA_HOME, etc.I'm a java newbie running on XP, and I'm having a hard time getting
one of my company's apps to work. I think it's my env vars.
I first downloaded NetBeans which came pre-bundled with j2sdk. I
believe it is here, C:\Program Files\j2sdk_nb\j2sdk1.4.2.
Next I'm told I'll need J2EE, so I installed Sun Appserver, and I
think the j2ee part is here, C:\Sun\AppServer\jdk.
So where should my JAVA_HOME and J2EE_HOME point to? Did I do
something bad by installing appserver to a separate directory? Is it
ok to have j2sdk and j2ee in different directories like I do?
thanks.
chris
- 8
- 11
- applet to applet communicationI have an app and the latest running on an NT4 box, and the latest
microsoft security patch has broken the applets.
Applet A opens an new browser window which contains Applet B.
Applet B can no longer get information from applet A.
Any ideas on how to get these 2 applets to communicate with each other,
in different browser windows? This is running in Netscape 4.7.
Has anyone else had this problem>
Thanks!
Gene
- 12
- useBean class attributeHi there,
I am operating with JBoss4 and Tomcat5.
Jasper throws me an exception because of an invalid value for the
class attribute.
Path is set correct also in the WAR-File.
The problem seems to be that the class isn't a bean.
Therfore I changed the errorOnUseBeanInvalidClassAttribute flag in
Tomcat to false, but that didn't help either.
Does anyone know how to handle that problem?
Cheers
- 15
- 15
- Vp of Software EngineeringWe, a few ex Columbia University, Microsoft, and Google Employee's
(and others) are developing a software and hardware solution for
children,
educators and parents. Our goal is to increase education to
children/students, while decreasing video games / PC games / online
games and website visits / cell phone activity usage. This will be
behavior modification approach to the learning experience, for
children between the ages of five and eighteen. Parents and
educators
will now have a tool that encourages learning and creative problem
solving by motivating their children to earn game / play time /
phone
time.
Parents and educators will
also have a way to control their child's/students obsession.
We will be able to now limit and/or block the amount of time played
with video
games / PC games / online activities, installing a propriety
education
portal (similar to linking to Wiki portal) and/or linking to the
school systems curriculum, which advances game play / online time /
phone time with successful completion of correctly answered
questions,
and learning modules, changing content each day and time allotted
for
continued game play. We are also creating games...
The game or online use will be blocked, using the form of a
software/hardware solution, until successful completion of tasks. We
are not only providing a service, but have created several win-win
scenarios. The child/student attention is now divided between
leisure
activity and learning transferable marketable skills through
knowledge
building by answering questions requiring creative problem solving
while blocking online use/pc and game consoles. Children or students
now have double the benefit since the education portals will shape
behavior to help them reach both their short term goals through
earning game time and long terms goals of employment or being
productive members of society.
If you're interested in working with us, please email us. We are
working in:
> - JSP/Servlet
> - Flex/Flash
> - Spring Framework
> - J2EE
> - mySQL
And other open source.
* This endeavor will be profitable for you; we
only will have a team of 12-15. We will be testing our modules soon.
My Uncle Michael Vitelli is the SVP of Best Buy, and we have top
marketing members from Google, schools and sales growing the company.
You will have to join a Google group to collaborate, we all work
regular Jobs -this currently is a part time endeavore.
Thank you for your time.
Please send contact info via our webpage w/ a brief description of
exp. Then you will be asked for a cv, if chosen. No offshore firms,
no H1B...
Regards,
Michael Vitelli
www.gamingkrib.com
- 15
- extract information fron a web pageim wanting to extract information fron a ebay web page auction. wanted is
the item number , date , cost, discription then have 3 more fields to fill
in then send all to a data base
i do reserch for a database and this type of script would really help.
if you can help please let me know via email
email***@***.com
thanks
doug
- 15
- IcedTea - a first step towards OpenJDKIcedTea is a temporary fork of OpenJDK which allows building with a free
toolchain and adding/replacing code which is not yet available under a free
license. First deb Packages for amd64 and i386 are available at
deb http://people.ubuntu.com/~doko/ubuntu/ gutsy/
deb-src http://people.ubuntu.com/~doko/ubuntu/ gutsy/
Although the packages are built on gutsy, they are installable on sid as well.
These packages target developers only. Feedback about the following topics is
appreciated:
- packaging and installation issues; the packaging is derived from the
sun-javaX packages, so the packages do have the same "features" and
bugs.
- license issues; we currently cannot upload the packages, because some
files still have non-free or no licenses. Unfortunately there doesn't
exist yet a list of problematic files.
- usability; do packages and applications build and run with the new
jre and jdk (focus on main)?
Please contact Michael Koch or me if you do want to join the packaging and
maintainance effort. Thanks for any input.
Matthias
--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com
- 15
- Internet explorer security message Hi
I have a web page with a form in it. I push the submit button
it does well another page is opened. But when I push the back button
on the toolbar to recall the previous page Internet Explorer gives a
security message saying that the previous page contains postdata and
internet explorer doesnt send it for me. So I need to push the refresh
button and a try again button to reload the previous page. Isnt this
to complicated for user. I use lots of pages which contain postdata.
So a user needs to push the refresh button many times to get the
previous page.
How do I solve this problem? Is there anyway to disable this behaviour
of internet explorer? Or should pass the form by get method instead of
post method?
Thanks
Sinan
|
| Author |
Message |
Sameer

|
Posted: 2005-5-31 2:09:00 |
Top |
java-programmer, Underline in a JTextfield
Is it possible to display underline in a JTextfield? It is possible
using styles in styled text area. But how to do it on JTextfield? What
is the related function?
-Sameer
|
| |
|
| |
 |
jonck

|
Posted: 2005-5-31 17:01:00 |
Top |
java-programmer >> Underline in a JTextfield
> Is it possible to display underline in a JTextfield? It is possible
> using styles in styled text area. But how to do it on JTextfield? What
> is the related function?
Check out the StyledEditorKit and the
JTextComponent.getActionMap().get("font-underline") action.
|
| |
|
| |
 |
usenet

|
Posted: 2005-6-3 1:26:00 |
Top |
java-programmer >> Underline in a JTextfield
Sameer <email***@***.com> wrote:
> Is it possible to display underline in a JTextfield? It is possible
> using styles in styled text area. But how to do it on JTextfield? What
> is the related function?
There is none.
Christian
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- Problem about JavaMailHi,
I'm just trying to use JavaMail and have a strange problem.
(See the code snippet below)
When running it, the exception error message is:
errorjavax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: Could not connect to SMTP host: localhost,
port: 25;
nested exception is:
java.net.ConnectException: Connection refused
the problem is in the line with //!!!!
If I comment this line out, it works fine.
The purpose of this line to invoke check_server is to
have a check first.
Who can give me some hints?
Thanks much!
================================================
import java.sql.*;
import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
/** Class handles sending email messages. */
public class email {
private static String mail_host = null;
public static void main (String[] args) {
mail_host = "mrby.8866.org"; //which is a valid mail server
if ( check_server(mail_host) ) //!!!!!
send();
}
public static void send ()
{
String to = "root@localhost";
String subject = "hello,world";
String total_message = "test email";
String from = "email***@***.com";
String host = mail_host;
Properties props = new Properties();
props.put("mail.smtp.host", host );
Session session = Session.getDefaultInstance(props, null);
try {
// create a message
Message msg = new MimeMessage(session);
msg.setFrom(new InternetAddress(from));
msg.setRecipients( Message.RecipientType.TO,
InternetAddress.parse(to) );
msg.setSubject(subject);
msg.setText(total_message);
Transport.send(msg);
System.out.println(host);
}
catch (MessagingException mex) {
System.out.println("error"+mex.toString());
}
}
// Method to check if the SMTP service on a host is available
private static boolean check_server( String host )
{
boolean flag;
Transport tr = null;
try {
Properties props = new Properties();
Session session = Session.getDefaultInstance(props,null);
tr = session.getTransport("smtp");
tr.connect(host,null,null);
flag = true;
tr.close();
}
catch (MessagingException mx) {
flag = false;
}
finally {
try {
if (tr != null) {
tr.close();
}
}
catch (MessagingException mex) {}
}
return flag;
}
}
- 2
- 3
- trying to integrate jfcUnit on MavenI have been trying with no success to add the jar jfcUnit.jar on my
maven project. the main problem is that anytime i am trying to build
it. I get the following message:
Attempting to download jfcunit.
WARNING: Failed to download jfcunit.
The build cannot continue because of the following unsatisfied
dependency:
jfcunit
On my project.xml I have defined the jfcunit dependency as follows:
<dependency>
<groupId>commons-cli</groupId>
<artifactId>jfcunit</artifactId>
<jar>jfcunit</jar>
</dependency>
on the file system itself i have inserted this jfcunit on commons-cli
directory. I have also added to the classpath, and I have tried on
eclipse and it works. Nevertheless wnytime i am trying to build a
project sing maven, i am getting the same error.
I would appreciate any help regarding this matter.
Thanks
- 4
- Help: jsp:include error???Hello,
I am studying with "Core Servlets and Java Server Pages Volume1" on
Servlets and JSP.And I use Resin for
examples in the book. (The problem is at chapter 13.1)
I have one jsp and one html file as below:
C:\resin\webapps\WebModule\WhatsNew.jsp
\WEB-INF\web.xml
\WEB-INF\aaa.html
WhatsNew.jsp:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<TITLE>What's New at JspNews.com</TITLE>
<LINK REL=STYLESHEET HREF="JSP-Styles.css" TYPE="text/css">
</HEAD><BODY>
<TABLE BORDER=5 ALIGN="CENTER"><TR><TH CLASS="TITLE">What's New at
JspNews.com</TABLE>
<P>
Here is a summary of our three most recent news stories:
<OL><LI><jsp:include page="WEB-INF/aaa.html"/></OL>
</BODY></HTML>
aaa.html:
<B>Bill Gates acts humble.</B> In a startling and unexpected
development, Microsoft big wig Bill Gates put on an open act of
humility yesterday.
<A HREF="http://www.microsoft.com/Never.html">More details...</A>
Here aaa.html is wanted to ben shown in the WhatsNew.jsp.
But when I call the page as http://localhost/WebModule/WhatsNew.jsp.
it gives the error given below. If I put the aaa.html to the WebModule
folder as the WhatsNew.jsp it works. But I wanted aaa.html cannot be
seen by clients.Author also states this as:
"Finally, note that you are permitted to place your pages in the
WEB-INF directory. Although the client is prohibited from directly
accessing files in this directory, it is the server, not the client,
that accesses files referenced by the page attribute of jsp:include.
In fact, placing the included pages in WEB-INF is a recommended
practice; doing so will prevent them from being accidentally accessed
by the client (which would be bad, since they are usually incomplete
HTML documents)."
Error is:
java.io.FileNotFoundException: /WebModule/WEB-INF/aaa.html
at com.caucho.servlets.FileServlet.service(FileServlet.java:245)
at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:113)
at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:129)
at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:211)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:221)
at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:476)
at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:345)
at com.caucho.jsp.PageContextImpl.include(PageContextImpl.java:807)
at _jsp._whatsnew__jsp._jspService(/WhatsNew.jsp:18)
at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
at com.caucho.jsp.Page.pageservice(Page.java:571)
at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:155)
at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:211)
at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:177)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:221)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:263)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:331)
at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:464)
at com.caucho.util.ThreadPool.run(ThreadPool.java:408)
at java.lang.Thread.run(Thread.java:534)
What is wrong?
Please help...
Thanks.....
- 5
- what's wrong with this java statement?i can execute the following statement properly
stmt.execute("insert into computer values('fd','mic',123,'fds')");
but when i substitute the parameters into the statement errors
occour,what's wrong with the following statement?
*jmodel ,jbrand, jprice, jdesc are text field
stmt.execute("insert into computer values ('"
+jmodel.toString()+"','"+jbrand.toString()+"',"+Integer.parseInt(jprice.toString())+",'"+jdesc.toString()+"')");
- 6
- Networking (ccna & ccnp) Interview Q & A , Exam MaterialsHi,
Frenz, Hope all r fine, Networking Materials for Beginners,..
Below sites are too usefull for Networking students..Plz reply u'r
comments about tis site coz i want to improve my site to provide more
materials abt N/w-ing
Thanks
Regards
http://cinemas4u.blogspot.com
Basics Q & A {Switching}
http://cinemas4u.blogspot.com/2006_11_23_archive.html
OSI
http://cinemas4u.blogspot.com/2006_10_04_archive.html
Important Networking Q & A
http://cinemas4u.blogspot.com/2006_10_28_archive.html
TCP /IP Review
http://cinemas4u.blogspot.com/2006_10_26_archive.html
Basic Networking Q & A
http://cinemas4u.blogspot.com/2006_10_26_archive.html
EIGRP Q & A
http://cinemas4u.blogspot.com/2006_10_07_archive.html
OSPF Q & A Part -II
http://cinemas4u.blogspot.com/2006_10_30_archive.html
Routing Information Protocol
http://cinemas4u.blogspot.com/2006_10_31_archive.html
Routing Information Protocol Version 2
http://cinemas4u.blogspot.com/2006_10_31_archive.html
IGRP Q & A
http://cinemas4u.blogspot.com/2006_11_01_archive.html
V-LAN
http://cinemas4u.blogspot.com/2006_11_09_archive.html
Networking Basics
http://cinemas4u.blogspot.com/2006_11_08_archive.html
Layer 3 Switching
http://cinemas4u.blogspot.com/2006_11_07_archive.html
Dynamic Routing Protocols
http://cinemas4u.blogspot.com/2006_11_04_archive.html
Dynamic Routing Protocols Part- II
http://cinemas4u.blogspot.com/2006_11_05_archive.html
Static Routing
http://cinemas4u.blogspot.com/2006_11_03_archive.html
OSPF Q & A in CCNP
http://cinemas4u.blogspot.com/2006_11_14_archive.html
IP Routing Principles
http://cinemas4u.blogspot.com/2006_11_17_archive.html
Ethernet LAN's-Layer-2 Q & A
http://cinemas4u.blogspot.com/2006_11_18_archive.html
Switching ( Multilayer Switching)
http://cinemas4u.blogspot.com/2006/12/switching-multilayer-switching.html
Basics Q & A {Switching}
http://cinemas4u.blogspot.com/2006/11/basics-q-switching.html
- 7
- a simple question realted to StringBufferHi,
I am using a StringBuffer to hold a line with fixed length of 72 chars.
Later, I am going to put char at a specified location, using
setCharAt(location, char) method.
But this code doesn't work:
<Java>
StringBuffer line = new StringBuffer(72);
line.setCharAt(5, 'A');
</Java>
This code works:
<Java>
StringBuffer line = new StringBuffer(72);
for (int i=0; i<72; i++) //make the StringBuffer contains 72 empty chars
{
line.append(' ');
}
line.setCharAt(5, 'A');
</Java>
I found that this required for loop is ridiculous. Reading the Java
document of StringBuffer suggests the first version is correct and
should work. I don't understand it.
Thank you very much for your help.
- 8
- Difference between 1.3 and 1.4 in JTable?Hi,
I wrote an application that uses a JTable to display some data. I wrote
my own cellrenderer that provides rows that contain multiple lines of text.
When a row is deleted all other rows are rerendered and the rowheight para-
meter is updated accordingly. This works in 1.3. But in 1.4 (I tried different
JDKs on different platforms (Linux/MacOSX/Windows..) the rowheights are not
updated. Is there a difference in the evaluation of this in 1.4? Maybe that
I have to change the rowheigth at a later point in the program?
Konstantin
--
Dipl-Inf. Konstantin Agouros aka Elwood Blues. Internet: email***@***.com
Otkerstr. 28, 81547 Muenchen, Germany. Tel +49 89 69370185
----------------------------------------------------------------------------
"Captain, this ship will not survive the forming of the cosmos." B'Elana Torres
- 9
- Java Axis2 Client Calling .NET 2.0 Web Service..I am able to get the call to the .net 2.0 web service with this code:
[code]
InventoryServicesStub stub = new InventoryServicesStub(null,
"http://localhost:2067/NGLPTOServices_VS/InventoryServices.asmx/Ping");
InventoryServicesStub.Ping ping = new InventoryServicesStub.Ping();
InventoryServicesStub.PingResponse response = stub.Ping(ping);
String results = response.getPingResult();
System.out.println("Response : " + results);
[/code]
I can see it execute in Visual Studio debugger and return. When control
comes back to my eclipse debugger, I get the following AxisFault:
"First Element must contain the local name, Envelope"
How do I fix this?
Here is my WSDL:
[code]
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:tns="http://tempuri.org/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
targetNamespace="http://tempuri.org/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified"
targetNamespace="http://tempuri.org/">
<s:element name="Ping">
<s:complexType />
</s:element>
<s:element name="PingResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="PingResult"
type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetInventoryReport">
<s:complexType />
</s:element>
<s:element name="GetInventoryReportResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="GetInventoryReportResult" type="tns:Results" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="Results">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="timestamp"
type="s:dateTime" />
<s:element minOccurs="0" maxOccurs="1" name="status"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="message"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="report"
type="tns:ArrayOfInventoryReport" />
</s:sequence>
</s:complexType>
<s:complexType name="ArrayOfInventoryReport">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded"
name="InventoryReport" nillable="true" type="tns:InventoryReport" />
</s:sequence>
</s:complexType>
<s:complexType name="InventoryReport">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="CONTRACT"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="PRODUCT_NAME"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="VOLUME_TYPE"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="MV_HEADER_DATE"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="TICKET"
type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="BARRELS"
type="s:double" />
<s:element minOccurs="1" maxOccurs="1" name="PRODUCT_ORDER"
type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="SORT_ORDER"
type="s:int" />
</s:sequence>
</s:complexType>
</s:schema>
</wsdl:types>
<wsdl:message name="PingSoapIn">
<wsdl:part name="parameters" element="tns:Ping" />
</wsdl:message>
<wsdl:message name="PingSoapOut">
<wsdl:part name="parameters" element="tns:PingResponse" />
</wsdl:message>
<wsdl:message name="GetInventoryReportSoapIn">
<wsdl:part name="parameters" element="tns:GetInventoryReport" />
</wsdl:message>
<wsdl:message name="GetInventoryReportSoapOut">
<wsdl:part name="parameters"
element="tns:GetInventoryReportResponse" />
</wsdl:message>
<wsdl:portType name="InventoryServicesSoap">
<wsdl:operation name="Ping">
<wsdl:input message="tns:PingSoapIn" />
<wsdl:output message="tns:PingSoapOut" />
</wsdl:operation>
<wsdl:operation name="GetInventoryReport">
<wsdl:input message="tns:GetInventoryReportSoapIn" />
<wsdl:output message="tns:GetInventoryReportSoapOut" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="InventoryServicesSoap"
type="tns:InventoryServicesSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="Ping">
<soap:operation soapAction="http://tempuri.org/Ping"
style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetInventoryReport">
<soap:operation
soapAction="http://tempuri.org/GetInventoryReport" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="InventoryServicesSoap12"
type="tns:InventoryServicesSoap">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="Ping">
<soap12:operation soapAction="http://tempuri.org/Ping"
style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetInventoryReport">
<soap12:operation
soapAction="http://tempuri.org/GetInventoryReport" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="InventoryServices">
<wsdl:port name="InventoryServicesSoap"
binding="tns:InventoryServicesSoap">
<soap:address
location="http://localhost:2067/NGLPTOServices_VS/InventoryServices.asmx"
/>
</wsdl:port>
<wsdl:port name="InventoryServicesSoap12"
binding="tns:InventoryServicesSoap12">
<soap12:address
location="http://localhost:2067/NGLPTOServices_VS/InventoryServices.asmx"
/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
[/code]
- 10
- Help with Extending a classHi,
I am writing a distributed Battleship game using RMI. I need this
class to extend both javax.swing.JFrame AND UnicastRemoteObject. Is
there anyway around this?
public class MainGUI extends javax.swing.JFrame implements
BattleShipClientIntf {
Thanks.
- 11
- Datasource problames + accessing the, outside of a containerHi,
I'm completely new to J2EE and currently struggling with datasources.
We have a Oracle database we'd like to access via jboss. I've set it up as a
datasource using the oracle-xa-ds.xml fiel as an example. This appears to
have worked, in as much as we can now see it via JNDIView .
I'm having no luck actually using it however.
To test I created a servlet containg the following code :-
try
{
ic = new InitialContext();
ic.addToEnvironment("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
ic.addToEnvironment("java.naming.provider.url","jnp://localhost:1099");
ic.addToEnvironment("java.naming.factory.url.pkgs","org.jboss.naming.client");
ic.addToEnvironment("j2ee.clientName", "test");
}
catch (NamingException e)
{
out.println("Could not create JNDI " + "context: " +
e.toString());
}
try
{
DataSource ds = (DataSource) ic.lookup("java:XAOracleDS":);
con = ds.getConnection();
}
catch (Exception ex)
{
out.println("Unable to connect to database. " + ex.getMessage());
}
This fails telling me that test is not bound.
What am I doing wrong?
Our eventual plan is to have applications access this datasource from
outside of jboss. I've seen a couple of posts now suggesting that this might
not be possible. Can anyone confirm if this is the case?
Thanks
hjc
- 12
- Sexy Latinas Get Fucked Before Swapping Some Cum Just few link on some movies...
All just for you...
Download
>>>>> http://download-video.12w.net
>>>>> http://world-sex.urllogs.com
>>>>> http://video-sex.12w.net
CLICK FREE DOWNLOAD VIDEO PORN...
L
I
C
K
T
O
W
A
T
C
H
V
I
D
E
O
P
O
R
N
D
O
W
N
L
O
A
D
F
R
E
E
.
.
.
W
E
L
C
O
M
T
O
M
O
V
I
E
S
P
O
R
N
D
O
W
N
L
O
A
D
.
.
.
- 13
- SETTING POSITIONHello,
I am new to Java and have been practicing by placing graphical shapes on
screen. I would like to know how to choose the coordinates where the shapes
appear within my applet window. I can't seem to find any helpful references
on this seemingly simple task. If anyone could give me details of the method
required I would really appreciate it.
Many Thanks.
- 14
- FreeBsdCrypt updatedAlas, I don't have the time to make a proper port of this (but if someone
else wants to, please do feel free) but since there's an update and folks
may find this useful, I thought I'd mention it anyway.
FreeBsdCrypt can be found at
http://spatula.net/software/FreeBsdCrypt-1.1.jar . This contains an
implementation of FreeBSD-style MD5 crypt, which many have found useful
when trying to integrate Java stuff with FreeBSD stuff, or migrating from
other languages to servlets, or whatever.
The jar contains all the API docs, source code, and the complied class.
Usage is pretty simple anyway:
String result = FreeBsdCrypt.crypt("password", "salt");
The major change in this version is correcting the way the class name is
capitalized. It needed to start with an uppercase letter since it's a
class name, and then Pascal-casing the rest of it. Consensus on the web
seems to be that acronyms of 3 letters or more are to be Pascal-cased.
Nick
--
"The aptly-named morons.org is an obscenity-laced screed..."
-- Robert P. Lockwood, Catholic League director of research
Nick Johnson, version 2.1 http://web.morons.org/
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
- 15
- new java.util.Date(0)Hi,
I'm sure this is some kind of Locale issue and is probably documented in the
spec, but I looked there and there are many things documented there. It
would be nice if the experts in this ng could explain the right way to think
about it.
System.out.println(new Date(0));
yields
Wed Dec 31 19:00:00 EST 1969
I guess this is the time in NY (which is what my computer is set to) when in
London it was 1/1/1970 00:00am. How can I use Date more generically?
For example, I have code which returns historical temprature. If I ask it to
return the temprature as of "1/1/1970" it will convert the string to the
Date (which is Date(0)) and then return the temperature as of 12/31/1969. I
could artificially add 5 hours, but then it won't work in CA. I could add 8
hours but then it won't work in Moscow. I could add 1 day, but then it won't
work in London.
Thanks!
Aaron Fude
|
|
|