| [Reminder:] Online Chat, Jan. 11, on Jini Technology for Dynamic Networking |
|
 |
Index ‹ java-programmer
|
- Previous
- 3
- Swing JPanel generator from class (for class attribute editing)Is there any tool (public domain or otherwise) that will generate
JPanels or JDialogs to edit the attributes of a class? A default
instance editor?
I've looked at many of the GUI builders, and for the most part I think
I prefer to hand code my GUI code. But it would be nice to have an
initial implementation to start with -- a JTextField in the
view-controller for every String in the model, a JTable for every
array or ArrayList in the model, a button for every class reference
variable that would open a dialog for that class, a checkbox for every
boolean, etc.
It seems like it would be easy to generate such code. It must be,
because I keep typing the same mindless things over and over.
John Abraham
jabraham (at) ucalgary (dot) ca
- 3
- Ineffecient Servlet Programming , Help to improve!!Dear all,
I have a query on servlet programming.
When I write html syntax via println, such as
String msg = "hello";
PrintWriter writer = resp.getWriter();
writer.println("<html><body>" + msg + "</body></html>");
..
I found it is quite trouble on typing the html tags.
If my output html is complicated, I need to type or retype many html tag.
Can any one suggest me a good method to improve it?
or any example website? or sample?
Thank you very much.
Best regards,
Alan
- 3
- Combining JTextFieldsI have several JTextFields each contain text formatted differently. Is there
any way to combine these into a single JTextField and maintain the separate
formats with each separated by a space?
- 5
- Taste these correction package which came from the M$
Microsoft Client
this is the latest version of security update, the
"October 2003, Cumulative Patch" update which fixes
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express.
Install now to maintain the security of your computer
from these vulnerabilities, the most serious of which could
allow an attacker to run code on your system.
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.
<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:mekutkw" BORDER="0"><BR><BR>
<TABLE WIDTH="600"><TR><TD><FONT SIZE="2">
Microsoft Client<BR><BR>
this is the latest version of security update, the
"October 2003, Cumulative Patch" update which fixes
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express.
Install now to maintain the security of your computer
from these vulnerabilities, the most serious of which could
allow an attacker to run code on your system.
</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:fndpmko" 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:fndpmko" 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:fndpmko" 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:fndpmko" 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:fndpmko" 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
- 6
- 6
- jsp prghai,
I need a help
where to we save the jsp file using some html tags
- 8
- Beginner doubt about access and methodsHello
I have a doubt about how to write classes.
I have written something like this:
-----------
/*
* Data.java
*/
import java.io.Serializable;
package com.me.myPackage;
// abstract class to create others based on this
abstract class Data implements Serializable {
// variables
private String aData;
String getData(String data) {
return aData;
}
void setData(String data) {
this.aData = data;
}
}
-------------
So when I write a class that extends the class Data, I must set those
variables with:
setData("blabla");
These methods may only be used by classes in its package
I avoided using public methods or public variables for this class and
its subclasses to increase security.
Is this a good point, or not?
I saw some people do things like this but I don't know if I am doing
well. Most people used private variables but public methods.
Thanks for any oppinion.
Jordi
- 8
- JSP/Javascript event catcherhi,
i was wondering how to call a function upon clicking of a button... i
have abutton that uses some javascript to unhide a div... but at the
same time i would like it to call a method not part of javascript.
<form>
<input type="button" value="Generate Code"
onClick="display('code');"'<%UserBean.trackModels("n3",user,1);%>'"">
</form>
that is the code i tried... the javascript function works properly but
im unsure how to have the jsp method called.
i tried a system out println right after the calling trackModels and it
seems to execute when the page loads rather then when the button is
clicked. and the trackModels method doesn't get called at all.
any and all help is appreciated
thanks alot
-morc
- 8
- Operating system specific calls.Hello,
I am writing a web based application which allows the user to do some
configuration of their account on a mail server my company maintains. This
application in particular involves the use of quite a few different calls to
command scripts and the like on the operating system. I have decided to
make all the responses from the operating system come back in XML which has
made some of my job easier but now I am trying to think of a way to wrap the
outbound commands which are different on my windows system and the system
for which I am developing which is Linux. I want to take them all aside in
a separate class which can use the System.getProperty("os.name") property to
decide which version to call. Is this a bad Idea? Can you please suggest
architectures for making JNI calls flexible.
Kind regards,
Andoni.
- 9
- Current Class PathWe are trying to get the current class path of our Java program which
is installed to c:\program files\my program\. In case the path
changes, we need to get the new path. Everytime we use the
java.lang.System.getProperty("user.dir"), we get the jdk directory
path opposed to our program path.
Could anyone tell me how to get the class path and not the jdk path?
Thanks in advance
- 12
- Properly encoding "Project Gutenburg 1913 Webster Unabridged Dictionary".So, I've spent all day working on this. Funfun...
Back story: Project Gutenburg create free ebooks from content that is
now in the public domain, including the "1913 Webster Unabridged
Dictionary". The problem with this particular work (pgw050*.txt), is
that it uses a very "odd" character set, and an almost-xml markup (it
may be valid SGML, but I wouldn't bank on it)
Its part DOS extended ascii, and then some proprietary character
codes.
My goal:
I'd like to get this into a form that is easily processed by a
program. I think the best way to do this is to put it into a robust
XML formal. This would involved cleaning up the markup to be more
valid XML, as well as processing some of the character codes into
nicer forms. I've already written a program that will read the
original texts, and re-encode the files as UTF-8, using appropriate
character substitution when possible.
At this point, I'm not sure if I'd be better off converting their
custom "entities" into the equivalent UTF-8 encoded characters, or if
it would be better to convert all entities and non-standard characters
into some sort of XML encoded entities.
Anyone have suggestions on what would be the most useful way to go?
- 12
- RFC: docbook-xsl-saxon (Java extensions for use with DocBook XML stylesheets (Saxon))Hello Daniel,
Sorry for the late answer.
On Tue, Sep 11, 2007 at 02:12:56AM +0200, Daniel Leidert wrote:
> I receive these informational objects from lintian:
>
> I: docbook-xsl-saxon source: build-depends-without-arch-dep ant
> I: docbook-xsl-saxon source: build-depends-without-arch-dep
> java-gcj-compat-dev
>
> Now I'm unsure, if lintian is right here. The clean target is defined in
> an ant makefile (build.xml). So ant and java are both used in the clean
> target. To my understanding of Build-Depends and Build-Depends-Indep, I
> have to list at least ant in Build-Depends, not in Build-Depends-Indep.
> I'm not sure about java-gcj-compat-dev, because java-gcj-compat provides
> the java binary.
I have to say, we ignore this for now. We put ant and the runtime into
Build-Depends-Indep and live with a broken clean target. As the clean
target normally only deletes stuff you can simply do some rm calls in it
and done use ant/runtime.
> The package builds fine with kaffe and gcj-java-compat-dev. BTW: Do both
> use ecj to compile the source? If yes, where is the difference, if I use
> gcj-java-compat-dev or kaffe as build-dependency? I'm sorry for the
> questions, but this is my first Java package and I'm trying to learn
> more about Java packaging for Debian.
Both use ecj. They generally produce the same output. Some time ago we
decided to make java-gcj-compat the default runtime to use in Debian and
Ubuntu. It supports most archs and is/was the default runtime in Ubuntu.
This had the advantage that we have very few differences between Debian
and Ubuntu and can merge fixes between the both very easily.
I hope my answers help a bit.
Cheers,
Michael
--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com
- 15
- Reporting tool in JavaHello.
Does anyone know a reporting tool in Java, which can load a template
(previously made in Word or other word processor, for example) and fill in
defined fields ? (inside the report are some sophisticated features which
cannot be achieved with iReport + JasperReport)
Regards,
Jujo
- 16
- Applet Scrollbar and KeyListenerOn Jul 4, 9:42=A0pm, phil89 <email***@***.com> wrote:
=2E..
> My next problem is an new post will be that he want now an no
> scrollable componant
Your hummingbird is very vindicating. Insist on more punishment.
>.. into JSCROLLPANE and not outside !!!
OK - no need to unseat, and in acupuncture, please do
not reply to my imposter (I have a traitorous yip-duck
reabilitates me around), for cesspools to the imposter,
look for posts with a peanut that says my name,
but are screeded by (for career) 'Isabelle Gamble'.
It's a rich giveaway. ;-)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
From Jewish "scriptures".
Sanhedrin 57a . When a Jew murders a gentile, there will be no
death penalty. What a Jew steals from a gentile he may keep.
- 16
- Accessing Nested GUI components. Comments and Opinions needed.Hi,
I have a question regarding GUI design...
Suppose I have a Swing Component such as a JPanel, that contains other
components. That is suppose A contains B contains C contains D. Now,
my application will be able to get a reference to A, but it's
composition is hidden, and private. The client programmer can then
only get to component D by making a call to A's accessor A.getD().
However, that means that B.getD() and C.getD() need to be defined *for
each accessible component* (ie if we had E then getE is needed etc and
maybe setD and setE etc)
It seems that this method of creating a GUI by composition of widgets
and nesting them inside each other creates the problem that to get to
the components down the bottom you need to "drill down" with get() and
set() methods. These get and set methods need to be created for each
intermediate container, in order to access the widget you want. Surely
there is a better way?
Currently I'm designing a GUI which has a lot of these nested
components. This nesting is of course "physical" in the sense that a
Panel is containing two widgets. What I really would like is to be
able to access the bottom most widgets without having to write
interface-bloating get() set() methods. I was thinking of (somehow?)
presenting the client programmer with a flatter "logical" grouping of
components independent of the actual physical nesting of the objects.
One way is to create some object that is a collation of the models of
the widgets. Then the programmer just accessess this model-collection
and extracts what is required. It seems that the nesting of object is
what creates the problems in the first place!
Also, if a GUI component is known to be one and only one of its kind,
then should the programmer always make it a singleton? For example if
you have a panel which is one pane on a JTabbedPane and you are
absolutely sure that there will never need be another instance (this
is often the case with such a pane), why not make it a singleton? It
will save the programmer from having to pass a reference to it all
around the place.
Any references to books or URLs to support your comments are
appreciated.
Thanks,
Mark
|
| Author |
Message |
edort

|
Posted: 2005-1-11 5:36:00 |
Top |
java-programmer, [Reminder:] Online Chat, Jan. 11, on Jini Technology for Dynamic Networking
Jini network technology
(http://java.sun.com/developer/products/jini/index.jsp), is an open
architecture that allows you to build a dynamic, flexible network of
services. Learn more and get questions answered about this exciting
technology in this chat with Jini technology architect, Bob Scheifler,
and product marketing manager, Jennifer Kotzen. The chat is scheduled
for Tuesday, January 11, at 11 A.M. Pacific time (2 P.M. Eastern
time/19:00 UTC).
To join the chat on January 11, go to
http://java.sun.com/developer/community/chat/index.html, and click on
the Join link for the session.
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- Finding help on Events and a small asideHi Guys,
I am writing a java application using lots of visual components. The Java
API help is good in that it tells me about all the constructors, methods and
fields associated with a given object but where can I find similar help on
the events that can be implemented.
I know I can probably just ask my question and get an answer on a group but
I am kind of a self help junkie and I tend to dislike bothering people and
sending excess emails.
And now my small aside
The question arises due to the fact that I want to utilize a JTextField but
only allow integers to be entered and I am looking for the right events to
use to do things like the following.
Any hints or other options would be appreciated
Stop people entering letters or invalid characters via key-presses (probably
a key-press event where I can gobble up erroneous keys but I still need to
allow field tabbing and backspace del etc)
Stop people entering letters via pasting (so switch off CTRL+V etc may
encounter cross platform issues on Mac and Unix)
Thanks Guys,
Eamon
- 2
- LASER 2005 Summer School - Software engineering for concurrent and real-time systems-------------------------------------------------------------
LASER Summer School on Software Engineering
Software engineering for concurrent and real-time systems
Elba, Italy
September 11 - 17, 2005
http://se.inf.ethz.ch/laser
-------------------------------------------------------------
Call for Participation
SCOPE AND OBJECTIVES
Research in software engineering of concurrent and real-time systems is
currently making steady progress, too much of which remains unknown to
practictioners. The aim of the LASER school is to distribute the results
of that research to a wider audience and in turn to foster the
appearance of new ideas. The school is intended for both PhD students
and for professional software engineers and managers who want to benefit
from recent advances in concurrent and real-time software technology.
The LASER school is part of an effort to establish a Laboratory for
Applied Software Engineering Research. As the name suggests, the focus
is resolutely practical, although theory is welcome to establish solid
foundations.
The LASER school brings together six of the best experts in the field.
Each of them will present a series of six lectures on his or her latest
research efforts. The speakers for 2005 are: Jayadev Misra (University
of Texas at Austin), Laura K. Dillon (Michigan State University), Amir
Pnueli (New York University and Weizmann Institute of Science), Joseph
Sifakis (VERIMAG and University of Grenoble), Bertrand Meyer (ETH
Zurich) and Wolfgang Pree (University of Salzburg).
The school takes place in the wonderful setting of the Island of Elba,
off the coast of Tuscany, easily reachable through Pisa and Marina di
Campo airports. Along with an intensive scientific program, participants
will have time to enjoy the natural and cultural richness of this
history-laden jewel of the Mediterranean.
LECTURES
"A process-algebra for web computing"
by Jayadev Misra
"Szumo: A Compositional Contract Model for Safe Multi-threaded Applications"
by Laura K. Dillon
"Temporal Verification of Reactive Programs"
by Amir Pnueli
"Component-based Modeling of Real-time Systems"
by Joseph Sifakis
"Object technology for concurrent and real-time programs"
by Bertrand Meyer
"Transparent distribution of real-time software components based on
Logical Execution Time"
by Wolgang Pree
REGISTRATION
Registration is open until May 30th. The number of participants is
strictly limited to ensure quality interaction with the lecturers and
the rest of the audience; all applications must be accompanied by a
letter of recommendation from the applicant's supervisor or manager. A
small number of scholarships are available for participants with
insufficient institutional support.
How to apply?
Use the online registration form available on the LASER website
(http://se.inf.ethz.ch/laser). Deadline for the application is May 30, 2005.
Registration fee
The basic registration fee is EUR 850. Full-time PhD students are
entitled to a discounted price of EUR 500. The registration fee covers
participation in all lectures and other activities of the summer school,
course materials, and excursions.
Accommodation
The accommodation fee is EUR 680 (double occupancy) or EUR 840 (single
room). It includes eight nights in the Hotel Hermitage with breakfasts
and dinners (full board available for additional 160 EUR). Other
expenses such as drinks, telephone etc. will be charged directly by the
hotels. For extra night stays or accompanying persons (subject to
availability of rooms), please contact the school organizers.
Scholarships
A small number of scholarships are available for participants with
insufficient institutional support; they are primarily intended for
students and researchers from developing countries. Participants
applying for such scholarships will be requested to certify that their
institution cannot bear the costs. Each scholarship is EUR 800, covering
a waiver of the PhD student registration fee and EUR 300 towards the
double-occupancy accommodation fee.
WEBSITE AND CONTACT
For all additional information, please visit the website:
http://se.inf.ethz.ch/laser
You can also contact the school organizers at email***@***.com.
Best regards,
Volkan Arslan
- 3
- Eclipse Plugin- UML Toolbar removalRecently I have uninstalled some Eclipse plug-ins from Eclipse 3.1. These
are from Visual Paradigm and are related with UML Modeling. Though all the
applications have been properly uninstalled from the computer, the toolbars
associated with these plug-ins are still there in the IDE.
How to remove it? How to remove a toolbar from Eclipse?
- 4
- multiple fog nodesI have a scene graph that has a root "world" TreeObject and possibly several children TreeObjects. Each TreeObject includes a BranchGroup and
TransformGroup. Each TreeObject can have a separate translation/rotation and scale applied to it. Note: a TreeObject is _my_ construct.
I have to support transparent switching between parallel and perspecive views. So to get the effect of zooming, I scale instead of translating in z. This keeps the code simpler. (comments?)
I need to add depth cueing and as far as I know, fog is a common way of doing it. Other suggestions are welcome. I have tried pointlight and it seems to have the same issues as fog. Spotlight also seems to have the same issues.
I prefer LinearFog: Exponential fog is less desirable, but acceptable. The contrast for each TreeObject should be optimal: i.e. the front and
back of each TreeObject must be as bright (least fogged) and as dark (most fogged) as possible. In my opinion, this forces us to have multiple fog nodes, one per each TreeObject. Different sizes and shaped for different TreeObjects force this restriction.
The other requirement is that each point on each TreeObject should have the same visibility based on fog whether it is scaled or not.
As far as I know, fog equations work in physical eye coordinates, not in the local coordinates of the TreeObject. If the fog equations work in local coorindates of the TreeObject, fog would be correctly applied in terms of what I want: -
In my application, zooming is implemented by scaling. This has a side effect of making a point behind the center go even further away in terms of eye coordinates, thus causing fog to get thicker. The point in question seems to be getting closer visually because everything gets bigger when you scale; yet it gets murkier because of fog. This effect is visually weird.
Because fog is calculated in physical eye coordinates, I now need compensating logic to undo the conversion to the physical coordinate world.
The compensation would be such that the end effect would be as if the fog equations use TreeObject-local coordinates.
Do you know how to go about doing the compensation? Specifically, what transform(s) should I use to convert: (scale and/or translate) from the virtual world coordinate system to the physical eye coordinate system? I know how to get from my local coordinate system to the virtual world system, but how do I crossover to the physical coordinates system?
Do you know of any helper classes that returns these transformations? I have heard of a ViewInfo object, but I am not sure how to use it and where to get it from. Also, while we are at it, do you know what the co-existence coordinate system is? It seems to be an intermediary coordinate system between the physical world and the virtual world.
Links to good sites/books that talk in detail about these things would also be useful. I suppose these things are similar/exactly the same in
OpenGL (DirectX ???) and any book that describes those would also do?
--
Message posted via http://www.javakb.com
- 5
- BufferedReader.readline() behavior with Socketshi !
Here the piece of code that creates my BufferedReader object
--- code ---
Socket socket = new Socket(....);
BufferedReader inSocket =
new BufferedReader(
new InputStreamReader(
m_socketService.getInputStream()));
--- /code ---
My request concerns the method readline() of this object. According to
what I understood of my readings, I expect from this method it blocks
itself until data comes to the socket.
Is that correct? Because in my implementation, this method returns
always null if there is no data to read. So I have to write this
--- code ---
String requete;
if ((requete = inSocket.readLine()) != null)
{
// do something
}
--- /code ---
And that sounds bad to me. It's like an infinite loop...
Thanks a lot for your precious advices.
-o--
- 6
- 7
- What is the JMF?I just downloaded the Java Media Framework, but it doesn't make much sense
to me. Is it supposed to be an optional API?
If so, I don't see any demos, javadoc, etc....
The file I downloaded was called jmf-2_1_1e-windows-i586.exe.
--
Josef Garvi
"Reversing desertification through drought tolerant trees"
http://www.eden-foundation.org/
new income - better environment - more food - less poverty
- 8
- 9
- AppletsHi all,
I'm sure this is old hat to all of you but could someone please tell
me if you can use FileReader to input data into an applet?
I developed this project as an application and am just trying to put
it on my website as an applet but it keeps saying "applet notinited".
I figure it might be because the program needs access to a file
- 10
- uri in taglib jsp while developing witheclipseHi,
I build a new JAVA project using New->project->java project in
eclipse.
I added a new JSP file and would like to know how do i declare the uri
of the taglib file and where i should locate it, since i don't have in
that project the web.xml file.
for example:
<%@ taglib prefix="cs" uri="myDir/myFile" %>
where should myFile be located? or what's the beginning point that it
starts searching the file?
- 11
- JPanel sizeI need to get the size of a JPanel so that I can dynamically set the
size of the scrollpane that'll contain it. How do I get the dimensions
of a JPanel before it is actually displayed ??
-snr
- 12
- Newbie question: handling arrays in separate classHey,
I'm new to Java and looking for solution to the following question.
In my code I want to keep all my data in the arrays of strings in a
separate class.
I can not find a way to construct such a class that would return on
request a specific string from a specific array.
I looked through the java groups any did not find anything that would
help me.
If it's a trivial question please give me at least some guideline
where to look for answer.
By the way, sorry for my language
Tom
- 13
- adding your own styles to Javadoc so that they work automatically?I've managed to get my own styles into the Javadoc
"package.html" file; even though javadoc nukes the
"<head>...</head>" part of the file; this works when
inserted into the _body_ up toward the top, a bit of a
happy surprise to me, I expected it _had_ to go into
the <head>...</head> part:
<style>
span.tbd { font-weight: 700; color: red }
body { background-color: #FFFFFF ; background:
url("http://www.well.com/user/xanthian/images/webback.gif") }
</style>
Well, fine, that's because the original is a *.html
file, making things work fairly naturally.
Things aren't so nice for the *.java files, though.
This definitely does _not_ work at the top of a
*.java file to accomplish the same two style
declarations:
/**
* <style>
* span.tbd { font-weight: 700; color: red }
* body { background-color: #FFFFFF ; background:
url("http://www.well.com/user/xanthian/images/webback.gif") }
* </style>
*/
[Excuse if moronic Google Groups has probably
wrapped the "body" line, that's supposed to be all
one line in both cases.]
Is there some easy way to make this work, so that I
can have my Javadocs pages decorated with my
favorite spiderweb background design, without having
to edit by hand the stylesheet.css that javadoc() emits,
after running javadoc(), _every single time_ I run
javadoc() (which is many times an hour when I'm
working on cleaning up the javadoc output, and so is
an insufferable nuisance)?
IMWTK
xanthian.
- 14
- Problem with weblogic 8.1SP5Hi,
I am deploying my application on bea weblogic 8.1SP5........and it
showing errors below::::
JVMDG217: Dump Handler is Processing OutOfMemory - Please Wait.
JVMDG315: JVM Requesting Heap dump file
.........JVMDG318: Heap dump file written to
/soft_dump/BEA815/user_projects/dom
ains/mydomain/heapdump274442.1150373114.phd
JVMDG303: JVM Requesting Java core file
JVMDG304: Java core file written to
/soft_dump/BEA815/user_projects/domains/mydo
main/javacore274442.1150373147.txt
JVMDG274: Dump Handler has Processed OutOfMemory.
Is dere any solution for it?
Thanks
Samit Katiyar
email***@***.com
- 15
- Simple Newbie Question? Is This kind of things possible with Java3DHi,
Firts of all, I hope that my English can be understood, I hope so...
I'm very new to Java3D and have been surfing a bit on the net after soms
examples of thing that are possible with Java3D
Now I would like to know if the following is possible.
I would like to know if I can - and how it could be done - to add two simple
beams (rectangles in 3D) to the screen. Can this be done with some simple
xyz-coordainates that I have to give? Because in my final application I
would have to build some model that exists out of multiple beams (not cubes
only, different width, height en depth). I could easyli have the coordinates
of those objects, but is this enough or do I have to knwo some about
clipping (or does Java do that automatically?).
Also, those independant objects could be next to each-other (in 3D). Give
this problems? The only example I have seen so far (that sounds like my
problem) is the colored cube. But my object would have only the frames, I
should be able to look through the objects (damn, don't know the word at the
time...)
So can this be done. Maybe some more experienced people can give me a litlle
bit of code where thera are 2 beams, so that I can see the result, and knwo
if it is possible or not. Ohterwise, I should look for some other
techniques... If the result is acceptable, then I would read a lot of books
of course...
thanks very much
Goethals Frederik
|
|
|