comp.lang.java.programmer
http://groups-beta.google.com/group/comp.lang.java.programmer
[EMAIL PROTECTED]

Today's topics:

* "static" prefix - to parallel "this" prefix - 2 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f5dde10882ac2157
* MIDP MIDlet: which characters are supported in the phone font? - 1 messages, 
1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/73bdfdf7f36c6ea0
* Java and Autonomy - 2 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5e0f9cc3c246f2a2
* Delete a panel inside a panel (2) - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/39f13ffc05d5cc4
* Get Path Where A Class Is Located - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d3439526d8794dd6
* Anyone have any experience with WebLogic 8? - 4 messages, 3 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c2807943e7284e7d
* Queue of Objects - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6b95b60f123d5be3
* EJB session bean design questions - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5ad3fd97a3b108ff
* Parse Array of Objects - string delimiter java - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6f00a610222e5584
* Delete a panel inside a panel - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a3a93919190a899d
* Can Java Programmer Learn C++ Quickly? - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7c7a28aa864e41ec
* newbie - Servlets - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9871d1fe64dbaa63
* how client-side presentation code interacts with server-side sorting/filter 
code? - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/37545f3b58c9bd79
* Java 5, how to clone an ArrayList - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5fc3382e4b73529
* Eclipse: List of TODO tags in Task view - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/00ec03d9704ddd3c
* Scrollable JPanel having GridLayout. - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1b22abc8446a6dd0

==============================================================================
TOPIC: "static" prefix - to parallel "this" prefix
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f5dde10882ac2157
==============================================================================

== 1 of 2 ==
Date: Tues, Dec 7 2004 4:50 pm
From: "Darryl L. Pierce"  

Tim Tyler wrote:
>>>If the class name is a rather LongOneWithManyCharacters the approach
>>>becomes unweildy.
>>
>>How does it hinder refactoring? Search-and-replace the old class name 
>>for the new class name in one source file and it's done. Not a problem.
> 
> That step is totally unnecessary if the class neme is not hird-wired into 
> the class all over the place.

It's not necessary to use the classname all over the place. It's only 
necessary in those places where it keeps the usage from being ambiguous.

> Also - as I mentioned - using the name in many places in the class
> hinders readability if the class name is very long.

I disagree. Readability is in the eye of the reader.

>>And, what do you mean by "specifying each fact in one place"? Sorry, I'm 
>>not familiar with that phrase with regards to software development.
> 
> Useful programming proverb: specify each fact in one place.
> 
> More realistic verion: specify each fact in as few places as possible.
> 
>>What fact is being specified all over the place that wouldn't also be 
>>specified all over the place by the "static" keyword?
> 
> The name of the class.

But you're not specifying the name of the class here. You're specifying 
the context of the variable in question. That it just happens to *also* 
be the classname is just a coincidence, and doing that doesn't harm the 
code or the intention at all.

-- 
Darryl L. Pierce <[EMAIL PROTECTED]>
Visit my webpage: <http://mcpierce.multiply.com>
"By doubting we come to inquiry, through inquiry truth."
     - Peter Abelard



== 2 of 2 ==
Date: Tues, Dec 7 2004 4:51 pm
From: "Darryl L. Pierce"  

Tim Tyler wrote:
>>>The feature is not present there.
>>
>>It's an advanced editing feature.
>>
>>Window->Preferences->Java->Editor->Syntax->Enable advanced highlighting
> 
> Goodness.  Thanks.  It works!

No problem, mate. :)

<snip>

> Also - it seems to make Eclipse even more sluggish :-|

I know. That's why I mostly keep it turned off. :/

-- 
Darryl L. Pierce <[EMAIL PROTECTED]>
Visit my webpage: <http://mcpierce.multiply.com>
"By doubting we come to inquiry, through inquiry truth."
     - Peter Abelard




==============================================================================
TOPIC: MIDP MIDlet: which characters are supported in the phone font?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/73bdfdf7f36c6ea0
==============================================================================

== 1 of 1 ==
Date: Tues, Dec 7 2004 4:53 pm
From: "Darryl L. Pierce"  

Jens wrote:
> Which unicode characters does a phone support? Is this defined
> somewhere? Does a phone support pi and math symbols and arrows?

It supports whatever locale(s) are on the phone.

-- 
Darryl L. Pierce <[EMAIL PROTECTED]>
Visit my webpage: <http://mcpierce.multiply.com>
"By doubting we come to inquiry, through inquiry truth."
     - Peter Abelard




==============================================================================
TOPIC: Java and Autonomy
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5e0f9cc3c246f2a2
==============================================================================

== 1 of 2 ==
Date: Tues, Dec 7 2004 1:58 pm
From: "Alberto"  

As the matter of fact, I did look up google and most hits don't help at
all. I also checked Autonomy's website and I found very confusing the
way they refer to old names (e.g. DRE=SUIRs). I'm working on using the
fetches Autonomy provides (FileSystem, NotesFetch,
PSTFetch..etc..etc...) I'll try to find a way to automate the process
but in the mean time, if there is anyone there with few tips... google
is not too helpful for now... :(




== 2 of 2 ==
Date: Tues, Dec 7 2004 1:59 pm
From: "Alberto"  

As the matter of fact, I did look up google and most hits don't help at
all. I also checked Autonomy's website and I found very confusing the
way they refer to old names (e.g. DRE=SUIRs). I'm working on using the
fetches Autonomy provides (FileSystem, NotesFetch,
PSTFetch..etc..etc...) I'll try to find a way to automate the process
but in the mean time, if there is anyone there with few tips... google
is not too helpful for now... :(





==============================================================================
TOPIC: Delete a panel inside a panel (2)
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/39f13ffc05d5cc4
==============================================================================

== 1 of 2 ==
Date: Tues, Dec 7 2004 9:57 pm
From: Andrew Thompson  

On Tue, 07 Dec 2004 21:41:19 GMT, Andrew Thompson wrote:

> BTW - best group for GUI questions..
> <http://www.physci.org/codes/sscce.jsp>

..ahem.  Rather <http://www.physci.org/codes/javafaq.jsp#cljg>



== 2 of 2 ==
Date: Wed, Dec 8 2004 11:47 am
From: "HS1"  

Thanks
I use validate and it works
Thank you for the link

"Andrew Thompson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Tue, 07 Dec 2004 21:41:19 GMT, Andrew Thompson wrote:
>
> > BTW - best group for GUI questions..
> > <http://www.physci.org/codes/sscce.jsp>
>
> ..ahem.  Rather <http://www.physci.org/codes/javafaq.jsp#cljg>






==============================================================================
TOPIC: Get Path Where A Class Is Located
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d3439526d8794dd6
==============================================================================

== 1 of 1 ==
Date: Tues, Dec 7 2004 2:02 pm
From: [EMAIL PROTECTED] 

Try this ...

Create the following ksh utility and put it in your local bin
directory.
Call it jwhich.

#!/bin/ksh

/usr/j2se/bin/java -classpath $CLASSPATH:/home/emmmcl01/bin JWhich $*

And then use the class file compiled from the code below:

This class does sort of what you want, it locates the class in the jar
files on disk in your classpath.

This gives you a utility that works like

jwhich org.jdom.Element
/home/me/jars/jdom.jar


public class JWhich
{
/**
* Returns the absolute pathname of the class file
* containing the specified class name, as prescribed
* by the current classpath.
*
* @param className The full (package-qualified) name of the class.
* @return the absolute pathname of the file containing the class
specified by <code>className</code>
*/
public static String which( String className )
{
if ( !className.startsWith("/") )
{
className = className.replace( '.', '/' );
className = className + ".class";
className = "/" + className;
}

java.net.URL classUrl = new JWhich().getClass().getResource(
className );

if ( null == classUrl ) return( null );
return( classUrl.getFile() );

}//which( String )


public static void main( String args[] )
{
if ( args.length > 0 )
{
String className = args[0];
String classfilePath = JWhich.which( className );

if ( null != classfilePath )
{
System.out.println( classfilePath );
}
else
{
System.out.print( "Class '" + className + "'" );

char cpSep = System.getProperty( "path.separator" ).charAt(0);
String classPath = System.getProperty( "java.class.path" );
classPath = classPath.replace( cpSep, '\n' );

System.out.println( " not found in\n" + classPath );
}
}
else
{
System.err.println( "Usage: java " + JWhich.class.getName() + "
<classname>" );
                }

        }//main( String args[] )

}//class JWhich





==============================================================================
TOPIC: Anyone have any experience with WebLogic 8?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c2807943e7284e7d
==============================================================================

== 1 of 4 ==
Date: Tues, Dec 7 2004 2:05 pm
From: [EMAIL PROTECTED] 

Hello, I have just installed WebLogic 814 for Solaris 8.  The machine
is in a remote location, so I did all the installation remotely.  My
question is, how do I create a data source?  I am used to WL 5 with the
weblogic.properties file, but WL 8 seems different.
Any help is greatly apprciated, - Dave




== 2 of 4 ==
Date: Tues, Dec 7 2004 2:04 pm
From: [EMAIL PROTECTED] 

Hello, I have just installed WebLogic 814 for Solaris 8.  The machine
is in a remote location, so I did all the installation remotely.  My
question is, how do I create a data source?  I am used to WL 5 with the
weblogic.properties file, but WL 8 seems different.
Any help is greatly apprciated, - Dave




== 3 of 4 ==
Date: Tues, Dec 7 2004 3:31 pm
From: [EMAIL PROTECTED] 

I suggest using the weblogic console -
http://pathtoyourserver:7001/console

Or you can edit the config.xml file in your domain to look something
like the following:

<JDBCConnectionPool DriverName="com.your.db.Driver"
Name="YourPool"
Password="yourpass"
Properties="user=EAIHeartbeat"
Targets="myserver"
URL="jdbc:mysql:machine:3306/db"/>

<JDBCTxDataSource JNDIName="some.jndi.name"
Name="GenericName"
PoolName="YourPool" Targets="myserver"/>




== 4 of 4 ==
Date: Tues, Dec 7 2004 4:56 pm
From: "Tim"  


Thou shalt edit the config.xml or go to http://srvr:port/console and
login with system and password. Its called config.xml here but web.xml
I think is the general name used in Tomcat and others.
srvr:port is the ip or machine name for srvr and for port try 80, 7021,
or 7041 I think.

E.g....
<JDBCConnectionPool CapacityIncrement="1"
CountOfTestFailuresTillFlush="1"
DriverName="oracle.jdbc.OracleDriver" InitialCapacity="5"
MaxCapacity="50" Name="refGlobalConnPool"
Password="{3DES}Me0n613G5wm3GkAP/WHUSw=="
Properties="user=t3datglobl" RefreshMinutes="0"
ShrinkPeriodMinutes="15" ShrinkingEnabled="true"
SupportsLocalTransaction="true" Targets="admin"
TestConnectionsOnRelease="false"
TestConnectionsOnReserve="true"
TestFrequencySeconds="300"
TestTableName="SQL SELECT 1 FROM DUAL"
URL="jdbc:oracle:thin:@hppqsd01:1521:T3DD"/>
<JDBCConnectionPool CapacityIncrement="1"
CountOfTestFailuresTillFlush="1"
DriverName="oracle.jdbc.OracleDriver" InitialCapacity="5"
MaxCapacity="20" Name="refExtConnPool"
Password="{3DES}GYcuSaCGqXBBa8CGnsfd6g=="
Properties="user=t3datglbext" RefreshMinutes="0"
ShrinkPeriodMinutes="15" ShrinkingEnabled="true"
SupportsLocalTransaction="true" Targets="admin"
TestConnectionsOnRelease="false"
TestConnectionsOnReserve="true"
TestFrequencySeconds="300"
TestTableName="SQL SELECT 1 FROM DUAL"
URL="jdbc:oracle:thin:@hppqsd01:1521:T3DD"/>

and also

<JDBCTxDataSource EnableTwoPhaseCommit="true"
JNDIName="cgDataSource-nonXA;weblogic.jdbc.jts.ebusinessPool"
Name="cgDataSource-nonXA" PoolName="cgJMSPool-nonXA"
Targets="admin"/>
<JDBCTxDataSource EnableTwoPhaseCommit="true"

JNDIName="portalFrameworkPool;contentDataSource;weblogic.jdbc.jts.commercePool"
Name="portalFrameworkPool" PoolName="portalPool"
Targets="admin"/>
<JDBCDataSource JNDIName="GloblDataSource" Name="GloblDataSource"
PoolName="refGlobalConnPool" Targets="admin"/>
<JDBCTxDataSource EnableTwoPhaseCommit="true"
JNDIName="refExtDataSource" Name="refExtDataSource"
PoolName="refExtConnPool" Targets="admin"/>

It's all XML so you can make it work by looking at the other XML. Best
way is to use the GUI. Drill into services or something like that. A
lot more flexible than the .properties file. Oh yeah!
Best luck, TimJowers





==============================================================================
TOPIC: Queue of Objects
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6b95b60f123d5be3
==============================================================================

== 1 of 2 ==
Date: Tues, Dec 7 2004 10:22 pm
From: "Virgil Green"  

"terminator" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
> I want to create a Queue contains many objects (e.g. numbers) then sort
> these objects.
> if any one have an idea about that it will be appreciated.
>

Comparable and Comparator

 - Virgil





== 2 of 2 ==
Date: Tues, Dec 7 2004 2:16 pm
From: "terminator"  

Hi,
I want to create a Queue contains many objects (e.g. numbers) then sort
these objects.
if any one have an idea about that it will be appreciated.


Thanks....





==============================================================================
TOPIC: EJB session bean design questions
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5ad3fd97a3b108ff
==============================================================================

== 1 of 2 ==
Date: Tues, Dec 7 2004 10:34 pm
From: "davout"  

I'm building my first complicated EJB application and I've hit a problem to 
do with declarative transaction settings. It's a subject that to date I've 
been able to ignore - now I'm hoping somebody can help me with some general 
guidance.  I'm using the facade pattern where a stateless session bean masks 
access to underlying CMP entity beans.

One of my more important session bean methods is a lengthy process that 
involves multiple steps, each step will itself call one or more other 
stateless session beans. Most of the calls to other stateless session beans 
are to retrieve information, like 'getEntityX', 'findAllEntityY'.

Occasionally one of these retrieval calls will fail, (the underlying entity 
may not exist). This is perculating up as a exception which triggers a 
transaction roll back error in the main process, which is not what I want. 
So it seems that I have to declare the transaction settings for each of the 
retrieval related methods to avoid yes, right?

These leads to two general design questions on stateless session beans that 
act as facades...

a). How to handle data not found situations.
If I have a session bean method like....

                public EmployeeVO findEmployee(String anEmployeeCode);

... what should the method return if the employee does not exist. Should I 
allow a EJBException to be thrown, or should the session bean method capture 
the exception and return a null value object result. Both methods are 
possible, I'm just wondering what is the more popular?

b). Declarative transactions for session bean methods
Should I by default make all session bean retrieval related methods have a 
'not supported' transaction setting?






== 2 of 2 ==
Date: Tues, Dec 7 2004 5:57 pm
From: Sudsy  

davout wrote:
<snip>
> These leads to two general design questions on stateless session beans that 
> act as facades...
> 
> a). How to handle data not found situations.
> If I have a session bean method like....
> 
>                 public EmployeeVO findEmployee(String anEmployeeCode);
> 
> ... what should the method return if the employee does not exist. Should I 
> allow a EJBException to be thrown, or should the session bean method capture 
> the exception and return a null value object result. Both methods are 
> possible, I'm just wondering what is the more popular?

Always check the definitive source, namely the Sun site. In the article at
<http://java.sun.com/j2ee/1.4/docs/tutorial/doc/BMP2.html> you'll find the
following statements:
"If a finder method returns a single primary key and the requested entity
does not exist, the method should throw the javax.ejb.ObjectNotFoundException
(a subclass of FinderException). If a finder method returns a collection of
primary keys and it does not find any objects, it should return an empty 
collection."

> b). Declarative transactions for session bean methods
> Should I by default make all session bean retrieval related methods have a 
> 'not supported' transaction setting?

You could, but wouldn't it make more sense to examine the root cause of a
failure? Ignoring the fact that a customer couldn't be found and creating
a purchase order anyway just doesn't sound right to me...  ;-)

-- 
Java/J2EE/JSP/Struts/Tiles/C/UNIX consulting and remote development.





==============================================================================
TOPIC: Parse Array of Objects - string delimiter java
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6f00a610222e5584
==============================================================================

== 1 of 1 ==
Date: Tues, Dec 7 2004 11:45 pm
From: Sébastien Auvray  

marvado a écrit :
> seems to work,
> all suggestions are valid for me
> thank you !
> 
> "Boudewijn Dijkstra" <[EMAIL PROTECTED]> wrote in message 
> news:[EMAIL PROTECTED]
> 
>>"Jim Cheng" <[EMAIL PROTECTED]> schreef in bericht 
>>news:[EMAIL PROTECTED]
>>
>>>Pedro is asking fir a String (comma delimitted) including the name, desc, 
>>>and age.
>>>So the following does not work.
>>>
>>>>---------------still not tested ---------------
>>>>String catlist;
>>>>
>>>>for (int j = 0; j < Cat.length; j++)
>>>>{
>>>> if(j!=0) catlist += ",";
>>>> catlist += Cat[j].cName;
>>>>}
>>>>
>>>>
>>>
>>>try:
>>>
>>>String catlist;
>>>
>>>for (int j = 0; j < Cat.length; j++)
>>>{
>>> if(j!=0) catlist += ",";
>>> catlist += Cat[j].cName +","+ Cat[j].cDesc +","+ cat[j].cAge;
>>>}
>>
>>StringBuffer buf = new StringBuffer(cat.length * 30);
>>
>>buf.append(cat[0].cName).append(',').append(cat[0].cDesc)
>> .append(',').append(cat[0].cAge);
>>for (int j = 1; j < cat.length; j++)
>>{
>> buf.append(',').append(cat[j].cName).append(',')
>>   .append(cat[j].cDesc).append(',').append(cat[j].cAge);
>>}
>>
>>String catlist = buf.toString();
>>
>>
> 
> 
> 
Hi !
It could also be beautiful to override Cat.toString, and use 
Collection.toString()...

i.e.
for Cat
String toString()
{
   return new 
StringBuffer(cName).append(',').append(cDesc).append(',').append(cAge)
}

then
// Produces [ cat1, desc1, age1, cat2, desc2, age2 ]
String result_l = Arrays.asList(arrayOfCatObjects).toString();
// Remove 1st and last character [ & ]
result_l = result_l.substring(1, result_l.length-1);




==============================================================================
TOPIC: Delete a panel inside a panel
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a3a93919190a899d
==============================================================================

== 1 of 1 ==
Date: Wed, Dec 8 2004 11:50 am
From: "HS1"  

Thank you
That is what I want
SH1
"Babu Kalakrishnan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> HS1 wrote:
> > Hello all
> >
> > I have some sub-panels inside a main panel. The main panel is
> > VerticalFlowLayout. Inside each subpanel, I have button "Delete". What I
> > want is that when I click the "Delete" in a panel, this sub-panel will
be
> > disposed and the main panel will be updated.
> > I do not want to have a variable main panel for each sub-panel as it is
not
> > a good design
> > Is there a good way to do this. Do I have to create event handlers????
> >
>
> If the subpanel is directly added to the main panel, calling getParent()
>   on the subpanel should give you a reference to it.
>
> BK






==============================================================================
TOPIC: Can Java Programmer Learn C++ Quickly?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7c7a28aa864e41ec
==============================================================================

== 1 of 1 ==
Date: Tues, Dec 7 2004 11:01 pm
From: Rene  

James Kanze <[EMAIL PROTECTED]> wrote:
> Well written C++ isn't necessarily difficult, but it is different from
> Java.  And while poorly written code is poorly written code in any
> language, C++ does seem to have a particular gift for encouraging it.

Ever seen perl code ? :-)

CU

René

-- 
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service                        $9.95/Month 30GB




==============================================================================
TOPIC: newbie - Servlets
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9871d1fe64dbaa63
==============================================================================

== 1 of 1 ==
Date: Wed, Dec 8 2004 1:07 am
From: Gerbrand van Dieijen  

Xarky wrote:
> Hi,
>   I have just downloaded and installed Tomcat 5.0.30.  I entered on
> the link localhost:8080 and followed some links and examples provided
> over there.  The worked fine.
> 
> 

It's much easier developing webapplications with an IDE. All the stuff 
like deployment, packaging to webarchives, copy libraries is done 
automatically.
I use JBuilder (Professional) for this. A demo can be downloaded from 
the http://www.borland.com. You could also try others like Netbeans or 
JavaOne (http://www.javasoft.com) or Eclipse (with possible plugins).




==============================================================================
TOPIC: how client-side presentation code interacts with server-side 
sorting/filter code?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/37545f3b58c9bd79
==============================================================================

== 1 of 2 ==
Date: Tues, Dec 7 2004 7:30 pm
From: Sudsy  

[EMAIL PROTECTED] wrote:
> how client-side presentation code interacts with server-side
> sorting/filter code?
> 
> I have a html table that has sorting and filter capabilities. The
> sorting and filter features
> are done by server side Java code. When the user clicks the icon, it
> should trigger
> the javascript onClick event, and then to submit the request to the
> server and get the
> new table. The question is how client-side code talk to server-side
> code? I know
> this is a very common question, and there should be a common technique
> to this problem.

There certainly is! It's often called the MVC (Model View Controller)
model. You click on the page controls and it sends a message to the
controller which then informs the view as to how it should present
the data in the underlying model. A common implementation is available
in the Struts framework.
Or perhaps you were asking something else?

-- 
Java/J2EE/JSP/Struts/Tiles/C/UNIX consulting and remote development.




== 2 of 2 ==
Date: Tues, Dec 7 2004 3:14 pm
From: [EMAIL PROTECTED] 


how client-side presentation code interacts with server-side
sorting/filter code?

I have a html table that has sorting and filter capabilities. The
sorting and filter features
are done by server side Java code. When the user clicks the icon, it
should trigger
the javascript onClick event, and then to submit the request to the
server and get the
new table. The question is how client-side code talk to server-side
code? I know
this is a very common question, and there should be a common technique
to this problem.

please advise. thanks!!





==============================================================================
TOPIC: Java 5, how to clone an ArrayList
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5fc3382e4b73529
==============================================================================

== 1 of 1 ==
Date: Tues, Dec 7 2004 5:31 pm
From: "Gary Newell"  

I need to make a shallow copy of an ArrayList.  Java 5 doesn't like my 1.4
coding method:

       newItem.list = (ArrayList)oldItem.list.clone();

How do I perform a shallow copy of an ArrayList in Java 5?

Thanks!

Gary










==============================================================================
TOPIC: Eclipse: List of TODO tags in Task view
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/00ec03d9704ddd3c
==============================================================================

== 1 of 1 ==
Date: Tues, Dec 7 2004 2:21 pm
From: "Tzar"  

I checked that. It looks fine.
I think problem is when I enter a comment like // TODO it does not
create a task icon on the left edge of the editor (after saving). If I
manually click on the left edge and select Add Task then it does but
for some reason it's not doing it for the // TODO comment.
I tried it on couple of other machines and they work fine. It
automatically creates a TODO task and it shows it in the Tasks View.

One thing I have different on my machine is I have Lomboz plug-in
installed. I am not sure if that could interfere.

Tzar,

Paul van Rossem wrote:
> On 07-12-2004 22:03, [EMAIL PROTECTED] wrote:
> > Hi all,
> >
> > It seems that I cannot see any of the TODO tasks in my Tasks
window. I
> > probably disabled it somehow some time ago and now when I make //
TODO
> > comment it does not show in the Tasks list. I made sure that in
> > Preferences->Java->Task Tags menu everything is setup correctly.
TODO
> > is a default tag.
> > Please help if you know how to make my TODO tasks show in the Tasks
> > window again.
> >
> > Thanks,
> > Tzar
> >
> Did you check the filter setting and the selected working set in the
> task view? Got me once...
> 
> Paul.





==============================================================================
TOPIC: Scrollable JPanel having GridLayout.
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1b22abc8446a6dd0
==============================================================================

== 1 of 1 ==
Date: Tues, Dec 7 2004 2:31 pm
From: "Shuaib"  

I have been trying to solve this problem for some time but haven't
found a solution yet.

Here is what I wanna do:  A scrollable JPanel having GridLayout to
which I add images of any size which are also in JPanel(s).  The image
size should be maintained and when I need to see the part not visible
in the screen I can use the scrollbar.

Here is the simplified form of what I am currently doing:

JPanel p = new JPanel();
JScrollPane sp = new JScrollPane(p);
sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
p.setLayout(new GridLayout(1,2));

JPanel p1 = new JPanel();
ImageIcon icon1 = new ImageIcon(url1);
JLabel image1 = new JLabel(icon1);
p1.add(image1, BorderLayout.CENTER);
p.add(p1);

JPanel p2 = new JPanel();
ImageIcon icon2 = new ImageIcon(url2);
JLabel image2 = new JLabel(icon2);
p2.add(image2, BorderLayout.CENTER);
p.add(p2);

For single image, it does appear in the panel but its top and bottom
are chopped off if it is in portrait orientation with no vertical
scrollbar.  For two images, it tries to fit both by chopping them off
from the sides too.  Both appear together in the viewport without
horizontal and vertical scrollbars.
Any help will be highly appreciated.

-SA




==============================================================================

You received this message because you are subscribed to the Google
Groups "comp.lang.java.programmer" group.

To post to this group, send email to [EMAIL PROTECTED] or
visit http://groups-beta.google.com/group/comp.lang.java.programmer

To unsubscribe from this group, send email to
[EMAIL PROTECTED]

To change the way you get mail from this group, visit:
http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe

To report abuse, send email explaining the problem to [EMAIL PROTECTED]

==============================================================================
Google Groups: http://groups-beta.google.com 

Reply via email to