| JProgressBar bar not showing up till complete |
|
 |
Index ‹ java-programmer
|
- Previous
- 3
- 3
- Sun's OpenJDK in Debian?Hi,
I'm surprised that this wasn't discussed already in the past on this list
(or in the BTS of some important java packages), but what is the status
of Sun's Java architecture in Debian?
It is licensed under GPL2 and should be compatible with DFSG.
As far as I know only a few components are not yet freely available,
especially all which are subject to the Assembly Exception
(http://openjdk.java.net/legal/exception-modules-2007-05-08.html,
http://www.sun.com/software/opensource/java/faq.jsp).
Is this the main blocker for accepting OpenJDK in Debian? Would it be
possible to just omit the binary modules or to replace these with free
implementations from other free projects?
Please CC: me.
Jens
--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com
- 3
- Eclipse debugging hanging, causing network problemsHi,
I'm new to Eclipese, and last time I used Java heavily was six years
ago, so may be new to Java as well.
I could install and run Eclipse well, but debugging gives a problem;
after a few (say, 5-10) debugging sessions, the debugger does not
start in the usual way, but gets stuck at launching stage. The status
bar shows "Launching (95%)" and takes minutes to continue from there.
The app is a local java program, very small stuff - a couple of seconds
to run, no network connections etc. If I let the IDE to get past the
launching stage it gives me a debug session, but its either stuck
without running, or extremely slow to run.
Strangely, after this happens, I get other network problems as well -
such as google toolbar (in firefox) being slow to respond etc; The only
remedy is to reboot the machine, and when rebooting, several network
related apps fail to close down and I have to terminate them. I believe
I have reasonably verified that the cause is not an independent network
issue but something associated with the debugger.
.metadata/.log file shows many errors associated with
org.eclipse.jdi.internal, including org.eclipse.jdi.TimeOutException s.
My questions:
1. is this issue known (although I couldn't see anything on the web)
and if so, how can I fix it?
2. Can I setup eclipse to use shared memory transport instead of socket
transport for debugging?
Thanks for your time,
Upali
- 3
- RSA ciphered streams problemHi. I've got a problem with the RSA ciphered streams. Here is a piece of
code that generates an exception :
KeyPairGenerator gen = KeyPairGenerator.getInstance("RSA");
System.out.print("Generating the RSA key pair...");
KeyPair kp = gen.generateKeyPair();
System.out.println("done.");
Cipher ci = Cipher.getInstance("RSA");
ci.init(Cipher.ENCRYPT_MODE,kp.getPublic());
Cipher cid = Cipher.getInstance("RSA");
cid.init(Cipher.DECRYPT_MODE,kp.getPrivate());
CipherOutputStream cout = new CipherOutputStream(new
FileOutputStream("rsa.dat"),ci);
ObjectOutputStream oout = new ObjectOutputStream(cout);
oout.writeObject(kp.getPrivate().toString());
oout.flush();
oout.close();
CipherInputStream cin = new CipherInputStream(new
FileInputStream("rsa.dat"),cid);
ObjectInputStream oin = new ObjectInputStream(cin); // Exception here
System.out.println(oin.readObject());
oin.close();
The exception is EOFException and it's not very weird because the file
"rsa.dat" is empty after writing to it!! It happens only if object is "big"
( when I try to write some short String, for example, everything's ok ).
When I tried to write an unciphered output ( without using
CipheredOutputStream ) it went well of course.
My question is : can anybody tell me why it happens? What should I do to
write "big" objects to ciphered output stream using ObjectOutputStream
properly?
Thanks for any requests.
Kuba
- 4
- Loop != LoopStephen Riehm schreef:
>
> don't those two loops have different semantics, ie: the scope of myvalue?
> My understanding would be that myvalue in the first loop would be
> overwritten 9 times and then the last value would be available to code
> appearing after the loop. The myvalue in the second loop basically has
> no effect because it falls out of scope (and into the garbage
> collector's hands) as soon as you leave the loop.
>
Oh, it was just a quick example, there supposed to be done something
with myvalue later in the loop. The point was, myvalue is only needed
inside the loop and not outsite.
int myvalue=0;
for (int i=0;i<10;i++) {
myvalue=calculate(i);
.. do something with myvalue
}
.. myvalue no longer needed
for (int i=0;i<10;i++) {
int myvalue=calculate(i);
.. do something with myvalue
}
..my value not needed anymore
I believe this example is somewhere on the web too, but I forgot where
(probably javasoft.com or javaworld.com).
- 4
- Passing large C buffers to Java (via JNI) without copying?I'm trying to determine whether this is even possible... I have a
_very_ large buffer malloc'd on my C heap that I would like to hand
over to Java, preferably as a Byte[]. So far, every example of this
that I have come across involves _copying_ the data from my C buffer
into java storage. Is there any way to avoid this expensive (very
expensive in my case) operation?
- 5
- What IDE for Java do you use?nospam wrote:
> Hi...All,
>
> I recently downloaded eclipse IDE with myeclipse web editor
> (myeclipseide.com) . I did not see any views on it in this thread. So,
> would be interested to what your thought are on
> eclipse+myeclipse(struts, EJB....)
The views in Eclipse aren't initially as elaborate as those under WSAD,
but you can change that;
http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse.platform.doc.user/gettingStarted/qs-02e.htm
and
http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse.platform.doc.user/gettingStarted/qs-02e.htm
are a good start. Look on sourceforge.net for a variety of plug-ins so
you can enhance your IDE even more. Eclipse Colorer may be of help:
http://eclipsecolorer.sourceforge.net/index_profiler.html and
http://sourceforge.net/projects/eclipsecolorer.
- 6
- Question regarding Java's OOP implementation.According to Wikipedia, one of the core concepts of OOP is
Encapsulation; being defined as follows: "ensuring that users of an
object cannot change the internal state of the object in unexpected
ways; only the object's own internal methods are allowed to access its
state. Each object exposes an interface that specifies how other
objects may interact with it. Other objects will rely exclusively on
the object's external interface to interact with it." Not that I
regard Wikipedia's definition of OOP as the leading authority, it just
happens to be handy and provides a definition that fits my own ideas.
On to the question; If I create a class called AClass and inside
declare a class level variable with the private modifier and some other
methods, e.g.
public class AClass {
private int number;
public AClass(int num) {
number = num;
}
public void setAnotherAClass(AClass anotherAClass, int num) {
anotherAClass.number = num;
}
public int getAnotherAClass(AClass anotherAClass) {
return anotherAClass.number;
}
public void display() {
System.out.println("Number: " + number);
}
}
And a class to test AClass:
public class Test {
public static void main(String[] args) {
AClass one = new AClass(1);
AClass two = new AClass(2);
one.display();
two.display();
one.setAnotherAClass(two, 3);
two.display();
}
}
I would expect the compiler first to complain that number has private
access in AClass... Barring that I'm not sure what I'd expect it to
complain about, but something doesn't seem right. Child classes
derived from AClass were not able to make changes to objects of type
AClass which is what I would expect. But because one and two are
distinct objects the fact that they belong to the same class shouldn't
mean they can change each other's private instance variables. I
wasn't able to find anything directly relating to the question in an
hour or so of Googling. I also read through Java's tutorials on OOP to
see if they had anything specific to say, which they did not.
Thank you for your time and ideas.
Carl Summers
- 8
- [Update] FreeQueryBuilder 2005.05FreeQueryBuilder.2005.05
http://querybuilder.sourceforge.net
FreeQueryBuilder is a GUI SQL client written in 100% Java.
You can create SQL queries without directly writing SQL.
Works with any JDBC compliant database, including
ORACLE, MySQL, HSQLDB, Firebird, SQLServer.
This release includes FreeReportBuilder, a visual report designer.
- 11
- commons-logging: runtime change of propertiesHi,
I try to use commons-logging with the logs methods of J2SE 1.4.2 to
generalize the logging in my appl.
Doesn't exists a method to upload the defaul file properties of J2SE
at run time and not usig the -D option at startup?
Exists e method to change the propeties of the logger at runtime? for
example the output file path...
Thanks Cristian
- 13
- GeronimoIs there anyone who has successfully run this
application server under freebsd? I have problems
with rmi, but since nobody answered my other post
I suppose nobody else came across the same problem?
- 13
- Example of simple SOAP web-service on Resin?Hi group
I want to run my simple web service app on Resin. (I currently run it
on JBoss 3.2.3)
Does anyone have a simple example of how to do this with the
configuration of web.xml etc.?
Thanks in advance
-asciz
- 14
- Opening Image files with IE as default always ( using Browser Launcher)Hi,
I have downloaded some image files by connecting to a URL and I am
trying open that image file using BrowserLauncher.
I am using windows xp and the default one to open image files is
windows picture and Fax Viewer.
I could not see the image in Internet Explorer when I am trying to
open the image files. But when I set in the properties of image files
from "windows picture and Fax Viewer" to "Open with internet
Explorer", I could see the image.
Some trasfer details..
File Type : .jpg
HTTP/1.0 200 Ok
MIME-version: 1.0
Content-Length: 297362
Content-type: application/jpg
I tried to change in http headers , but could not succeed in opening
the image.
can anybody suggest me that,
I change the properties of the image file ( or http headers) such that
it should be open with internet explorer by default,after the image
downloaded.
Any suggestions or help is appreciated.
Regards,
Hari.
- 14
- Things That People Buy .Hi Antonio ,
Of Sun's press release , You scratch out :
" Makes me not want to buy a new PC just yet . "
Oh God ... Don't hold your breath .
While Sun produces these fantastical press releases ,
Asians are actually shipping things that people buy .
- 14
- Database insert taking a long time and causing 500 errorHi,
My requirement is as follows:
Server: Websphere
Framework: Struts
A user will upload excel file. Excel file will have several rows. For
each row, I need to insert one row in oracle database table. And
finally success message is to be shown to the user.
I read the excel file in action class and call a oracle procedure to
insert the records to database.
The issue is that when the size of excel file is large (containing
several records), it is taking a long time to complete insertion and
it shows Internal Server 500 error on the browser. Passing small set
of records to procedure is also not helping.
I think since there is no response from the app server to the client,
this error is coming. Can anybody suggest how to solve this problem?
Thanks in advance,
Palak
|
| Author |
Message |
6e

|
Posted: 2005-7-22 21:52:00 |
Top |
java-programmer, JProgressBar bar not showing up till complete
Hi thanks for reading.
Im sure the answer to this is simple, it just eludes me at this point.
Im tring to use a progress bar to simply show the progress of 55 files
being created and saved to disk. However when I use the JProgressBar
in my code, it only shows up when the task is completed... Obviously I
need it to be shown updating the entire time, seems like im missing
something pretty basic.
heres the code for your perusal, the updates occurs later in the code,
but since its not showing up until it is completed I believe the error
is here + Thanks! :
//start up progress FRAME
JFrame jfrProgress = new JFrame("Creating Movie...");
Container contentPane = jfrProgress.getContentPane();
SpringLayout layout = new SpringLayout();
contentPane.setLayout(layout);
//set up progress BAR
JProgressBar pbProgress;
pbProgress = new JProgressBar(ISTARTFRAME, iFinalFrame);
pbProgress.setValue(ISTARTFRAME);
pbProgress.setStringPainted(true);
pbProgress.setString("Step 1 - Creating Files...");
pbProgress.setSize(500, 40);
//add progress bar to frame
jfrProgress.getContentPane().add(pbProgress);
//display frame
jfrProgress.setLocation(400, 300);
jfrProgress.setSize(250, 100);
pbProgress.setVisible(true);
jfrProgress.setVisible(true);
|
| |
|
| |
 |
Andrew Thompson

|
Posted: 2005-7-22 22:19:00 |
Top |
java-programmer >> JProgressBar bar not showing up till complete
On 22 Jul 2005 06:51:33 -0700, 6e wrote:
> Im sure the answer to this is simple, it just eludes me at this point.
>
> Im tring to use a progress bar to simply show the progress of 55 files
> being created and saved to disk. However when I use the JProgressBar
> in my code, it only shows up when the task is completed... Obviously I
> need it to be shown updating the entire time, seems like im missing
> something pretty basic.
Now thoroughly out of date, but this qn. was covered in
an early version..
<http://www.physci.org/guifaq.jsp#2.1>
Note that GUI questions are best directed to..
<http://www.physci.org/codes/javafaq.jsp#cljg>
HTH
--
Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
See You On Some Other Channel
|
| |
|
| |
 |
aotemp

|
Posted: 2005-7-22 22:28:00 |
Top |
java-programmer >> JProgressBar bar not showing up till complete
Hi thanks for reading.
Im sure the answer to this is simple, it just eludes me at this point.
Im tring to use a progress bar to simply show the progress of 55 files
being created and saved to disk. However when I use the JProgressBar
in my code, it only shows up when the task is completed... Obviously I
need it to be shown updating the entire time, seems like im missing
something pretty basic.
heres the code for your perusal, the updates occurs later in the code,
but since its not showing up until it is completed I believe the error
is here + Thanks! :
//start up progress FRAME
JFrame jfrProgress = new JFrame("Creating Movie...");
Container contentPane = jfrProgress.getContentPane();
SpringLayout layout = new SpringLayout();
contentPane.setLayout(layout);
//set up progress BAR
JProgressBar pbProgress;
pbProgress = new JProgressBar(ISTARTFRAME,
iFinalFrame);
pbProgress.setValue(ISTARTFRAM璄);
pbProgress.setStringPainted(tr璾e);
pbProgress.setString("Step 1 - Creating Files...");
pbProgress.setSize(500, 40);
//add progress bar to frame
jfrProgress.getContentPane().a璬d(pbProgress);
//display frame
jfrProgress.setLocation(400, 300);
jfrProgress.setSize(250, 100);
pbProgress.setVisible(true);
jfrProgress.setVisible(true);
|
| |
|
| |
 |
aotemp

|
Posted: 2005-7-22 22:30:00 |
Top |
java-programmer >> JProgressBar bar not showing up till complete
also I read the faq, but none of the answers SEEM to pertain to this
case...
|
| |
|
| |
 |
Thomas Weidenfeller

|
Posted: 2005-7-22 22:51:00 |
Top |
java-programmer >> JProgressBar bar not showing up till complete
email***@***.com wrote:
> also I read the faq, but none of the answers SEEM to pertain to this
> case...
I don't remember that there is something pertinent to progress bars in
the FAQ - and I should know :-) But Q3.1 and Q3.2 might apply.
Particular, because you didn't show us how you run the file creation and
how you do the updating (see Q2.4 in the FAQ for this one).
/Thomas
--
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/
|
| |
|
| |
 |
Thomas Fritsch

|
Posted: 2005-7-22 23:11:00 |
Top |
java-programmer >> JProgressBar bar not showing up till complete
6e wrote:
> Hi thanks for reading.
>
> Im sure the answer to this is simple, it just eludes me at this point.
>
> Im tring to use a progress bar to simply show the progress of 55 files
> being created and saved to disk. However when I use the JProgressBar
> in my code, it only shows up when the task is completed... Obviously I
> need it to be shown updating the entire time, seems like im missing
> something pretty basic.
>
> heres the code for your perusal, the updates occurs later in the code,
> but since its not showing up until it is completed I believe the error
> is here + Thanks! :
Since you didn't bother posting a complete compilable example, this is
how I completed it (based on my vague guesses) to get it compiled and
running:
import java.awt.*;
import javax.swing.*;
public class Main
{
static int ISTARTFRAME = 0;
public static void main(String[] args)
{
int iFinalFrame = 100;
>
> //start up progress FRAME
> JFrame jfrProgress = new JFrame("Creating Movie...");
> Container contentPane = jfrProgress.getContentPane();
> SpringLayout layout = new SpringLayout();
> contentPane.setLayout(layout);
>
> //set up progress BAR
> JProgressBar pbProgress;
> pbProgress = new JProgressBar(ISTARTFRAME, iFinalFrame);
> pbProgress.setValue(ISTARTFRAME);
> pbProgress.setStringPainted(true);
> pbProgress.setString("Step 1 - Creating Files...");
> pbProgress.setSize(500, 40);
>
> //add progress bar to frame
> jfrProgress.getContentPane().add(pbProgress);
>
> //display frame
> jfrProgress.setLocation(400, 300);
> jfrProgress.setSize(250, 100);
> pbProgress.setVisible(true);
> jfrProgress.setVisible(true);
>
}
}
For me the progressbar shows up, and it visualizes 0% as expected,
because the progress bar is never updated by further
pbProgress.setValue(...) calls.
I'm sure you would get much more enlightening answers from this group,
if you post a SSCCE <http://www.physci.org/codes/sscce.jsp> here.
--
"Thomas:Fritsch$ops:de".replace(':','.').replace('$','@')
|
| |
|
| |
 |
6e

|
Posted: 2005-7-22 23:25:00 |
Top |
java-programmer >> JProgressBar bar not showing up till complete
You're right, if the last update of the progress bar is a 0%, then it
will be displayed, but while its updating, it does not show up until it
is completed. Thanks for the response though.
I decided to fully alter and customize the Progress monitor example
located here, for anyone with similar difficulties:
http://java.sun.com/docs/books/tutorial/uiswing/components/progress.html
|
| |
|
| |
 |
6e

|
Posted: 2005-7-22 23:26:00 |
Top |
java-programmer >> JProgressBar bar not showing up till complete
I found an example online that I plan to fully customize and recode its
located here for all who are searching
its the progress monitor demo...
http://java.sun.com/docs/books/tutorial/uiswing/components/progress.html
|
| |
|
| |
 |
Andrew Thompson

|
Posted: 2005-7-22 23:32:00 |
Top |
java-programmer >> JProgressBar bar not showing up till complete
On Fri, 22 Jul 2005 16:50:36 +0200, Thomas Weidenfeller wrote:
> email***@***.com wrote:
>> also I read the faq, but none of the answers SEEM to pertain to this
>> case...
>
> I don't remember that there is something pertinent to progress bars in
> the FAQ - and I should know :-) But Q3.1 ..
Aaah yes.. That shows how thoroughly outdated is the
copy at physci [to which I linked as qn. 2.1 (on c.l.j.p.)].
> ..and Q3.2 might apply.
Yep. That's what I'm thinking - 'blocking the EDT' sounds the
root cause, lacking evidence to the contrary..
> Particular, because you didn't show us how you run the file creation and
> how you do the updating (see Q2.4 in the FAQ for this one).
Splendid idea, Thomas.
--
Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
Too Hot For Radio
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- visit http://www.real-article.com/java/index.phpThe www.real-article.com website provides a ton of information about
java. In addition, you will find extensive information on leading java
to help you on your way to success.
Please have a look at our java articles, products, resources, and
additional information located throughout www.real-article.com.
We strive to provide only quality articles, so if there is a specific
topic related to java that you would like us to cover, please contact
us at any time.
visit http://www.real-article.com/java/index.php
- 2
- java access to USB MAC OS XI have a simple requirement at this point an Apple MAC OS X - that is
to detect the presence or lack of a USB device from java.
I have read about JSR 80, javax.usb, jUSB and all indicate not
available in Mac OS X.
I also know that in linux, I can do a "cat /proc/bus/usb/devices" and
get a list of devices connected to the machine.
Now Mac OS X is "linux" - yet there doesn't appear to be /proc/dev/...
etc.
Any suggestions on how to get the presence or lack of a USB device
from java on Mac OS X??
- 3
- directly assigning to a field (was Java without OO)Isaac Gouy wrote:
>As-far-as-you're-concerned is OO completely defined by Smalltalk practices?
>
>If that's the case then please just write "Smalltalk OO" instead of "OO"
>
Hmm. The point of reading the references might not be to learn
Smalltalk, but to get a different perspective. After having used
Objective-C, C++, Python, and Java (not in that order) I think the
perspective of reading/using other languages is important. It
influences the programmer, and even suggests there may be better
languages to solve problems in than the ones they already use.
I don't think most Java programmers' investment in Java is so frail that
reading a Smalltalk book would shatter their world view. Perhaps it
would simply give them another perspective on their own class designs.
Same reason some people read editorals from multiple political viewpoints.
--
.tom
remove email address' dashes for replies
opensource middleware at <http://isectd.sourceforge.net>
http://gagne.homedns.org
- 4
- Java 1.5 and system fontsHi,
I don't know if this is the right group to ask this (if not, where
should I post?), but here we go: I have two machines, both running
Debian, and installed the official Sun JDK (1.5.0_05) on both. Here's
the question: on one machine, Java applications find all fonts that
have been installed on the system; on the other, Java applications only
find a very small set of standard fonts.
Obviously, there must a difference between the two systems (they are
certainly not identical, although they are pretty similar) -- but I
can't think what it could be. It is certainly not a configuration in
the JDK itself, because the two installations on both machines are
identical (I even diff-ed both directories to be sure :-) What I don't
know is how to make fonts available to the JVM - or, what I have done
wrong/correct on either machine. I know the fonts have been installed,
because running Gimp (for instance) on either machine finds all the
fonts. The fontconfig configuration in /etc/fonts is also identifical
as far as I can see (I don't know if that has anything to do with
anything, but I checked anyway :) Also, both systems are running defoma
(the Debian font manager), but I don't know if that can help in any way
here.
Any pointers or hints would be appreciated,
Thanks,
Edsko
- 5
- Using Using EventListenerList for non gui object listeningI have a non gui object that i would like to make available for
listeners but instead of using collection/list i am using the class
javax.swing.event.EventListenerList to hold my listeners.
I understand that if it's non gui then i should not involve gui classes.
However, is this acceptable?
- 6
- resolving class loaderHi,
I'm working in an environment with many class loaders. A code in some
class, creates a data for me to persist. In order to read it back, I
must find the right class loader to use. In a simple scenario, if all
the data came from one jar, I could just keep the url to that jar. But,
if the data comes from various jars (say the class loader is a war
class loader, so it has reference to 3rd party libraries), then how can
I resolve it when loading the data? Meaning, what keys do I need to
persist so that I can find the same class loader when reading the data?
Thanx,
Ittay
- 7
- Web Services Performance problemI am trying to use web services in our project in websphere server, In
this we are using swing as client to connect the EJB, which is running
thru web services. we are able to connect EJB and get the response
from websphere server using web services. The below code is in EJB as
business method
public Vector getData(){
Vector v = new Vector();
for(int i=0;i<20000;i++)
v.add("String");
return v;
}
I use SOAP RPC encoding and in the client side i use SOAP.jar to
connect the web service and get the response.
but it takes around 8 seconds to get the response.
at the same time, i used below code in EJB as business method
public Vector getData(){
Vector v = new Vector();
for(int i=0;i<20000;i++)
v.add(new DataObject("String"));
return v;
}
public class DataObject{
String str = null;
public DataObject(String data){
str = data;
}
public String getData(){
return str;
}
public void setData(String data){
this.data = data;
}
}
here, i create object for my own DataObject class.
now i connect to this EJB, it takes double the amount of time to get
the response.
Please help me, Is there any other way to increase the performance of
web services?
Thanks,
Raja
- 8
- J2ME . How do I start?Hello,
I need to write an application for MIDP 2.0 phones. Once I write the
application, will it work on every phone that supports MIDP 2.0? What is
the best way to get started? Which tools should I use? Any online tutorial
videos or good books? Thanks a lot.
T.I.
- 9
- which vs thatI am writing documentation, and I dawned on me that I don't know the
difference between "which" and "that". I have a vague intuition which
to use, but there is no logic behind it.
In fact I don't think I could define the difference between
what, which and that.
I suspect "which" has to do with picking one from a small set, where
"that" provides an algorithm for inclusion.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
- 10
- YourKit Java Profiler 2.1 Beta 2 ReleasedChanges in build 304:
- IDE integration: Eclipse is supported under Linux
- New agent parameter 'onexit' allows to automatically capture
snapshots on profiled application exit. See bundled documentation for
details.
- New agent parameter 'debugcompat' added as a workaround for JVM bug
that causes hangup of profiled application launched in remote debug
mode (happens, for example, when Debug is used in IntelliJ IDEA 4.x).
See bundled documentation for details.
- Percents as well as absolute values are shown in CPU and memory
views
- IDE integration: navigation to source code is supported for Eclipse
(if you have previous build installed, please run 'Tools | Integrate
with IDE...' again to install the new plugin)
The list of all improvements and features planned for 2.1 can be found
at
http://www.yourkit.com/preview/index.jsp
We welcome your feedback at email***@***.com
Best regards,
YourKit Team
- 11
- Problem accessing Windows clipboardHi
In my java program I have a class which contains some code which accesses
the Windows clipboard.
When I use this class in a standalone application (JFrame) I can retrieve
data from the clipboard no problem.
When I use this very same class in a JApplet which I run in Internet
Explorer, I cannot get the data from the Windows clipboard.
The line of code that my JApplet gets hung up on is ...
Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard();
This line of code does execute properly when executed in the standalone
application.
My class does contain the line: import java.awt.datatransfer.*;
I am using the following page from the Java Developer's Almanac as a
reference.
http://javaalmanac.com/egs/java.awt.datatransfer/ToClip.html
is there a known issue with this sort of thing that I don't know about?
Hopefully I have provided enough information for you.
Thanks in advance.
Fred.
- 12
- stability problems under eclipse on amd64 platform
I would like the following patch file to be tested and committed to the
java/jdk15 port until patch 6 is released on FreeBSD. This patch has
eliminated crashes for me and has made a significant difference in the
stability of eclipse.
Cheers,
Sean
- 13
- finding text in formatted JTextPane by using scannerHello I'm trying to create a program, which reads text from a text
file, by using a scanner, finds definitions for particular phrases,
depending on a rule list and stores the data in a list, by using
objects. For example, there is a rule list with the rules : is
/sentence, means /sentence, is referred to /sentence. If the user
insert the term Hypertension, then there will be a search on the
textfile by using the scanner, find the sentences that contain the
expressions from the rulelist and store them in objects ( Hypertension
is referred to blah blah blah). Each time I create an object, I store
to it the index where the sentence starts and where the sentence ends..
Now the hard part. I display the data in a jlist. They are of the form:
sentencestart, sentenceend,sentence. I need when a user clicks on an
object of this list, a JPane window to popup with the original text
(formatted) and highlight the sentence. The problem that I have is that
while I am using scanner to retrieve the words, it doesn't count the
line return character. So each time I save the place the sentence
starts and ends, it doesn't take in consideration the line return
characters. That leads the program to highlight wrong characters in the
JTextPane.
Is there any way, when I use the scanner, each time it finds a line
break or return character to take it in consideration?
Thank you... :)
- 14
- help me finding pathHi,
How to find the Path String from jrePath to jawtPath?
Thanks,
Sri
--
Message posted via http://www.javakb.com
- 15
- Java help websiteI am very new for Java programming, and I am looking for some Java help
website with a lot of examples and explan, anyone can help
|
|
|