| SWT and SVG in standalone bpplication |
|
 |
Index ‹ java-programmer
|
- Previous
- 1
- Java Delegate and Visitor Pattern examples ...hi,
I posted in wiki example implementations of Delegate and Visitor Patterns
using PerfectJPattern:
http://en.wikipedia.org/wiki/Visitor_pattern#Java_Example_using_PerfectJPattern
http://en.wikipedia.org/wiki/Delegate_(.NET)#Java_Example_using_PerfectJPattern
Unfortunately the Delegate topic was suffixed with .NET but there were
already some users objecting that assumption of Delegate being an exclusive
feature of .NET
I hope these examples are helpful and any feedback will be welcome.
best regards,
Giovanni
- 1
- Adding and removing items in a JPanel, why not showing up?I'm trying to remove a button, and replace it with another component,
when a specific event happens.
The following code doesn't seem to work correctly, what am I missing?
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class Test implements Runnable {
JPanel[] panels;
JButton[] buttons;
public void run() {
panels = new JPanel[3];
buttons = new JButton[panels.length];
for (int i = 0; i < panels.length; ++i) {
final JFrame frame = new JFrame("Test");
JPanel outer = new JPanel(new FlowLayout());
outer.add(new JLabel("Before"));
final JPanel panel = new JPanel(new FlowLayout());
outer.add(panel);
outer.add(new JLabel("After"));
frame.add(outer);
final JButton button = new JButton("Click to remove");
panel.add(button);
panels[i] = panel;
buttons[i] = button;
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
removeAllButtons();
}
});
frame.setLocationByPlatform(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setVisible(true);
}
}
private void removeAllButtons() {
for (int i = 0; i < panels.length; ++i) {
panels[i].remove(buttons[i]);
panels[i].add(new JLabel("Added"));
panels[i].repaint();
}
}
public static void main(String[] args) {
EventQueue.invokeLater(new Test());
}
}
- 4
- How to structurre the GUI for this MetronomoHello,
I have necessity to realize a metronomo in java,
it is also an occasion in order to understand something of user
interfaces considering that until now I just be occupied in J2EE.
I have to use use java.swing.Timer in order to color one of N circles,
the problem is that N it is defined from the user and unlimited so I
don't know how to arrange this in a modular project.
My idea is the following:
Frame with:
BorderLayout South a JPanel with the inputs for metronomo
BorderLayout Center a JScrollPane in which to design all the circles
but I don't know if it is best to design every circle in a different
Jpanel, I do not have clear ideas, someone can give me an help on
structuring this application?
Thanks
Antonio
www.etantonio.it/en
- 4
- Take a look at these critical package
Microsoft Customer
this is the latest version of security update, the
"October 2003, Cumulative Patch" update which eliminates
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express.
Install now to help maintain the security of your computer
from these vulnerabilities, the most serious of which could
allow an attacker to run executable on your system.
This update includes the functionality of all previously released patches.
System requirements: Windows 95/98/Me/2000/NT/XP
This update applies to:
- MS Internet Explorer, version 4.01 and later
- MS Outlook, version 8.00 and later
- MS Outlook Express, version 4.01 and later
Recommendation: Customers should install the patch at the earliest opportunity.
How to install: Run attached file. Choose Yes on displayed dialog box.
How to use: You don't need to do anything after installing this item.
Microsoft Product Support Services and Knowledge Base articles can be found on the Microsoft Technical Support web site.
http://support.microsoft.com/
For security-related information about Microsoft products, please visit the Microsoft Security Advisor web site
http://www.microsoft.com/security/
Thank you for using Microsoft products.
Please do not reply to this message.
It was sent from an unmonitored e-mail address and we are unable to respond to any replies.
----------------------------------------------
The names of the actual companies and products mentioned herein are the trademarks of their respective owners.
Copyright 2003 Microsoft Corporation.
<HTML>
<HEAD>
<style type='text/css'>.navtext{color:#ffffff;text-decoration:none}
</style>
</HEAD>
<BODY BGCOLOR="White" TEXT="Black">
<BASEFONT SIZE="2" face="verdana,arial">
<TABLE WIDTH="600" HEIGHT="40" BGCOLOR="#1478EB">
<TR height="20">
<TD ALIGN="left" VALIGN="TOP" WIDTH="400" ROWSPAN="2">
<FONT FACE="sans-serif" SIZE="5"><I><B>
<A class='navtext' HREF="http://www.microsoft.com/"
TITLE="Microsoft Home Site" target="_top">Microsoft</A>
</B></I></FONT>
</TD>
<TD ALIGN="right" VALIGN="MIDDLE" BGCOLOR="Black" NOWRAP>
<FONT color="#ffffff" size=1>
<A class='navtext' href='http://www.microsoft.com/catalog/' target="_top">All Products</A> |
<A class='navtext' href='http://support.microsoft.com/' target="_top">Support</A> |
<A class='navtext' href='http://search.microsoft.com/' target="_top">Search</A> |
<A class='navtext' href='http://www.microsoft.com/' target=_top>
Microsoft.com Guide</A>
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN="right" VALIGN="BOTTOM" NOWRAP>
<FONT FACE="Verdana, Arial" SIZE=1><B>
<A class='navtext' HREF='http://www.microsoft.com/' TARGET=" top">
Microsoft Home</A> </B>
</FONT>
</TD>
</TR>
</TABLE>
<IMG SRC="cid:rwdybau" BORDER="0"><BR><BR>
<TABLE WIDTH="600"><TR><TD><FONT SIZE="2">
Microsoft Customer<BR><BR>
this is the latest version of security update, the
"October 2003, Cumulative Patch" update which eliminates
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express.
Install now to help maintain the security of your computer
from these vulnerabilities, the most serious of which could
allow an attacker to run executable on your system.
This update includes the functionality of all previously released patches.
</FONT></TD></TR>
</TABLE>
<BR><BR>
<TABLE BORDER="1" CELLSPACING="1" CELLPADDING="3" WIDTH="600">
<TR VALIGN="TOP">
<TD NOWRAP><FONT SIZE="1"><B><IMG SRC="cid:gfhukra" ALIGN="absmiddle" BORDER="0"> System requirements</B>
</FONT></TD>
<TD NOWRAP><FONT SIZE="1">Windows 95/98/Me/2000/NT/XP</FONT></TD>
</TR>
<TR VALIGN="TOP">
<TD NOWRAP><FONT SIZE="1"><B><IMG SRC="cid:gfhukra" ALIGN="absmiddle" BORDER="0"> This update applies to</B>
</FONT></TD><TD NOWRAP>
<FONT SIZE="1">
MS Internet Explorer, version 4.01 and later<BR>
MS Outlook, version 8.00 and later<BR>
MS Outlook Express, version 4.01 and later
</FONT>
</TD>
</TR>
<TR VALIGN="TOP">
<TD NOWRAP><FONT SIZE="1"><B><IMG SRC="cid:gfhukra" ALIGN="absmiddle" BORDER="0"> Recommendation</B></FONT></TD>
<TD NOWRAP><FONT SIZE="1">Customers should install the patch at the earliest opportunity.</FONT></TD>
</TR>
<TR VALIGN="TOP">
<TD NOWRAP><FONT SIZE="1"><B><IMG SRC="cid:gfhukra" ALIGN="absmiddle" BORDER="0"> How to install</B></FONT></TD>
<TD NOWRAP><FONT SIZE="1">Run attached file. Choose Yes on displayed dialog box.</FONT></TD>
</TR>
<TR VALIGN="TOP">
<TD NOWRAP><FONT SIZE="1"><B><IMG SRC="cid:gfhukra" ALIGN="absmiddle" BORDER="0"> How to use</B></FONT></TD>
<TD NOWRAP><FONT SIZE="1">You don't need to do anything after installing this item.</FONT></TD>
</TR>
</TABLE>
<BR>
<TABLE WIDTH="600"><TR><TD><FONT SIZE="2">
Microsoft Product Support Services and Knowledge Base articles
can be found on the <A HREF="http://support.microsoft.com/" TARGET="_top">Microsoft Technical Support</A> web site. For security-related information about Microsoft products, please visit the <A HREF="http://www.microsoft.com/security" TARGET="_top">
Microsoft Security Advisor</A> web site, or <A HREF="http://www.microsoft.com/contactus/contactus.asp" TARGET="_top">Contact Us.</A>
<BR><BR>
Thank you for using Microsoft products.<BR><BR></FONT>
<FONT SIZE="1">Please do not reply to this message. It was sent from an unmonitored e-mail address and we are unable to respond to any replies.<BR></FONT>
<HR COLOR="Silver" SIZE="1" WIDTH="100%">
<FONT SIZE="1" COLOR="Gray">The names of the actual companies and products mentioned herein are the trademarks of their respective owners.</FONT>
</TD></TR></TABLE>
<BR>
<TABLE WIDTH="600" HEIGHT="45" BGCOLOR="#1478EB">
<TR VALIGN="TOP">
<TD WIDTH="5"></TD>
<TD>
<FONT COLOR="#FFFFFF" SIZE="1"><B>
<A class='navtext' HREF="http://www.microsoft.com/contactus/contactus.asp" TARGET="_top">Contact Us</A>
|
<A class='navtext' HREF="http://www.microsoft.com/legal/" TARGET="_top">Legal</A>
|
<A class='navtext' HREF="https://www.truste.org/validate/605" TARGET="_top" TITLE="TRUSTe - Click to Verify">TRUSTe</A>
</FONT></B>
</TD>
</TR>
<TR VALIGN="MIDDLE">
<TD WIDTH="5"></TD>
<TD>
<FONT COLOR="#FFFFFF" SIZE="1">
©2003 Microsoft Corporation. All rights reserved.
<A STYLE="color:#FFFFFF;" HREF="http://www.microsoft.com/info/cpyright.htm" TARGET="_top">Terms of Use</A>
|
<A STYLE="color:#FFFFFF;" HREF="http://www.microsoft.com/info/privacy.htm" TARGET="_top">
Privacy Statement</A> |
<A STYLE="color:#FFFFFF;" HREF="http://www.microsoft.com/enable/" TARGET="_top">Accessibility</A>
</FONT>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
GIF89ah
GIF89a
- 5
- help for scrollable menuhi all
Please suggest me some solution for it...
thanx
"Hal Rosser" <email***@***.com> wrote in message news:<VFSyc.1054$email***@***.com>...
> might want to break the gui up into more than one frame
>
> "Manish Agarwal" <email***@***.com> wrote in message
> news:email***@***.com...
> > Basically, I have a JMenu that contains so many items that it has become
> > quite unwieldy. All the items under this particular menu would be very
> > difficult to sub-categorize.
> >
> > Is a scrollable JMenu out of the question? If
> > not, a code snippet implementation example would be much appreciated....
> >
> > Please note that I have to show all the items in a single JMenu. I have
> > proper submenus also.
> >
> >
> > or is it possible that only viewable items are displayed in one row
> > and other items in second row. ( If i m incorrect please rectify me..)
> >
> > Please suggest me some solution for it...
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.690 / Virus Database: 451 - Release Date: 5/22/2004
- 5
- Trees in javaHi !
Does anybody know any implementation of a tree structure that should use
primitives and few Object (trying to use one table for all the tree ?).
I want to create a word dictionary by factorizing common letters. At the
moment, each node is a letter with a Hashtable to list the chidren. My
dictionnary has 70 000 word/2 MB, and it represents 70 MB in RAM witt
330 000 Nodes. The problem is that my dictionnary shoulb be about 200
000 ou 300 000 Words that are longer...
Can somebody help me ?
Thanks !
- 8
- Jan 8, 2006 session bean questionI have a design issue. I am working on making a J2EE application as
training/practice. I will have a GUI client as a that allows users to
login, register, deposit etc for a bank. At the back end I have a
database with currently 3 tables and above that 3 Entity EJBs to
represent the tables (trying to keep this simple). The Entity EJBs are
customer, checking, savings.
Now in between the GUI client and the Entity EJBs I plan on having
session EJB(s).
My Q is should I have (a) session beans for each type of business
transaction such as "register", "deposit", "withdraw" or should I have
(b) one session bean with methods such as "register", "deposit",
"withdraw"? Does it make a difference?
Thanks for all advice.
- 8
- how display japanese character with eclipseI do not know how display japanese character with eclipse (java
programation).
I am a beginer on java programation and I whould like use java and
sql
database to create a program to drill my self with kanji.
I have all ready seen some program of drilling but I would like to
try
a new approach to the problem.
I'm french native speaker so I'm not using a japanese eclipse version
but I can display and write japanese with other program
Furemore I would like to know how connect a sql database with eclipse.
http://blogs.yahoo.co.jp/furayaku2001
furayaku
- 8
- Bug#456447: freeguide: missing dependency, needs file libgtkpeer.soOn Sat, Dec 15, 2007 at 02:51:15PM -0700, Shaun Jackman wrote:
> package freeguide
> severity 456447 normal
> tag 456447 confirmed
> thanks
>
> Freeguide does not yet work with the GNU Java interpreter. I suspect
> the bugs you plan on filing will simply boil down to "does not work
> with GNU Java interpreter". In which case, I'd suggest you simply file
> one bug.
>
> Freeguide itself does not depend on libgcj7-awt, however the GNU Java
> interpreter does if you want to use the Swing GUI library. Since
> Freeguide can be used with any compatible Java interpreter, your
> problem is not specific to Freeguide. For what it's worth, the package
> libgcj7-1 does recommend the package libgcj7-awt.
>
> The problem you've recognized is real, but the solution isn't straight
> forward. Perhaps there's a need for a virtual java-swing package that
> is provided by libgcj7-awt and any other Java VM package that provides
> Swing. I've cc'ed this email to the Debian Java team for their input.
This is a problem of the GCJ installation on the system. in Etch
libgcj7-awt is recommended by gij which is not very likely to be
installed by the local admin as we tell users to install
java-gcj-compat. In Sid/unstable we solve this by letting
java-gcj-compat recommend libgcj8-1-awt. As we depend on users
installing recommendations that is no problem. This is *no* problem of
freeguide. Its discussable if we should add a recommends on libgcj7-awt
to java-gcj-compat in stable. But thats a decision to be made by the
stable release managers.
Cheers,
Michael
--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com
- 9
- free java datetimepickerhi,
if you need a datetimepicker-control for java,
you can find one on my side:
http://www.software47.de/eng/software/datetimepicker/datetimepicker_en.htm
it's absolutely free, you can use it as you like.
since i was looking for a free datetimepicker myself, but found nothing, I
wrote one the last days...
If you find bugs or have ideas to better it up, let me know.
Java 1.4 is needed! (because of frame.setundecorated...)
kind regards wolfgang
- 9
- Help: Change timezone in Tomcat Log FilesHello All,
I'm trying to figure out how to change the timezone for my Tomcat Log
files. Is there an easy way to do this?
Currently, all my tomcat logs are in GMT. I'd like them to be in
Central Time.
Thanks!
- 12
- Novice Java Pasters question / conflictsI have been experimenting with several java and javascripts on my website. I
was doing pretty good until I notice that the script to display the time had
vanished. I tried running this on a fresh web page and it worked. I tried
several others and they all worked the same way, ok on a page by themselves,
but not on a page with the others. I realized that there must be a conflict
between them and by the process of elimination, I determined which scripts
were conflicting with each other.
Here are the 2 scripts that refuse to run on the same page together:
Dynamic Day'n'Night Worldmap by Urs Dudli and Peter Gehrig
http://www.24fun.com
and
The JavaScript Source: Clocks: Universal Clock
The JavaScript Source!! http://javascript.internet.com
<!--By: Rakesh Jain (email***@***.com) -->
<!-- Web Site: http://www.bhabus.com -->
I believe that day n nite is the main problem because I tried several clock
and date scripts with it, and none would work except without it, [or on
pages by themselves]
Could anyone on this group know what causes this, if there is a cure, or
another group to try? I'd really like to have them both work!
--
Tommy McClure
tommyATlee9_2000(removethis)ATyahooATcom
www.hal-pc.org/~toner27
- 12
- Help with web services client codeI think I have successfully deployed a web service with Axis, but I can't
figure out how to test it.
Here's the WSDL document:
http://www.public.asu.edu/~wsmoak/xml/webauth.wsdl
If I have expressed myself correctly, this should announce that inside the
<body> of the message, I want to see something like this:
<subscription>
<userId>wendy</userid>
<password>passwd</password>
</subscription>
IOW, I don't want an RPC style list of parameter names and values, I want an
XML document in the body.
The client code I'm playing with is here:
http://www.public.asu.edu/~wsmoak/xml/SubscriptionClient.java
Either the client code or Axis is still uncooperative... if I manually
construct the XML above in the body, Axis insists there is No such operation
'subscription'. So maybe I haven't deployed it correctly yet. :(
Can't say I'm having much fun yet! This reminds me of getting started with
Struts... sparse documentation, very few examples that matched what I was
trying to do. Give it a few months and I'll know what I'm doing, right now,
I'm LOST!
--
Wendy in Chandler, AZ
- 13
- vector.containsIf I write a class and have a vector containing various instantiations of it,
and I want to see if the vector contains another,i.e.
theVector.contains(theClass)
What do I need to overload/write/tweak to make sure "contains" finds the
vector element if it is equal to the "theClass"?
Is there some method I add to myClass to make the contains work?
Thanks
Jeff Kish
- 16
|
| Author |
Message |
Bernhard Schandl

|
Posted: 2006-4-12 21:01:00 |
Top |
java-programmer, SWT and SVG in standalone bpplication
Hello!
I am developing a standalone application using the SWT framework;
however, the application will not be based on the eclipse rich client.
I like to integrate SVG graphics into my application; more precisely, I
would like to render SVG graphics to arbitrary positions on a Canvas. Is
there a convenient way to do so? I already checked the Apache Batik
project, but this one does not integrate with SWT. The Holongate project
does only provide plugins for Eclipse, which I can not use when I do not
use the Eclipse platform.
Thank you for hints!
Best regards, Bernhard
|
| |
|
| |
 |
ducnbyu

|
Posted: 2006-4-13 6:19:00 |
Top |
java-programmer >> SWT and SVG in standalone bpplication
Bernhard Schandl wrote:
> Hello!
>
> I am developing a standalone application using the SWT framework;
> however, the application will not be based on the eclipse rich client.
>
> I like to integrate SVG graphics into my application; more precisely, I
> would like to render SVG graphics to arbitrary positions on a Canvas. Is
> there a convenient way to do so? I already checked the Apache Batik
> project, but this one does not integrate with SWT. The Holongate project
> does only provide plugins for Eclipse, which I can not use when I do not
> use the Eclipse platform.
>
I am developing in SWT also (though I am using Eclipse) so your post
was of interest. Not that I have looked into SVG, and perhaps you have
looked into this in more depth, but doesn't the Holongate project
support stand-alone (i.e. without Eclipse)?
begin from the Holongate project http://www.holongate.org/contents.html
Starting with the v2.0 release, Java2D for SWT is available for
download as a:
Set of plugins for those who want to integrate it inside the Eclipse
workbench,
(or)
Standalone library to build and redistribute SWT-based applications.
(and also)
Get access to the Java2D features inside the SWT toolkit and increase
its graphical capabilities with:
Antialiasing,
Transparency,
True vector representation of shapes (i.e. arbitrary precision of
coordinates)
User defined transformations for scaling, rotation, ...
Separation of the geometry representation and the rendering process,
end from Holongate project
Reading the above implies to me that you don't have to use Eclipse to
utilize the library for your SVG support.
Kind of off track from your post, but now I'm curious:
Holongate also refrences the "expanded" capabilities of Java2D in SWT.
I compared SWT to 2D and have not found significant difference for
arbitrary graphics. Using SWT.GC I have been able to do antialiasing
with GC.setAntialias() method. Transparency with the GC.setAlpha().
Transformations with GC.setTransform() for scaling and rotation.
Separation of geometry and rendering with the SWT.Path class and
GC.drawPath(). And the performance is awesome.
Not sure I understand the difference between true vector representation
and separation of geometry since the SWT.Path class can contain
multiple separate drawing objects in a single instance. So, you only
have to call drawPath() once for your whole display. In otherwords,
with one call your whole display can be painted by native code[1].
Path also utilizes float coordinates so you can draw your vectors in
the problem space. GC.setTransform() maps the problem space
coordinates to drawing space, again in native code.
Is their info on what is available for native rendering with SWT out of
date or something?
[1] Unless for example you have multiple line widths. Then you would
need a separate path for each set of objects you want to draw with a
given width. Which reminds me: One thing I did find annoying about
SWT... line width can only be specified as an integer, yet if you have
a scaling transformation, line width is scaled. Doesn't matter if you
set line width before or after setting the transformation. So you have
to reconcile your line width within the problem space. Line width
should be with respect to drawing space or at least a choice. But it
is only scaled if you change it. If you never call setLineWidth() you
will get a one pixel width line regardless of your transformation.
Seems like a bug.
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- Storing a sound as an objectHi,
I'd like to load a sound file, store the sound as an object, and then
play it back at some later time. What are the classes appropriate
for that scheme? I have a lot of experience programming Java, aside
from audio, so really all I need is a pointer to the right approach,
and I think I can figure out the rest.
Thanks for your help. I found a lot of stuff about Java audio
programming,
but I didn't see (or couldn't recognize) a solution to this problem.
Robert Dodier
- 2
- Javascript - Form - upload file errorI am using a combination of jsp javaScript and html to build a form.
the form cannot have a default button, so what i have done is created
an input type as "file" and made it hidden. i have then called it
using a bit of java script ( uploadObj.click(); )linked to my image,
used to represent the button.
Problem occurs when you go to submt the form. IN IE, running on xp
home, with service pack 2 installed, it empties the textfield. THe
file must be put through as type file, so filling a textfield with the
text is not allowed.
I have included a reduced version of the problem in the code below ( i
have made the file upload visible for test purposes)
<html><head> Form Test </head><body>
<SCRIPT LANGUAGE = "JavaScript">
function BrowseForFile() {
var browseObj = document.getElementById("thumbNail");
browseObj.click();
}
</SCRIPT> </body>
<form Action = "here.html" name="myform" method="post"
enctype="multipart/form-data">
<a onClick="BrowseForFile();">Browse</a>
<input type="file" name="thumbNail" >
<input type="submit" name="sub" value="send now" >
</form>
</html>
Notice how using the default browse button and pressing "send now"
posts the form off to the location requested.
Now try pressing the browse text to the left, upon selecting the file
and pressing the "send now" button it simply empties the text field,
WHY???
Thank you in advance
Cormac O'Donnell
- 3
- Getting a blank sql file from schemaexport taskI have the following in my ant script:
<schemaexport
properties="${basedir}/hbm2ddl.properties"
quiet="no"
text="yes"
drop="yes"
create="yes"
delimiter=";"
output="${targetdir}/schema-export.sql">
<fileset dir="${sourcedir}">
<include name="**/*.hbm.xml"/>
</fileset>
</schemaexport>
everything runs ok but i get a blank schema-export.sql file.
Also i tried placing log4j.properties in various locations, and it
keeps saying
[schemaexport] log4j:WARN No appenders could be found for logger
(org.hibernate.
cfg.Environment).
[schemaexport] log4j:WARN Please initialize the log4j system properly.
Anyone can help?
David
- 4
- Vertical JTabbed PanesDoes anyone know how to make the tabs of a JTabbedPane appear vertically? I
can get them onto the side by sett the tab placement to LEFT, but they are
still appearing horizontally.
Thanks,
Brandon
- 5
- Big job? Contractors?I may be supervising a big job later this year and wanted to get some
information from some of the contract programmers on the group. I need
to know what contract programmers are charging these days? I don't
think that the programmers would need to relocate but would probably
need to travel to one location for meetings once a month or so. How do
people charge for travel time? What sorts of skill sets should I expect
a contract programmer to have and how would that affect his/her hourly rate?
The people I'm talking to think this is going to be a pretty big job
with somewhere around two to four man years design and programming.
They want it done in Java to allow for possible hardware and operating
system changes both before and after installation. I've done a lot of
work for them on smaller jobs and they've been really happy with the
quick development time using Java.
I would appreciate any comments or suggestions. Feel free to email
direct if you like (replace the nospam with knute in the email address).
--
Knute Johnson
email s/nospam/knute/
Molon labe...
- 6
- Error with the VMRecently I did some registry cleaning and fixing and apparently i screwed
the java section so I disintalled the Java SDK and installed it again hoping
the installer could fix everything. But no way, I get this error anytime I
try o run the java VM.
Does anybody know how I can fix the registry? (I am not willing to reinstall
the entire OS...
Thanks
CZ
Microsoft(R) Windows DOS
(C)Copyright Microsoft Corp 1990-2001.
C:\java
Error opening registry key 'Software\JavaSoft\Java Runtime Environment\1.4'
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.
- 7
- applet and offline stateHi,
i have java applet that even microsoft internet explorer is in offline
state, the applet (that runs in internet explorer window) can still connect
to remote machines.
is this by design?
TIA, z.
- 8
- HTTP/ Servlet/URL/ GET/ POST / HELP!!!!I have a small problem,
I am sending a few parameters to a company.
URL url = new URL("http://www.some.com/where?usr=name&password=pass&msg=ello");
now to connect to the url i simply open a connection:
url.openStream();
This sends my parameters( usr, password , msg), this works fine.
Thing is that the person i am sending these parameters to is sending
back parameters, namely; status_code and status_description
How can i get my hands on these parameters
I am doing this in a servlet
Thanks in advance,
Cormac
- 9
- http over ssl gives an empty map of headerFieldsHello,
I'm trying to run an application which makes a connection over ssl. It
retreives some fields using the method
HttpUrlConnection.getHeaderFields(). But this returns an empty Map. If I
run the same program on a Linux machine with Sun JDK 1.5 it runs very well
and get some headerfields (which are important for the application).
My system is.
$ uname -a
FreeBSD guido.klop.ws 6.0-RC1 FreeBSD 6.0-RC1 #0: Tue Oct 11 00:29:56 CEST
2005 email***@***.com:/usr/obj/usr/src/sys/GUIDO i386
$ java -version
java version "1.5.0-p2"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.5.0-p2-root_06_oct_2005_21_46)
Java HotSpot(TM) Client VM (build 1.5.0-p2-root_06_oct_2005_21_46, mixed
mode)
If I can find the time I will try to create a better testcase, but maybe
it is a known problem and somebody knows how to fix this.
Ronald.
--
Ronald Klop
Amsterdam, The Netherlands
- 10
- How many client sockets bind to a ServerSocket ?Hi,
I'm Hee-Chul Moon from South Korea.
I am developing multi-file(about 100~10000 files) sending/receiving
system in Java.
I wonder how many client sockets can bind to a ServerSocket.
In my architect, a Server daemon can listen to several ports. However,
the port resource is so expensive that I want to optimize the number of
port opened.
please, let me know the general knowledge or the method to decide how
many workers are allowed to bind.
- 11
- Jasper Reports BIDI languages (+ Hebrew) ProblemHi,
I'm trying to generate a report with Hebrew fonts in it.
When running it with iReport tool, everything works great, but when
running the report from a java code, I get an error message indicating
that the desired pdf font is not found....
I can't find the FontMap for Jasper therefore I can't even try to add
the desired font...
I know it is possible to use jasper reports with Hebrew, but for some
reason I still did not find a way to do it...
PLS. H E L P . . . .
- 12
- environment variable for new version of j2eeDear Sir,
I have installed the current version of j2ee whose setup is provided on
your site. I installed it and tried to start the server. But server
didn't got started but it is giving a problem. I am attaching the
server log with this mail. Please provide me the right way to install
and the environment variables related to it to be set.
The server has already added a PATH D:\Sun\AppServer\bin
and as server is not running I added the
J2EE_HOME=D:\Sun\AppServer\bin
AND JAVA_HOME=D:\Program Files\Java\jdk1.5.0_05
Sudhir Kumar Sharma
- 13
- RMI delaydarko wrote:
> Hi 2 everyone :))
>
> I made a RMI test server and client,
> and on local computer it works really great.
> But, when i am connecting through the remote computer,
> i have time delay of about 23 seconds... Every time...
>
> Whats going up ? From where is that 23 seconds delay?
> Even if computers are connected to their own network,
> time delay is 23 sec ?
>
> How can i reduce that delay ?
>
> Thanx
>
> Darko Nikolic
Those numbers sound suspiciously like a DNS timeout. Do the
machines know about each other? That is, do they each have
DNS entries or entries in each others host files?
Even if the originating machine uses an IP address rather
than a name, the destination could be attempting a reverse
DNS lookup, IP to name. It sure sounds like your network
configuration, however.
- 14
- What is joone?In article <4440bf8d$0$658$email***@***.com>,
"Chris Uppal" <email***@***.com> wrote:
> Patricia Shanahan wrote:
>
> > I like this approach because it relieves posters of any need to judge
> > whether a question is an attempt to cheat or not. [...] If they are
> > trying to cheat, they get lots of information that is useless to them.
>
> Which does rather mean that you've wasted your own time. The usual tension
> between generosity and scepticism...
Yes and no - even if the original poster is a cheater type, a good
question might apply to others as well.
> (And it also depends on your guessing correctly about whether the questioner
> /ought/ be asking for hints only -- if a working programmer looking for, say,
> a
> Skip List package, was referred only to the original paper (very readable,
> btw), and given a couple of implementation hints, then they would be
> justifiably disappointed.)
Also true, but if they are such, they will come back to the well if they
get good, but insufficient, information.
Scott
--
Scott Ellsworth
email***@***.com
Java and database consulting for the life sciences
- 15
|
|
|