 |
 |
Index ‹ java-programmer
|
- Previous
- 1
- Why is java considered a language for "web" or "internet" programming?Tom Forsmo wrote:
>
> BillJosephson wrote:
>> But I meant that java, like C and
>> C++, doesn't seem to have anything special that would make it good for
>> programming for the web....
>
> No not the languages alone, but the platform does. Because of all the
> libraries and web frameworks that exists for the platform that makes web
> programming simple.
>
> I am not saying it necessarily makes it simpler than e.g. perl or php,
> but I wouldn't know since I haven't worked in such web project in a long
> time and therefore don't know much about what libraries/frameworks they
> use.
>
> tom
Java has very decent Servlet/JSP/JDBC set of tools and APIs for web
programming, making using Model/View/Controller method of web
programming relatively easy.
For this, if you use NetBeans, you get debugger where you can debug live
servlet, and even debug into JSP page - all this is much easier than in
any other tools I have seen.
Also, after deployng all these servlets become preloaded bytecode and
then preloaded native code - so they run at native speed, which makes
them much faster than what can be achieved with interpreted language.
- 1
- Need Help on J2SECan you help me code these two programs? i can't figure out how to do
them.
1. Write a program that displays your name inside a text box on the
console screen, like this:
+----+
|Koos|
+----+
Have the program prompt for a name and drawn the box around it.
Repeatedly prompt until the user enters "q" or "Q" to quit.
2. Write a program that prints a face, using text characters. Ex.
//////
| o o |
(| ^ |)
| \_/ |
-----
Thank You
Can you send your answer to email***@***.com soon.
- 2
- Bug#227594: abidjan autonomic amazonSnatch up Perscriptions and Mediactions immediately
http://adieuarmature.abutted%2Elagtiu.com
, abidjanautonomic
--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com
- 4
- java numerical library recomendationHi,
I'm a relative newcomer to Java and I was wondering if there any good
numerical libraries (on the lines of GSL for C) available? Specifically
I'm looking for linear algebra routines, least squares and minimization
routines. I'm interested mainly in Opensource libraries but I am also
open to commercial libraries.
Thanks,
- 4
- CORBA simulatorI'm looking for a CORBA simulator to help develop an application.
Does any of you have any experience to share or advice?
Bill
- 12
- discount,Timberland ( paypal accept ) ( www.world-wholesaler.com )discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
discount,Timberland ( paypal accept ) ( www.world-wholesaler.com
)
- 12
- Axis deserialization of subclassesHi
I'm having a problem with deserializing java subclasses with Axis. Let
me explain with an example.
Class ParentClass {
int a;
}
Class SubClass extends ParentClass {
int b;
}
...
SubClass sc = new SubClass();
// sendClass is defined to take a ParentClass as parameter in the WSDL
sendClass(SubClass);
// --- Everythings works well until this point, i.e. my apache server
receives the SubClass with the extra "int b"-member, eventhough
sendClass is defined to take ParentClass as paramater.
// Problem:
// getClass is defined to return ParentClass in the WSDL
SubClass sc2 = getClass("sc"); // getClass returns SubClass if
parameter == "sc"
// This is where Axis complains since it doesn't expect the extra
member "int b" and thereby no SubClass is expected.
Any ideas is highly appreciated.
I've tested axis 1.3, 1.4 and axis2, they all throw me exceptions.
Cheers
- 13
- How to set font attributes in comboboxI could not make head or tail out of sun's tutorial on
combobox renderer. The example given is getting compiled and
running ok, but how to use those things to my program.
relevant lines I have used in my program are given below.
compiler is giving "can't resolve symbol" on setFont line.
and when I am changing that fontname to
normalFont.deriveFont(Font.ITALIC), it is compiling and
running, but the data that was appearing ok previously, is
all appearing blank.
I am moving data in combobox and it is appearing. Just that
its font, size and color is not ok. I want to set font to
some unicode font, size to 18, color to blue.
If possible, I want different fonts, sizes, colors on
different parts of same entry in combobox. something like
set text: (font1, size1, color1) abc (font2, size2, color2) xyz
I have tried <html> as was used on JButtons but that is not
working.
how to do it?
thanks.
-Rawat
------------------
ComboBoxRenderer cbRenderer;
JComboBox ctrlComboBox;
cbRenderer = new ComboBoxRenderer();
ctrlComboBox = new JComboBox();
ctrlComboBox.setRenderer(cbRenderer);
class ComboBoxRenderer extends JLabel implements
ListCellRenderer {
public ComboBoxRenderer() {
}
public Component getListCellRendererComponent(
JList list,
Object value,
int index,
boolean isSelected,
boolean
cellHasFocus) {
setFont("Arial Unicode MS");
return this;
}
}
- 14
- Need help with regex pleaseI'm trying to validate a phone number value. I have passed the value
to my constructor as a String type because I would like to catch the
leading zero in the number. I want to iterate through the String
phoneNum and confirm that only [0-9] were entered as characters of
phoneNum. Below is my code attempt which fails:
phoneNum = phoneNum.trim();
Pattern p = Pattern.compile("\\d");
boolean found = p.matcher(phoneNum).lookingAt();
if (!found){
System.out.println("Error in contact phone number");
}
else{
this.phoneNum = phoneNum;
System.out.println("Phone number was successfully
assigned");
}
Could anyone post code/ideas/principles that could make this idea
work, please?
Thanks,
Rick
- 14
- Apache Poi set Date Format on a columnHi, I use Apache Poi to read/write from/to Excel.
I'm try to set a column of a sheet to show all values with correct
format "m/d/yy"
I'm used:
HSSFCellStyle cellStyle = wb.createCellStyle();
cellStyle.setDataFormat(HSSFDataFormat.getBuiltinFormat("m/d/yy"));
HSSFCell cellaData = row.createCell(new Integer(0).shortValue());
cellaData.setCellStyle(cellStyle);
cellaData.setCellValue(data);
This works fine, but format all cells of sheet and with much rows excel
return a warning.
I'm serching a method to format column entire.
Thank's Lorenzo
- 15
- char array to numeric data types - fastest conversionI know i can convert the char array to a string then to the appropiate
numeric data types (float, double etc) however I'm doing this millions
of times and throughput is critical. Any ideas if there is SDK function
or some example code out there that removes the middle step of creating
a string object.
TIA
- 15
- HTTP address of user??I've just read a proposal for a new J2EE web system - or maybe a
cut-down version of an existing one. Regardless, there are some new
requirements. One of those is to record the IP address of the user.
I'm using Struts, so my Action objects get passed an
HttpServletRequest object and an HttpServletResponse object. I can't
figure out how to get the IP address of the user from those things. I
can get HTTP headers, but it's not there. I can get an HttpSession
object, but it doesn't seem to be there. There's a ServletContext
object that can be obtained from the HttpSession, but that doesn't
seem to do it either.
To complicate matters, this J2EE system runs behind an IIS gateway. Is
there a simple way to do this, or does the gateway have to be modified
to pass the IP address as another bit of data?
--
Tim Slattery
email***@***.com
- 15
- How to get the root directory ?> I know how to get the user home directory with
> System.getProperty("user.home"), but I cannot find any
> system property to get the root directory in a file
> tree. You know, the "My PC" in Windows or the "/" directory
> in Unix. Is it possible with java ?
FileSystemView.getFileSystemView().getHomeDirectory()
or
FileSystemView.getFileSystemView().getRoots()[0];
____________
http://reader.imagero.com the best java image reader.
- 15
- VM Exception when PrintingHi,
I have 2 clients each using the HP USB printers, and both have the
same problem. Please can someone tell me what the problem is, or at
least let me know where I can go to get some answers.
Operating system: Windows 98
JRE :1.4.2 (downloaded yesterday 2004/09/21)
Printer :HP 1110 and HP 1010 - USB
Same code works without a problem on Windows 98, Printer HP Deskjet
540, Lexmark and some others.
Same code also works on Windows 2000 Printer HP Deskjet 540
The problem:
An unexpected exception has been detected in native code outside the
VM.
Unexpected Signal : EXCEPTION_FLT_INVALID_OPERATION (0xc0000090)
occurred at PC=0x80426F1
Function=[Unknown.]
Library=(N/A)
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for
possible
reason and solutions.
Current Java thread:
at java.awt.font.TextLayout$OptInfo.create(TextLayout.java:331)
at java.awt.font.TextLayout.fastInit(TextLayout.java:689)
at java.awt.font.TextLayout.<init>(TextLayout.java:476)
at sun.print.PeekGraphics.drawString(PeekGraphics.java:850)
at MW.framework.print.DefaultPrintableHeader.print(Unknown Source)
at MW.framework.print.DefaultPrintable.print(Unknown Source)
at sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:1512)
at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1110)
at MW.framework.print.WPrintController.reply(Unknown Source)
at MW.framework.general.SwitchingService.b(Unknown Source)
at MW.framework.general.SwitchingService.c(Unknown Source)
at MW.framework.general.d.run(Unknown Source)
Dynamic libraries:
0x7CC00000 - 0x7CC1D000 C:\WINDOWS\SYSTEM\IMAGEHLP.DLL
Heap at VM Abort:
Heap
def new generation total 4672K, used 3801K [0x10010000, 0x10520000,
0x109e0000)
eden space 4160K, 85% used [0x10010000, 0x10384b78, 0x10420000)
from space 512K, 51% used [0x104a0000, 0x104e19f8, 0x10520000)
to space 512K, 0% used [0x10420000, 0x10420000, 0x104a0000)
tenured generation total 60544K, used 8064K [0x109e0000,
0x14500000, 0x18010000)
the space 60544K, 13% used [0x109e0000, 0x111c02c8, 0x111c0400,
0x14500000)
compacting perm gen total 10496K, used 10399K [0x18010000,
0x18a50000, 0x1c010000)
the space 10496K, 99% used [0x18010000, 0x18a37e58, 0x18a38000,
0x18a50000)
Local Time = Wed Sep 22 11:26:54 2004
Elapsed Time = 60
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_05-b04 interpreted mode)
#
Many thanks
Maureen
- 16
- RE:FreeTTS gives error Line unavailable...Dear Friend,
I am sorry about it. One of my friend tested the same on freeBSD but I did
not know about version so I omit it. I think it was 5.x. But in freeBSD my
friend got the same error.
./Nikhil
On Wed, 5 Nov 2003 13:52:38 -0500, Lapinski, Michael (Research)
<email***@***.com> wrote:
> let me get this straight ->Operating System : Red Hat Linux 7.1 KDE
> 2.2.1
> and your posting to freebsd-java? i think you got the wrong
> list.
>
> --------------------------------------------------
> Michael Lapinski
> Computer Scientist
> GE Research
>
>
> "I think there is a world market for maybe five computers."
> - IBM Chairman Thomas Watson, 1943
>
>
> ->-----Original Message-----
> ->From: Nikhil Sidhaye [mailto:email***@***.com]
> ->Sent: Wednesday, November 05, 2003 8:39 AM
> ->To: email***@***.com
> ->Subject: ->
> ->
> ->Dear Friends,
> ->
> -> i am able to compile FreeTTS demo programs in linux. ->but when i try
> to run ->them it gives te error as 'Line unavailable Format is -
> >PCM_SIGNED, 16000.0 ->Hz, 16 bit, mono, big-endian, audio data' it is
> able to play ->all the other ->audio files using javax.sound. Though I
> can use XMMS to play my audio ->files. Also my (arts)sound srver works
> smoothly on default settings.
> ->
> -> However same program works on my windows 98 SE.
>
>
> ->JDK 1.4.0 beta release.
> ->
> ->
> ->./Nikhil
---------------------------------
A mind once stretched by a new idea,
Never regains its original dimensions.
---------------------------------
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
|
| Author |
Message |
Donna

|
Posted: 2005-2-9 5:10:00 |
Top |
java-programmer, incomparable types
Many thanks,
That did the trick.
Donna
|
| |
|
| |
 |
Stewart Gordon

|
Posted: 2005-2-9 21:57:00 |
Top |
java-programmer >> incomparable types
Donna wrote:
> Many thanks,
>
> That did the trick.
What did what trick?
Stewart.
--
My e-mail is valid but not my primary mailbox. Please keep replies on
the 'group where everyone may benefit.
|
| |
|
| |
 |
Thomas Hawtin

|
Posted: 2006-8-2 20:55:00 |
Top |
java-programmer >> incomparable types
Jono wrote:
> Hi everyone,
> I have a reasonably strong .NET background and I have a problem
> understanding the Class class in Java. The Type class in .NET (along
> with the typeof() operator and System.Object's GetType() method) seems
> pretty straightforward to me: an instance of the Type class is
> instantiated for every type loaded into the system (even with
> generics). But it's not so easy to understand with Java, it seems. If I
> try to compile the sample code below it fails on line 3 of the main
> method. If I explicitly cast the left-hand and right-hand sides of the
> equality expression (as per line 4) to Class, then the compiler is
> happy. Please could someone let me know what the subtle difference is
> that I am missing out on?
> public class NewClass {
>
> public static void main(String[] args)
> {
> Integer i = new Integer(123);
> String s = "456";
> //System.out.println(i.getClass() == s.getClass()); //
> compilation failure
> System.out.println(((Class)i.getClass()) ==
> ((Class)s.getClass()));
> }
>
> }
An object of type Class<capture of ? extends Integer> cannot be the same
object as an object of type Class<capture of ? extends String> (unless
you write unchecked code, and null is an odd case). The is no type T
such that Class<T> is compatible with both of those types. No T
simultaneously extends both String and Integer.
Similarly the expression "i instanceof String" and "i == s" are nonsense
and will not compile.
Tom Hawtin
|
| |
|
| |
 |
Jono

|
Posted: 2006-8-2 23:14:00 |
Top |
java-programmer >> incomparable types
Hi everyone,
I have a reasonably strong .NET background and I have a problem
understanding the Class class in Java. The Type class in .NET (along
with the typeof() operator and System.Object's GetType() method) seems
pretty straightforward to me: an instance of the Type class is
instantiated for every type loaded into the system (even with
generics). But it's not so easy to understand with Java, it seems. If I
try to compile the sample code below it fails on line 3 of the main
method. If I explicitly cast the left-hand and right-hand sides of the
equality expression (as per line 4) to Class, then the compiler is
happy. Please could someone let me know what the subtle difference is
that I am missing out on?
Thanks,
Jono
public class NewClass {
public static void main(String[] args)
{
Integer i = new Integer(123);
String s = "456";
//System.out.println(i.getClass() == s.getClass()); //
compilation failure
System.out.println(((Class)i.getClass()) ==
((Class)s.getClass()));
}
}
|
| |
|
| |
 |
Eric Sosman

|
Posted: 2006-8-2 23:20:00 |
Top |
java-programmer >> incomparable types
Jono wrote On 08/02/06 11:14,:
> Hi everyone,
> I have a reasonably strong .NET background and I have a problem
> understanding the Class class in Java. The Type class in .NET (along
> with the typeof() operator and System.Object's GetType() method) seems
> pretty straightforward to me: an instance of the Type class is
> instantiated for every type loaded into the system (even with
> generics). But it's not so easy to understand with Java, it seems. If I
> try to compile the sample code below it fails on line 3 of the main
> method. If I explicitly cast the left-hand and right-hand sides of the
> equality expression (as per line 4) to Class, then the compiler is
> happy. Please could someone let me know what the subtle difference is
> that I am missing out on?
> Thanks,
> Jono
>
> public class NewClass {
>
> public static void main(String[] args)
> {
> Integer i = new Integer(123);
> String s = "456";
> //System.out.println(i.getClass() == s.getClass()); //
> compilation failure
> System.out.println(((Class)i.getClass()) ==
> ((Class)s.getClass()));
> }
>
> }
I see nothing wrong with your code -- and neither does
javac. When I remove the //, your code compiles just fine
for me and outputs "false" twice.
--
email***@***.com
|
| |
|
| |
 |
Jono

|
Posted: 2006-8-2 23:59:00 |
Top |
java-programmer >> incomparable types
My compiler version is 1.5.0_07, but I also tried with 1.5.0_06 and got
the same result. The class won't compile if I uncomment the 3rd line of
main().
NewClass.java:23: incomparable types: java.lang.Class<c
apture of ? extends java.lang.Integer> and java.lang.Class<capture of ?
extends
java.lang.String>
System.out.println(i.getClass() == s.getClass());
^
1 error
Eric Sosman wrote:
> Jono wrote On 08/02/06 11:14,:
> > Hi everyone,
> > I have a reasonably strong .NET background and I have a problem
> > understanding the Class class in Java. The Type class in .NET (along
> > with the typeof() operator and System.Object's GetType() method) seems
> > pretty straightforward to me: an instance of the Type class is
> > instantiated for every type loaded into the system (even with
> > generics). But it's not so easy to understand with Java, it seems. If I
> > try to compile the sample code below it fails on line 3 of the main
> > method. If I explicitly cast the left-hand and right-hand sides of the
> > equality expression (as per line 4) to Class, then the compiler is
> > happy. Please could someone let me know what the subtle difference is
> > that I am missing out on?
> > Thanks,
> > Jono
> >
> > public class NewClass {
> >
> > public static void main(String[] args)
> > {
> > Integer i = new Integer(123);
> > String s = "456";
> > //System.out.println(i.getClass() == s.getClass()); //
> > compilation failure
> > System.out.println(((Class)i.getClass()) ==
> > ((Class)s.getClass()));
> > }
> >
> > }
>
> I see nothing wrong with your code -- and neither does
> javac. When I remove the //, your code compiles just fine
> for me and outputs "false" twice.
>
> --
> email***@***.com
|
| |
|
| |
 |
Jono

|
Posted: 2006-8-3 0:16:00 |
Top |
java-programmer >> incomparable types
Not having a 1.4.2 compiler at my disposal, I used the online Java
compiler at http://www.innovation.ch/ and the class compiled without
errors. Also, the 1.5.* compiler's error message has something to do
with angle-brackets so I presume that what used to hold true for Java
has been broken by the addition of generics to the language. I'd still
like someone to shed some light on the change, if possible.
Regards,
Jono
Jono wrote:
> My compiler version is 1.5.0_07, but I also tried with 1.5.0_06 and got
> the same result. The class won't compile if I uncomment the 3rd line of
> main().
>
> NewClass.java:23: incomparable types: java.lang.Class<c
> apture of ? extends java.lang.Integer> and java.lang.Class<capture of ?
> extends
> java.lang.String>
> System.out.println(i.getClass() == s.getClass());
> ^
> 1 error
>
> Eric Sosman wrote:
> > Jono wrote On 08/02/06 11:14,:
> > > Hi everyone,
> > > I have a reasonably strong .NET background and I have a problem
> > > understanding the Class class in Java. The Type class in .NET (along
> > > with the typeof() operator and System.Object's GetType() method) seems
> > > pretty straightforward to me: an instance of the Type class is
> > > instantiated for every type loaded into the system (even with
> > > generics). But it's not so easy to understand with Java, it seems. If I
> > > try to compile the sample code below it fails on line 3 of the main
> > > method. If I explicitly cast the left-hand and right-hand sides of the
> > > equality expression (as per line 4) to Class, then the compiler is
> > > happy. Please could someone let me know what the subtle difference is
> > > that I am missing out on?
> > > Thanks,
> > > Jono
> > >
> > > public class NewClass {
> > >
> > > public static void main(String[] args)
> > > {
> > > Integer i = new Integer(123);
> > > String s = "456";
> > > //System.out.println(i.getClass() == s.getClass()); //
> > > compilation failure
> > > System.out.println(((Class)i.getClass()) ==
> > > ((Class)s.getClass()));
> > > }
> > >
> > > }
> >
> > I see nothing wrong with your code -- and neither does
> > javac. When I remove the //, your code compiles just fine
> > for me and outputs "false" twice.
> >
> > --
> > email***@***.com
|
| |
|
| |
 |
Oliver Wong

|
Posted: 2006-8-3 0:25:00 |
Top |
java-programmer >> incomparable types
"Jono" <email***@***.com> wrote in message
news:email***@***.com...
> My compiler version is 1.5.0_07, but I also tried with 1.5.0_06 and got
> the same result. The class won't compile if I uncomment the 3rd line of
> main().
>
> NewClass.java:23: incomparable types: java.lang.Class<c
> apture of ? extends java.lang.Integer> and java.lang.Class<capture of ?
> extends
> java.lang.String>
> System.out.println(i.getClass() == s.getClass());
> ^
> 1 error
See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6448774
- Oliver
|
| |
|
| |
 |
Jono

|
Posted: 2006-8-3 2:04:00 |
Top |
java-programmer >> incomparable types
Hi Oliver,
I believe that the bug you pointed out is specific to one of the beta
versions of Java 6, and the referenced page doesn't give any more clues
as to what's happening when the sample code gets compiled by a Java 5
compiler. I've been reading reams of documents with phrases like type
erasure, reification and synthetic bridge methods and I really hope the
only answer doesn't lie buried inside one of them!
Cheers,
Jono
Oliver Wong wrote:
> "Jono" <email***@***.com> wrote in message
> news:email***@***.com...
> > My compiler version is 1.5.0_07, but I also tried with 1.5.0_06 and got
> > the same result. The class won't compile if I uncomment the 3rd line of
> > main().
> >
> > NewClass.java:23: incomparable types: java.lang.Class<c
> > apture of ? extends java.lang.Integer> and java.lang.Class<capture of ?
> > extends
> > java.lang.String>
> > System.out.println(i.getClass() == s.getClass());
> > ^
> > 1 error
>
> See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6448774
>
> - Oliver
|
| |
|
| |
 |
Jono

|
Posted: 2006-8-3 2:25:00 |
Top |
java-programmer >> incomparable types
Tom,
Thank you for your explanation, I'm sure it will finally hit home after
a couple of re-reads, but from what I understand the inclusion of
generics has been bundled with a new Class class that has some kind of
[invisible?] object hierarchy of its own. Presumably this hierarchy
exists at some stage during compilation, which is how the compiler
knows that i's type isn't convertible to s's type. If you reflect over
either of the types at runtime they're both the same java.lang.Class,
but then that's probably something to do with the dreaded "type
erasure". I welcome your comments.
Cheers,
Jono
Thomas Hawtin wrote:
> Jono wrote:
> > Hi everyone,
> > I have a reasonably strong .NET background and I have a problem
> > understanding the Class class in Java. The Type class in .NET (along
> > with the typeof() operator and System.Object's GetType() method) seems
> > pretty straightforward to me: an instance of the Type class is
> > instantiated for every type loaded into the system (even with
> > generics). But it's not so easy to understand with Java, it seems. If I
> > try to compile the sample code below it fails on line 3 of the main
> > method. If I explicitly cast the left-hand and right-hand sides of the
> > equality expression (as per line 4) to Class, then the compiler is
> > happy. Please could someone let me know what the subtle difference is
> > that I am missing out on?
>
> > public class NewClass {
> >
> > public static void main(String[] args)
> > {
> > Integer i = new Integer(123);
> > String s = "456";
> > //System.out.println(i.getClass() == s.getClass()); //
> > compilation failure
> > System.out.println(((Class)i.getClass()) ==
> > ((Class)s.getClass()));
> > }
> >
> > }
>
> An object of type Class<capture of ? extends Integer> cannot be the same
> object as an object of type Class<capture of ? extends String> (unless
> you write unchecked code, and null is an odd case). The is no type T
> such that Class<T> is compatible with both of those types. No T
> simultaneously extends both String and Integer.
>
> Similarly the expression "i instanceof String" and "i == s" are nonsense
> and will not compile.
>
> Tom Hawtin
|
| |
|
| |
 |
Oliver Wong

|
Posted: 2006-8-3 2:34:00 |
Top |
java-programmer >> incomparable types
"Jono" <email***@***.com> wrote in message
news:email***@***.com...
> Hi Oliver,
> I believe that the bug you pointed out is specific to one of the beta
> versions of Java 6, and the referenced page doesn't give any more clues
> as to what's happening when the sample code gets compiled by a Java 5
> compiler. I've been reading reams of documents with phrases like type
> erasure, reification and synthetic bridge methods and I really hope the
> only answer doesn't lie buried inside one of them!
> Cheers,
> Jono
Sorry, I didn't realize that Java didn't allow you to compare for
equality two types which "could not possibly be equal", so actually this bug
that I linked to was probably a red herring.
- Oliver
|
| |
|
| |
 |
Patricia Shanahan

|
Posted: 2006-8-3 6:10:00 |
Top |
java-programmer >> incomparable types
Jono wrote:
> Tom,
> Thank you for your explanation, I'm sure it will finally hit home after
> a couple of re-reads, but from what I understand the inclusion of
> generics has been bundled with a new Class class that has some kind of
> [invisible?] object hierarchy of its own. Presumably this hierarchy
> exists at some stage during compilation, which is how the compiler
> knows that i's type isn't convertible to s's type. If you reflect over
> either of the types at runtime they're both the same java.lang.Class,
> but then that's probably something to do with the dreaded "type
> erasure". I welcome your comments.
> Cheers,
> Jono
>
> Thomas Hawtin wrote:
>> Jono wrote:
>>> Hi everyone,
>>> I have a reasonably strong .NET background and I have a problem
>>> understanding the Class class in Java. The Type class in .NET (along
>>> with the typeof() operator and System.Object's GetType() method) seems
>>> pretty straightforward to me: an instance of the Type class is
>>> instantiated for every type loaded into the system (even with
>>> generics). But it's not so easy to understand with Java, it seems. If I
>>> try to compile the sample code below it fails on line 3 of the main
>>> method. If I explicitly cast the left-hand and right-hand sides of the
>>> equality expression (as per line 4) to Class, then the compiler is
>>> happy. Please could someone let me know what the subtle difference is
>>> that I am missing out on?
>>> public class NewClass {
>>>
>>> public static void main(String[] args)
>>> {
>>> Integer i = new Integer(123);
>>> String s = "456";
>>> //System.out.println(i.getClass() == s.getClass()); //
>>> compilation failure
>>> System.out.println(((Class)i.getClass()) ==
>>> ((Class)s.getClass()));
>>> }
>>>
>>> }
>> An object of type Class<capture of ? extends Integer> cannot be the same
>> object as an object of type Class<capture of ? extends String> (unless
>> you write unchecked code, and null is an odd case). The is no type T
>> such that Class<T> is compatible with both of those types. No T
>> simultaneously extends both String and Integer.
>>
>> Similarly the expression "i instanceof String" and "i == s" are nonsense
>> and will not compile.
>>
>> Tom Hawtin
>
I can see the rule that is being applied, and it is stated in the JLS,
but the rule itself makes no sense to me.
The language allows many comparisons that can never have a true result.
For example, 2==3 is a valid comparison, with the result false.
Trivially true type comparisons, such as ("A" instanceof String) are
accepted.
It is only in the context of type comparisons, and only if the result is
false, that the compiler rejects the comparison at compile time.
WHY?
Patricia
|
| |
|
| |
 |
Oliver Wong

|
Posted: 2006-8-3 6:14:00 |
Top |
java-programmer >> incomparable types
"Patricia Shanahan" <email***@***.com> wrote in message
news:7p9Ag.2315$email***@***.com...
>> Thomas Hawtin wrote:
>>> An object of type Class<capture of ? extends Integer> cannot be the same
>>> object as an object of type Class<capture of ? extends String> (unless
>>> you write unchecked code, and null is an odd case). The is no type T
>>> such that Class<T> is compatible with both of those types. No T
>>> simultaneously extends both String and Integer.
>>>
>>> Similarly the expression "i instanceof String" and "i == s" are nonsense
>>> and will not compile.
>>>
>>
>
> I can see the rule that is being applied, and it is stated in the JLS,
> but the rule itself makes no sense to me.
>
> The language allows many comparisons that can never have a true result.
> For example, 2==3 is a valid comparison, with the result false.
>
> Trivially true type comparisons, such as ("A" instanceof String) are
> accepted.
>
> It is only in the context of type comparisons, and only if the result is
> false, that the compiler rejects the comparison at compile time.
>
> WHY?
It really should be a warning instead of an error: "Warning: this will
always yield true/false, so this is probably not you meant, but the code is
still runnable."
I feel the same way about unreachable code. Sometimes I want to
intentionally make code unreachable for debugging purposes, so I wish
unreachable code was a warning rather than an error. With the Eclipse
compiler, you can actually toggle things like these.
- Oliver
|
| |
|
| |
 |
Chris Uppal

|
Posted: 2006-8-3 16:02:00 |
Top |
java-programmer >> incomparable types
Patricia Shanahan wrote:
> I can see the rule that is being applied, and it is stated in the JLS,
> but the rule itself makes no sense to me.
It makes exactly zero sense to me, too.
If you can convert illegal (illegal!) code into legal code by throwing away
information in the type declarations, then something is badly wrong.
And I most certainly don't agree with Thomas that
> "i instanceof String" and "i == s" are nonsense
Both make perfect sense. If they were nonsense then changing the declared type
of "i" and "s" to Object could not possibly make the code coherent -- yet it
does...
Just another cretinous design decision from The Powers That Be (but one made
some time ago, it hasn't been introduced with generics -- which makes a
change).
-- chris
|
| |
|
| |
 |
Jono

|
Posted: 2006-8-3 17:12:00 |
Top |
java-programmer >> incomparable types
Initially after reading Tom's post I disagreed with his idea that a) 'i
== s' and b) 'i instanceof String' were nonsense, but now that it's had
a little while to sink in I am on his side. From a theoretical
perspective, the expressions are nonsense. If you tried to perform the
same operations in C# (a) using an Int32 and a String, and b) using the
'is' operator), you'd get more informative error messages such as:
a) "Operator '==' cannot be applied to operands of type 'int' and
'string'", and
b) "The given expression is never of the provided ('string') type".
This all boils down to the compiler performing type safety checks and
realising that Integer and String aren't in the same branch of the type
hierarchy.
Also, I now realise that the Tiger version of Java's class
java.lang.Class is a generic class whose type parameter denotes the
type that the Class object represents. Because the hierarchy of generic
types is a little complicated (the fictional GenericType<B> does not
derive from GenericType<A>, even though type B extends type A) there is
now no way to compare instances of Class objects because they refer to
different types. Actually, the last statement is a bit of a lie. I've
seen the <?> and <capture of ? extends type> syntax but I haven't
understood it fully yet.
As an aside, I'm enjoying the concept of online compilers such as this
one for C# 2.0: http://www.caller.me.uk/Compilr/C-Sharp.aspx
Cheers,
Jono
Chris Uppal wrote:
> Patricia Shanahan wrote:
>
> > I can see the rule that is being applied, and it is stated in the JLS,
> > but the rule itself makes no sense to me.
>
> It makes exactly zero sense to me, too.
>
> If you can convert illegal (illegal!) code into legal code by throwing away
> information in the type declarations, then something is badly wrong.
>
> And I most certainly don't agree with Thomas that
>
> > "i instanceof String" and "i == s" are nonsense
>
> Both make perfect sense. If they were nonsense then changing the declared type
> of "i" and "s" to Object could not possibly make the code coherent -- yet it
> does...
>
> Just another cretinous design decision from The Powers That Be (but one made
> some time ago, it hasn't been introduced with generics -- which makes a
> change).
>
> -- chris
|
| |
|
| |
 |
Mike Schilling

|
Posted: 2006-8-4 15:59:00 |
Top |
java-programmer >> incomparable types
"Patricia Shanahan" <email***@***.com> wrote in message
news:7p9Ag.2315$email***@***.com...
>
> I can see the rule that is being applied, and it is stated in the JLS,
> but the rule itself makes no sense to me.
>
> The language allows many comparisons that can never have a true result.
> For example, 2==3 is a valid comparison, with the result false.
Likewise:
byte b;
...
if (b > 500)
and
Object o;
...
if (o == new Object())
Both are legal yet can never be true.
>
> Trivially true type comparisons, such as ("A" instanceof String) are
> accepted.
>
> It is only in the context of type comparisons, and only if the result is
> false, that the compiler rejects the comparison at compile time.
It seems as if this is an attempt to make Java seem more strongly typed than
it actually is, so that e.g.
int i;
Integer j;
String s;
...
if (s == j)
is deemed not false but undefined, the way that
if (s == i)
is, in fact, not false but undefined, since equality of references and
scalars is not defined.
This is nonsense, of course. Determining whether two references are equal
is perfectly well defined, as shown by the legality of:
if ((Object)s == (Object)i)
where the casts do not change the value of the references, but simply remove
the compiler's unwillingness to generate the proper code.
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- surface plotAll
I want to see if Java can do the surface plot (traditional gird plot, not
contour or color)
THanks
- 2
- [NEWBIE] Using a Java Class from a JSP PageHi all and please forgive me for this newbie question.
I should create and utilize the funcionts of a Java Class from a JSP
page contained in Tomcat.
I Should:
a) define a package containing this class and put it in the CLASSPATH
b) put the Java class in TomCat (folder WEB-INF/lib or WEB-INF/class)
c) a mix of both methods!??! (Classpath AND Tomcat)?!?
Thanks
Federico
- 3
- chaning label sizes during runtimehi all,
I have a minor problem in my application (sorry I can't post any code,
so I'vm only asking for guidance in the general case, not this
specific one).
In my application I have a number of JLabels that gets their texts
changed during runtime. Unfortunatley it seems that they sometimes
become too wide for the panel they are in. The panel has room to grow
though (it is located in a jscrollpane).
I use
label.invalidate();
after each change, and
validateTree();
on the top container after all changes.
This gives me a somewhat strange behavour though.
On first run nothing happens (i.e the label get's cut)
on second run, the panel to the left shrinks a bit and the lables
there get's cut. On the third run all looks nice.
(run means updating of the labels, not a re-run of the application)
So what is the best way to handle this?
Should I invalidate, and revalidate myself? and if so when should that
be done?
All changes to components are executed in the EDT.
regards
Daniel
- 4
- Requesting re-pack'ing of FrameHi all,
I've implemented my own AWT component which determines a "preferred
size" by itself. This component is added to a Frame, which is at the
center of a BorderLayout in a Frame which gets pack()ed. The frame is
also not resizable, because I must ensure this component always acutally
has its preferred size. This works fine so far.
However, during execution time this preferred size changes; is there a
*generic* way to propagate this message up to the Frame so it re-pack()s?
I do not want to use a succession of getParent() until I reach the Frame
and call pack() on it, as this component might be used in a situation
which does not allow this in the future (maybe an Applet or in an
resizable/unpacked Frame as part of a more complex layout).
Is there any way to achieve this? I.e., propagate to the Frame/layout
that the preferred size has changed and this should be considered anew?
Many thanks in advance,
Daniel
--
Got two Dear-Daniel-Instant Messages
by MSN, associate ICQ with stress --
so please use good, old E-MAIL!
- 5
- Reading windows event file like event viewer from windows/system32/config/AppEvent.evthi ,any one can help ,me to solve my problem.
i m talking about reading AppEvent.evt SecEvent.evt SysEvent.evt files
which basically resides in C:\WINDOWS\system32\config folder of
windows xp.if we want to open that files and our computer is on n/w
than some services used all three files and i m not able to open that
files manually.if i want to read that files than i have two options
either read by event viewer or copy this file and to another place and
open it in vc++.
i have to read or parse that file by writing a pure java parser
without using any dll bcz that files runs under linux there is another
option to use so(shared object files working as a dll in linux) but i
don't want to depend on dll and so files.
one another way microsoft ;log parser but i m not sure that it
will run on linux or not ,simply i want to write independent java
program using only java based open source api
so plz give me a best approach to read or parse this event files when
they r locked by another applications or services.
this is the link which help u to understand windows event log format
and it has links of sample program written in vc++,c#,asp.net,c+
+,php .
http://www.whitehats.ca/main/members/Malik/malik_eventlogs/malik_eventlogs.html
i follow the php program approach but i got only source name,computer
name,description but not able to parse this things individually and i
also need date,event id,event type.
then i got another code from code project site,which has functionality
to read event logs it is using log4j to read this event files.and
display ti on swing interface but i want only a simple program which
did only reading or parsing event log files.
http://www.codeproject.com/csharp/tracetool.asp
- 6
- RFC: Removal of arbortext-catalog and xt-catalogHi,
I would like to request comments if the arbortext-catalog and xt-catalog
[1] packages can be removed from the archives.
They have no reverse dependencies, do not occur in any build
dependencies, have only a few users [2], no active upstream and IMO
libxml-commons-resolver1.1-java offers the same functionality. However,
the package is not broken.
[1] http://packages.qa.debian.org/a/arbortext-catalog.html
[2] http://qa.debian.org/popcon.php?package=arbortext-catalog
If nobody objects, I will go for a removal request.
x-post to debian-devel, debian-sgml & debian-java
Regards, Daniel
--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com
- 7
- Graphical Modelling Framework :(Hi,
I would be working on graphical modelling framework(GMF) for my thesis.
I couldnot find any tutorials on generating editors with Graphical
Modelling Framework at eclipse.org.
Please post in your suggestions.
Regards,
Madanagopal.
- 8
- Sun Webcast Today & Tomorrow: Replacements for Windows Desktop w.3d Java Features
Today & tomorrow Sun Webcasts announce new
---------------- projects that include
Java and 3d Java apps in packages designed
to replace Microsoft packages with packages
based on Linux and Solaris bundleded with
Java, Open Office or Star Office, and Mozilla.
| Opening Address & Welcome
| ------------------------
| by Sun CEO Scott McNealy
|
| Sun's Software Strategy
| -- Sun EVP Jonathan Schwartz
|
| September 16 9:00 a.m. - 11:30 a.m. (PDT)
|
| ------------------------------------------
|
| Slashing Cost & Complexity from the
| Desktop to the Data Center
|
| -- Sun EVP Mark Tolliver
|
| 10:00 - 10:30 a.m. (PDT)
| LIVE Chat with Sun CEO Scott McNealy
|
| September 17 9:00 - 9:45 a.m. (PDT)
|
http://www.sun.com/bignews/
3D Desktop Demo ( java.net OpengGL bindings )
---------------
SUN DECLARES LINUX DESKTOP READY FOR PRIMETIME
|
| Java Technology a Key Feature of Mad Hatter
|-------------------------------------------
| Sun's Java technology on the desktop is also
| being enhanced for Project Mad Hatter providing
| a native GNOME look and feel for all Java
| applications.
|
| The innovative 3D desktop demo that wowed the crowd
| during the keynote was built using Java technology
| on Linux with Java for Open GL bindings which
| Sun recently open sourced at java.net.
|
| Java technology is pervasive on the desktop as it
| now runs on 550 million personal computers via
| distribution arrangements with leading PC
| manufacturers.
|
http://www.sun.com/2003-0805/feature/index.html
Java & Java3d is used for Games ...
Java Games
-------------------------------------------------
http://javagaming.org/cgi-bin/JGNetForums/YaBB.cgi
http://www.frontiernet.net/~imaging/games_with_java3d.html
http://www.frontiernet.net/~imaging/java_games.html
|
| Yahoo! Pool is a set of fun and realistic
| multiplayer online billiard games. The most popular
| games, 8-ball and 9-ball, allow players to break,
| choose shots, sink or scratch - just like
| the real thing.
|
| Players of Java technology based Yahoo! Pool games
| can enter game rooms based on skill level, and
| join in official Yahoo! Pool league tournaments.
|
http://java.com/en/explore/desktop/yahoo_pool.jsp
Human Animation with Java3d with VRML using Sun's Loader
---------------------------------------------------------
http://www.JavaGaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=3D
http://www.JavaGaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=3D;action=display;num=1060641747
I've been using Linux Red Hat 7.2 and it is
better and chearper than Windows though it does
need extra features ... which Sun is now adding.
-- Paul, Java Developer & Web Animator
--------------------------------------
Imaging the Imagined: Modeling with Math & a Keyboard
- 9
- extends JFileChooser ?Hi
In JFileChooser there are some JButton. I have a class called
PButton that extends JButton. I want JFileChooser use my class
"PButton" instead of JButton. HowTo?
thanks
from Peter (email***@***.com)
- 10
- how to create jar fileHi,
In help we can read:
To create a JAR file from your help files, make the top level help folder
the current folder. The jar command
descends recursively through the different directories and copies all of the
files to the JAR file.
Use the following steps to create a JAR file named my_help.jar from the
hierarchy example above:
C:\> cd ...\help (where "..." is the path above the \help folder) 1.
C:...\help> jar -cvf my_help.jar * 2.
The jar -cvf command copies all the files in the \help folder and in all
folders hierarchically beneath it into
a JAR file named my_help.jar. As the command creates the JAR file, it
reports its progress with output like
My error message:
"jar is not recoginized as an internal or external command, operable program
or
batch file"
please help me
Edd
- 11
- jpeg has poor quality when written back to diskHi,
I have written an app using netbeans that loads a jpeg image to a panel.
I can then do some processing on it. However if I do no
processing other than loading the file and saving it as a jpeg,
the file has very bad quality. (compressed further?)
How can I save an image file (jpeg) without losing quality?
- 12
- Natural logarithm method not recognisedGood day dear members of the comp.lang.java.programmer newsgroup.
I've got the following error message while trying to use the "logl()"
method (natural logarithm function) on my NetBeans IDE
symbol : method logl(double)
location: class org.me.mylib.fluidmechanics.DarcyLaw
wfr = 7.08e-3 * ko_dl * depth_dl * (pr_dl - wbp_dl) / (mu_dl *
bo_dl * ((logl(re_dl/rw_dl) - 0.75)));
1 error
Should I import any special mathematic library from NetBeans?
Many thanks.
Octavio
- 13
- Good web host for JSPs?Hi;
I've been thinking of buying my own domain and setting up my own site.
My dream host would be
- nix based
- Java and JSP friendly.......for me making my own stuff
- PHP, python, perl, C++ - whatever technology friendly so I will be
free to learn
- reasonably price
I am also in registering my domain anonymously. Any good services?
Any suggestions?
Thanks
- 14
- Is there any basic base for a community website? (J2ee)Hi
I'm wondering if there is any basic "base" for a community website. With
things like support for user registration, login, individual homepages,
photo albums, sending messages, guestbooks, diaries and so on... And
ofcourse with optimised code (especially the code for the communicating with
the database).
I mean, I know these things have been written before, so it feels a bit
stupid to do it again, like reinventing the wheel.
What I'm looking for is a basic foundation, written in J2ee (Java/jsp), that
is easy to use as a base when making a community that should be able to
handle a large "population" (at least a few thousand simultanous users, and
holefully ten thousands or even houndred thousands at peak hours, in the
future).
Any suggestions?
/Jimi
- 15
- Looking for comments on Technology RiversDoes anyone have any good, bad, or neutral opinions on Technology
Rivers in VA, USA as a company to work for or with? Has anyone
here had any contact with them? I'm currently engaged in a job
search and know little about them besides what's on their wbsite.
Any input would be appreciated. Either posts or direct emails
are welcome.
Thanks.
--Joe
|
|
|