| For fools who are believers |
|
 |
Index ‹ java-programmer
|
- Previous
- 1
- static and threadsChris Uppal wrote:
> John C. Bollinger wrote:
>
>
>>> However, the information might not be exactly the same, since
>>>presumably each instance of the factory will keep records for the
>>>instances of Foo that IT creates. So if Foo is created 5 times, 3 times
>>>by factory A, 2 times by factory B, there isn't a direct way to get the
>>>value "5".
>>
>>Yes, but if you want to be able to get the value "5" then you create all
>>the needed instances with the same factory. It is eminently possible to
>>structure an application so that this happens.
>
>
> Without using static fields /anywhere/ ??
Yes.
> The only ways that I can think of
> would either involve passing a reference to the factory as a parameter to every
> method call in every calling chain from main() to the point where the factory
> was used, or doing something similar to ensure that all objects (that needed
> them) would have a reference to the factory held in their instance state.
>
> Not what /I/ would call "eminently possible" ;-)
In full generality, yes, it would be a burden, but it could be done.
Please recall that I have not claimed that static members should be
avoided at all costs, without exception. In point of fact, however, I
do think the particular requirement under discussion at the moment is a
bit contrived.
> (Not a serious point, John, I'm just being pedantic...)
Duly noted.
At the risk of going slightly OT, is it not the case that there are OO
languages that have no equivalent of Java's static members?
--
John Bollinger
email***@***.com
- 1
- Check out the .mov"ementIt has begun.
Coorprati,on: An'strom-Microsystems
Buy as: ag.ms.ob
Advice,: Bu'y Now
Latest: 0._40
Volume: 331,485
Folloiwng the great news Friday, soctk sales are saor'ing.
T-his, on e is in it's infatncy, its about time .companeis started doing
this A..ngstrom Mic"ryosstems w'ill blow yo-'u away.
Final prcie _reduction -'levaes you in a great postioin, get in on agms
Market open on Tuseday.
--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com
- 1
- JTextPane line wrapping problemLine wrapping should normally occur when inserting a document in a
JTextPane, right?
Well for some reason it doesn't happen when inserting an HTML document
read from a File. If you execute the code below, the content of the
HTML page is displayed in a single line. Embedding the JTextPane inside
a JScrollPane didn't change a thing.
public class TextComponentDemo extends JFrame {
JTextPane textPane;
public TextComponentDemo() {
textPane = new JTextPane();
try {
HTMLEditorKit editorKit = new HTMLEditorKit();
HTMLDocument HTMLDoc =
(HTMLDocument)editorKit.createDefaultDocument();
FileReader in = new FileReader("simple.html"); // Simple HTML
file with normal English text
editorKit.read(in, HTMLDoc, 0);
textPane.setPreferredSize(new Dimension(200, 200));
textPane.setMaximumSize(new Dimension(200, 200));
textPane.setSize(new Dimension(200, 200)); // setting all those
size attributes didn't change anything :(
textPane.setDocument(HTMLDoc);}
catch(Exception e) {e.printStackTrace();}
JScrollPane scrollPane = new JScrollPane(textPane);
scrollPane.setPreferredSize(new Dimension(200, 200));
getContentPane().add(scrollPane);
}
private static void createAndShowGUI() {
final TextComponentDemo frame = new TextComponentDemo();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setVisible(true);
}
public static void main(String[] args) {
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
}
});
}
}
---
Any idea why this happens?
- 3
- Windows program to interface with Motorola V3Hi all,
I'm trying to write a java program to run on windows that will be able
to read from / write to the phonebook on my Motorola V3. I've tried
searching the web (and of course the Motorola site), but I can't quite
find what I'm looking for - I keep coming up with J2ME references, but
since I don't want anything that runs on the phone, that's not what I'm
after. Anyone know where I can find the info I need to get going?
I'm an experienced java developer, so a shove in the right direction
should be all I need! Thanks in advance.
- 4
- a problememail***@***.com wrote:
>> hi,
>> any one of the group ,please solve my problem
>> "is there is any method to find given number is even
>> or odd without using if ,else ,for,while,switch,conditional
>> operators,if else ladders...."
email***@***.com wrote:
> a number is odd if it is not divisible by 2 or the last bit of the
> number is not set .
> so just do this ..
> number & 1 i.e operate bit wise and with number and 1 if its 0 then
> number is even else odd
And someone who can't figure that out without your help needs to change their
major to toenail clipping.
Why are we spoon-feeding this homework solution to them?
- Lew
- 6
- entity EJB concurrent accessHi!
This is my piece of code that doesn't work and I have no idea why:
//this is a method in a message driven bean
myMethod()
{
MyEntity myEntity = manager.find(MyEntity.class, objektId);
manager.lock(myEntity,LockModeType.WRITE);
if (myEntity.getStatus()==Consts.OPEN)
{
myEntity.setStatus(Consts.SOMETHING);
manager.persist(myEntity);
manager.flush();
[...]
}
}
I have a second message driven bean with similar method invoked on the
same entity. When they are invoked at the same time I get these errors:
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.4 (Build
060412)): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: org.postgresql.util.PSQLException: ERROR: could not
serialize access due to concurrent updateError Code: 0
Call:UPDATE MyEntity SET status = ?, version = ? WHERE ((id = ?) AND
(version = ?))
bind => [3, 118, 258, 117]
etc.
I don't understand why manager.lock doesn't prevent that. I have no
other methods accessing this table.
Secondly, why don't I get OptimisticErrorException?
Thirdly, what is a "good" semantics of dealing with concurrent access
(I can't avoid concurrent access, and because these methods are invoked
from a message bean it is essential that they complete successfuly.
Otherwise noone would know that something went wrong - except for logs
:) How can I retry my method?)
My software is
- Sun Java Application Server 9.0
- PostgreSQL 8.1
- Windows XP
Thanks in advance
Marcin
- 6
- Model Driven Integration and UMLI am reading up on MDI (Model Driven Integration), a type of
information systems integration where corporate systems need to be
integrated, usually employing something like JMS (Java Message
Service) for publish/subscribe messaging. Anyone here know about MDI?
What is the essential difference between MDI and "traditional"
techniques -- is the model in MDI derived from UML diagrams of the
business objects?
Thanks
Bruce
- 6
- ClassInstanceCreationBelow is a definition of ClassInstanceCreation as it is defined in
Eclipse JDT.
I'm confused about what is a first expression (i mark it with question
sign).
========================================
ClassInstanceCreation:
[ Expression . ] < - - - - - - - - - - - - ?
new [ < Type { , Type } > ]
Type ( [ Expression { , Expression } ] )
[ AnonymousClassDeclaration ]
========================================
So i can write something like this:
========================================
SomeExpression.new String("mystring")
========================================
what may be SomeExpression that the code above can compile?
==
Thanks, Dimitri
- 11
- Offline browsing web site technology?Hello everyone,
I have heard that there are some offline technologies which can enable
users to browse web site in offline mode. It can prefetch some information
from the web site (for example, Yahoo map data for some specific cities)
when network connection is available. And when in the future the network
connection is not available, the user can offline browse the information
which is prefetched before. The user can also put some queries to the
"prefetched web site" even when the network connection is not available,
and the queries can be sent to the web server when network connection is
available.
I am wondering whether there are any papers, tutorials and specially Java
open source technologies in this topic.
Thanks in advance,
George
--
Message posted via http://www.javakb.com
- 12
- JMX + Tomcat?Is it possible to use the Tomcat Server as a Mbean containter for non web
application? This MBeans will be registered from a standalone application.
Other words, I'm looking for any container for register my MBeans from
standalone app, I can't use the Jboos Server and the rmiregistry. Maybe in
JV is any default server where I can register my MBean and then create
MBeanServerConnection to invoke remote method from beans from another
standalone application client?
Any ideas? :)
DM
- 12
- JSlider QuestionHello,
I have a JSlider that I am using to set a stored Preference called DELAY. I
have added a change listener, which calls getValue() and changes the DELAY
setting when the slider is moved.
When I first run my program, I would like to set the value of the slider to
the stored DELAY value.
Hovever, when I call setValue(), my change listener gets
called, which then does a getValue(), returning 0. So, my slider is always
set to zero at startup.
How can I programmatically set the value of my slider?
Thanks!
Aaron Boxer
- 12
- OT: Wireless gaming market to generate US$41.3 billion in revenue in 2007US $41 BILLION!!!!! is somebody smokin' something fierce or what!!!????
and of course, most of those games will be java-based ;-)
----------------------------------------------
July 14, 2003
The global market for wireless gaming services will grow from US$561
million in 2002 to US$41.3 billion in 2007 according to the new report
from The Research Room - Wireless Gaming: Strategies for Profit. The
majority of this revenue will be driven from Java and BREW downloadable
games and the additional traffic that the networked and multiplayer
games generate on the mobile data networks.
http://www.3gnewsroom.com/3g_news/jul_03/news_3586.
more news:
http://www.blueboard.com/j2me/
- 15
- exit from sub immediatly
hi all,
I am in a jButton1_actionPerformed(ActionEvent e) body and I execute an catch in it. As last instruction of catch I want to exit from jButton1_actionPerformed(ActionEvent e) body immediatly and don't execute remainder code.
Can I do?
thank you
renato
- 15
- Tomcat 4.0, MySQL and connection pools...I'm having a heck of a time getting connection pooling to work under Tomcat
4.0.6 with MySQL. I've done the following steps:
1. Copied the mysql.jar file into $TOMCAT_HOME/commons/lib, along with
commons-collections.jar, commons-dbcp.jar and commons-pool.jar
2. Placed the following default context into my server.xml file:
<DefaultContext>
<Resource name="jdbc/RapixDB" auth="Container"
type="javax.sql.DataSource" />
<ResourceParams name="jdbc/RapixDB">
<parameter>
<name>driverClassName</name>
<value>org.gjt.mm.mysql.Driver</value>
</parameter>
<parameter>
<name>driverName</name>
<value>jdbc:mysql://localhost/account</value>
</parameter>
<parameter>
<name>user</name>
<value>.....</value>
</parameter>
<parameter>
<name>password</name>
<value>.....</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>20</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>30000</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>100</value>
</parameter>
</ResourceParams>
</DefaultContext>
3. Added the following to my web.xml file for my servlet:
<resource-ref>
<description>Proxy DB Connection</description>
<res-ref-name>jdbc/RapixDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
4. And am using standard JNDI calls to create my initial context and then
attempt to grab a data source.
Things fall apart on step #4 above. I consistently get a NamingException
thrown when I call InitialContext.lookup("java:comp/env/jdbc/RapixDB").
Any help?
--
Darryl L. Pierce <email***@***.com>
Visit the Infobahn Offramp - <http://bellsouthpwp.net/m/c/mcpierce>
"What do you care what other people think, Mr. Feynman?"
- 16
- log4j:WARN No appenders could be found for logger.Hi,
I guess there are few that are familar with this. I get it from time
to time (long times) but forget how I fixed it previously... bad boy :-
(
Can someone please help me with this?
I have a simple application - not a web one, not using any web server.
A simple swing application.
I assume the file is not in the right place although I tried to put it
in many places:
Under the mail directory, near the classes, inside a configuration
directory, and more.
The class path is as follows:
<?xml version="1.0" encoding="UTF-8" ?>
- <classpath>
<classpathentry kind="src" path="src" />
<classpathentry kind="lib" path="lib/log4j-1.2.14.jar" />
<classpathentry kind="lib" path="lib/dom4j-1.6.1.jar" />
<classpathentry kind="lib" path="lib/jaxen-1.1-beta-5.jar" />
<classpathentry kind="lib" path="lib/sftp.jar" />
<classpathentry kind="lib" path="lib/classes12.jar" />
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER" />
<classpathentry kind="output" path="bin" />
</classpath>
Thanks!
|
| Author |
Message |
anonymous

|
Posted: 2005-11-4 14:02:00 |
Top |
java-programmer, For fools who are believers
What sense to build cities that sink where people can build
(lifeboat/pod) cities that float?
...
...
...
on oceans,
...
hydraulically buffering shock energy using hydrodynamics
....
of cities constructed of lifeboats?
...
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- Cheap Skagen Slimline Mesh Black Titanium Square Mens Watch 396LTMB Wholesale, Replicas, FakeCheap Skagen Slimline Mesh Black Titanium Square Mens Watch 396LTMB
Wholesale, Replicas, Fake
Skagen Slimline Mesh Black Titanium Square Mens Watch 396LTMB Link :
http://www.watches-replicas.com/Skagen-Slimline-Mesh-Mens-Watch-396LTMB-6586.html
To Wholesale the cheapest Skagen Slimline Mesh Black Titanium Square
Mens Watch 396LTMB in toppest Replica . www.watches-replicas.com helps
you to save money! Skagen-Slimline-Mesh-Mens-Watch-396LTMB , Skagen
Slimline Mesh Black Titanium Square Mens Watch 396LTMB , Replias ,
Cheap , Fake , imitation , Skagen Watches
Skagen Slimline Mesh Black Titanium Square Mens Watch 396LTMB
Information :
Brand : Skagen Watches (http://www.watches-replicas.com/
skagen-watches.html )
Gender :
Code : Skagen-Slimline-Mesh-Mens-Watch-396LTMB
Item Variations :
Case Material :
Case Diameter :
Case Thickness :
Dial Color :
Bezel :
Movement :
Crystal :
Clasp :
Water Resistant :
Availability: In StockSkagen Slimline Mesh Black Titanium Square Mens
Watch 396LTMBBlack titanium case and mesh bracelet. Black dial. Day
and date displays at 3 o'clock position. Mineral crystal. Quartz
movement. Water resistant at 30 meters (100 feet). Skagen Slimline
Mesh Black Titanium Square Mens Watch 396LTMBSkagen Slimline Mesh
Black Titanium Square Mens Watch 396LTMB is brand new, join thousands
of satisfied customers and buy your Skagen Slimline Mesh Black
Titanium Square Mens Watch 396LTMB with total satisfaction . A
Weholesale-watches.org 30 Day Money Back Guarantee is included with
every Skagen Slimline Mesh Black Titanium Square Mens Watch 396LTMB
for secure, risk-free online shopping. Weholesale-watches.org does not
charge sales tax for the Skagen Slimline Mesh Black Titanium Square
Mens Watch 396LTMB, unless shipped within New York State. Weholesale-
watches.org is rated 5 stars on the Yahoo! network.
Skagen Slimline Mesh Black Titanium Square Mens Watch 396LTMB is new
brand replica, join thousands of satisfied customers and buy your
Skagen Watches with total satisfaction. A Watches-Replicas.COM 30 Day
Money Back Guarantee is included with every Skagen Watches Replica
Series for secure, risk-free online shopping. Watches-Replicas.COM
does not charge sales tax for the Fake Skagen Slimline Mesh Black
Titanium Square Mens Watch 396LTMB.
All of our replica watches are shipped via EMS to worldwide. Normally
it takes 3days to prepare the fake watch you ordered and 5-10days to
transmit depending on the different destination.We pay for the free
shipping cost for total quantity over 20 pcs. The EMS tracking NO.
will be sent by email when an order is shipped from our warehouse. No
more other charges from watch-replicas.com such as the tax. If you
have any other questions please check our other pages or feel free to
email us by email***@***.com.
The Same Skagen Watches Series :
Skagen Slimline Black Leather Mens Watch 396LTMLB :
http://www.watches-replicas.com/Skagen-Slimline-Mens-Watch-396LTMLB-6587.html
Skagen Slimline Mesh Crystal Rose Gold-tone Steel Mini Ladies Watch
502XSRR :
http://www.watches-replicas.com/Skagen-Slimline-Ladies-Watch-502XSRR-6588.html
Skagen Slimline Mesh Crystal Kaffe Espresso Steel Mini Ladies Watch
502XSMM :
http://www.watches-replicas.com/Skagen-Slimline-Ladies-Watch-502XSMM-6589.html
Skagen Slimline Mesh Crystal Two-tone Steel Mini Ladies Watch
502XSGS :
http://www.watches-replicas.com/Skagen-Slimline-Ladies-Watch-502XSGS-6590.html
Skagen Slimline Mesh Crystal Kaffe Espresso Mini Ladies Watch
233XSMM :
http://www.watches-replicas.com/Skagen-Slimline-Ladies-Watch-233XSMM-6591.html
Skagen Slimline Mesh Mens Watch 233LSSN :
http://www.watches-replicas.com/Skagen-233LSSN-6592.html
Skagen Titanium Mesh Mens Watch 233XLTTM :
http://www.watches-replicas.com/Skagen-233XLTTM-6593.html
Skagen Titanium Mens Watch 233XLTMB :
http://www.watches-replicas.com/Skagen-233XLTMB-6594.html
Skagen Slimline Mesh Mens Watch 233XLSGS :
http://www.watches-replicas.com/Skagen-233XLSGS-6595.html
Skagen Slimline Mesh Ladies Watch 233SSSN :
http://www.watches-replicas.com/Skagen-233SSSN-6596.html
Cheap Skagen Slimline Mesh Black Titanium Square Mens Watch 396LTMB
Wholesale, Replicas, Fake
- 2
- N Things taken M at a timeI cannot get my head around how to code this algorithm, am hoping someone
has an idea that can get me started here.
If I have an array of N ints:
int array[N];
and I want to make an array of those N things, taken Q at a time, where Q >=
N (i.e.repetition is permitted).
For example, if I have N=2 where:
int arrayN[] = new int[{0, 1}] ;
and let's say Q = 3
double arrayQ=new double[{
{0,0,0},
{0,0,1},
{0,1,1},
{1,1,1},
{1,1,0},
{1,0,0},
{0,1,0},
{1,0,1}
}[;
I believe this will yeild N ^ Q permutations. I'm trying discern however,
how to go about creating a function to write out the new array[][] for a
given Q for a given one-dimensional input array. I'm into the train of
thinking whereby I have to "write code to write code," if you know what I
mean. Has anyone handled a problem similar to this in the past? Thanks, any
help is more than appreciated. -Ike
- 3
- Desperately seeking strtod()
This is probably simple, but I must be looking in
the wrong places ... I'm trying to do what the strtod()
function does for me in C: Find the longest prefix of a
string that looks like a number, produce its numeric
value, and tell me where the unconverted suffix starts.
This sounds like a job for DecimalFormat.parse(), but
I can't get it to accept all the things I'd like it to
consider as numbers. Constructed from the pattern "0E0"
or "#E0" (or "0e0" or "#e0"), a DecimalFormat will happily
parse "1" and "1.2" and ".2" and "-1.2E3", and "1E-3", but
it rejects "+1" and "1e3" and "1E+3". Some of the rejections
are outright failures ("+1" gives a null result, for example),
while others are incomplete conversions ("1E+3" produces the
value 1 with "E+3" as the unconverted suffix).
Now, Double.valueOf() happily accepts and does the
right thing with all these forms -- but it insists on
converting the entire string, not just a prefix. It'd
be possible to do a sort of binary search to find the
longest prefix that doesn't provoke NumberFormatException,
but my stomach turns at the thought of such vileness.
Please help an old C programmer who's trying to reform:
Where do I find the Java equivalent of strtod()?
--
email***@***.com
- 4
- Content type of imageHi,
I have the binary representation of an image ( byte[] ). Can I
get the content type in the form "image/xxx" from it ?
- 5
- Removing adult material designationHi,
I started a group and see that it asks if people are over 18 before
letting them into the group.
I want to remove the adult material designation.
Do I have to remove the group and start all over? i can not find any
place to edit that feature.
Jim Petersen
- 6
- [ANN] Minimal servlet serverThe 'snigel heavy industries' servlet server version 0.0.1 has been
released.
* 40kB of source code
* BSD licence
= Limitations =
* Is not (yet) compliant with the javax.servlet
* METHOD GET only
= Features =
* Cookies
* Sessions
* (Browsable) public directories
* Comes with a set of easy to use widgets
* Listview
* Treeview
* Bean introspecting GUI
= How? =
public static void main(String[] args)
throws Exception
{
ServletServer server = new ServletServer(8080);
server.setPublicRoot(new
File("/home/kalle/projects/snigel/servlet/public_html"));
server.putContext("/test", new TestServlet());
new Thread(server).start();
}
= Why? =
I was sick and tired of starting my applications from the servlet
engine, beeing unable to debug the servlets, having to restart the
servlet engine all the time, et.c.
= Where? =
<http://snigel.dnsalias.net/snigelwiki/se_2esnigel_2enet_2eservlet>
Please report bugs, feature requests and patches at the Wiki
or via email: <mailto:email***@***.com>
- 7
- SAX Question -Hello, I am faced with a problem trying to use SAX - my class is as shown.
The problem is that the data structure "cm" is getting populated correctly
when printed from the endDocument() callback method, but getModel() call
subsequently does not return the results of the parsed XML.
As I am relatively new to SAX, I am wondering why this is - it doesn't do me
any good to see my data structure lost, after I have successfully populated
it from XML!
Thanks, and please email me directly on the reply.
Thanks, Paul
email***@***.com
public class ContactsModelBuilder extends DefaultHandler {
protected ContactsModel cm;
...
public void buildModel (String filename) {
...
try {
SAXParser saxParser = factory.newSAXParser();
saxParser.parse(new File(filename), handler);
} catch (SAXParseException spe) {
...
}
public void endDocument()
throws SAXException
{
if (cm != null) {
// THIS CALL IS GOOD!
// THIS CALL IS GOOD!
// THIS CALL IS GOOD!
cm.print();
}
}
public ContactsModel getModel () {
// THIS CALL RETURNS NULL *AFTER* endDocument()
// THIS CALL RETURNS NULL *AFTER* endDocument()
// THIS CALL RETURNS NULL *AFTER* endDocument()
return cm;
}
- 8
- JTextPane StylesHi,
I use colors to highlight some parts of the JTextPane. For that I
create two styles using:
StyleContext sc = StyleContext.getDefaultStyleContext();
AttributeSet errorAtr = sc.addAttribute(SimpleAttributeSet.EMPTY,
StyleConstants.FOREGROUND, Color.red);
AttributeSet defaultAtr = sc.addAttribute(SimpleAttributeSet.EMPTY,
StyleConstants.FOREGROUND, Color.black);
Some lines, I set the errorAttr to make it in red color. When the user
edits it, I make it black again by using following in documentListener
insertUpdate():
document.setCharacterAttributes(pos, length, defaultAtr, true);
However, the problem is, When I type anything after this, it is shown
in red color. Is the attribute cached somewhere? How to remove it?
- 9
- Call to dial a modemHi all,
I need to develop a application which dial a modem and could be scheduled to do so.
Any ideas?
rgds,
c0rum_Z
- 10
- [MVC] If there is only a form ...If there is only a form for user to input data, how can I implement it
by MVC?
Currently, I achieve it by:
1) View: there is a jsp for user to input data.
2) Controller: there is a servlet which is called by the form acton. It
is responsible for two tasks:
a) insert data to database ( the data is retrieved by
request.getParameter(). Is it better to achive it by using java beam?
b) if the insertion is successful, the servlet will forward to a
thankyou page, otherwise it will forward to a error page.
3) Model: ?? here, I don't know whether I shoud use java beam...
- 11
- function not definedI am a VERY NEW programmer and having problems with the code below. I keep
getting an error "function undefined" Can someone please help.
{
for (int month = 0; month <361; month++)
System.out.println(month+" \t"+intPmtOut+" \t"+prinPmtOut+"
\t"+prinBalOut);
{
if (Math.abs(month % 12) == 0)
{
if (month < 361)
{
System.out.println("Press Enter to continue");
}
try
{
int temp = System.in.read();
}
catch(Exception error)
{
}
}
{
{
if (month < 361)
{
System.out.println("\t Interest \t Principal \t Principal");
System.out.println("Months \t Payment \t Payment \t Balance");
System.out.println(month+" \t"+intPmtOut+" \t"+prinPmtOut+"
\t"+prinBalOut);
}
}
}
}
}
- 12
- How to discriminate between JComboBox events?
This is one of those graphic things which are so easy
to show in a GUI, but harder to explain in words, so bear
with me...
When my app's JComboBoxes are clicked I can capture every
single change while the user is trying to decide with the
up arrow and down arrow keys. This allows some really neat
and dynamic things such as changing other components "live" or
in real time as the user navigates up and down. I make
extensive use of this Java event capture.
However, what I need additionally is to detect when the user has
made up her mind and the selecting process is finished. This
occurs for instance, when the <TAB> key is pressed and as a
result, the focus is transfered to the next component.
So, how can I detect _not_ the fine grain, up&down event,
but the higher level selection?
(Hopefully I was able to explain the question clearly).
TIA,
-Ramon F. Herrera
- 13
- Building Java Apps for Mobile PhonesI would like to build java apps for mobile phones. Where's some good places
online to start? Is there a list anywhere that states which phones are java
compatible - and indeed allow you to install custom java apps on them?
Thanks
- 14
- Hi Roedy: How do I find out if it is because of the Lutheran church, ...On Fri, 21 Oct 2005 21:52:37 GMT, Casey Hawthorne
<email***@***.com> wrote or quoted :
>How do I find out if it is because of the Lutheran church, which tried
>to connect me to child pornography, covered up pedophilia, and seems
>heterophobic!
It is your email provider that would be blocked. I have an alternate
address posted on my website.
The usual reason an ISP is blocked is because he refuses to clamp down
on his spamming customers.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
- 15
- J2ME - Problem using FileSystemHi,
I am trying to write a simple midlet for Sony Ericsson S710 phone (CLDC
1.1, MIDP 1.0, MIDP 2.0) where I try using FileSystemRegistry for
listing file system roots. The midlet runs ok on the simulator but gives
a NoClassDefFoundError for FileSystemRegistry.
I tried following -
Try to package all the jsr75 class files along with the midlet jar. The
phone does not like this (a message - can not create class in system
package is displayed). I tried signing the jar using the Ktoolbar that
came with the SDK from sony ericsson.
I eventually need to read and write files from the memory stick. If
JSR75 is not supported, how do I do achieve this (file system access)?
Thanks,
Abhijat
|
|
|