| Defaults for JFileChooser? |
|
 |
Index ‹ java-programmer
|
- Previous
- 1
- South Florida Software Symposium - May 18 - 20, 2007Greetings!
We are happy to announce the South Florida Software Symposium.
The NFJS Symposium Tour is coming to South Florida on May 18 - 20,
2007. Get ready to have three intensive days of learning and
networking.
The No Fluff Just Stuff Software Symposium Series is designed to cover
the latest in trends, best practices, and newest developments in
Enterprise Java, Java/Groovy, ESB/SOA, Ajax, Web Services, Agility,
and Architecture.
Soon we will have available all the conference details at
http://www.nofluffjuststuff.com and http://www.miamijug.org.
This is the first of the many events we are coordinating to have in
South Florida. With your support and our commitment we will see many
more. We are working hard to promote South Florida within the Global
Software Community.
South Florida Software Symposium is brought to you by NFJS and Miami
Java Users Group.
We are looking forward to see you there,
Maudrit Martinez
Miami Java Users Group Leader
email***@***.com
http://www.miamijug.org
"A designer knows he has achieved perfection not when there is nothing
left to add, but when there is nothing left to take away" ~Antoine de
Saint-Exupery
- 2
- war or earhi there, I'm a newbie here. what is the difference between enterprise
archive & web archive? anyone has a url that explains this? also, is there a
complete design specification of the J2EE Petstore application. url anyone?
many thanks. lai...
- 4
- Problem With ReportViewer ObjectHello,
i have a problem eith the class mencioned in above ( ReportViewer.class) that
i've downloaded and puted in my aplication GUI.
Aparently everything is ok, just in the moment that i try to use that object.
the code that i used is:
void jButton1_mouseClicked(MouseEvent e) {
try{
ReportViewer b = new ReportViewer();
b.setReportName("http://localhost:8080/?report=file:c:
/SAMPLE_REPORTS/BalanceSheet.rpt");
b.setShowGroupTree(false);
b.init();
}catch(Exception e1){
}
.....
the error that appears is:
java.lang.IncompatibleClassChangeError: Implementing class
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
can anybody help me ???
- 4
- About Polling Chat Server (Personal Chatting)Hello,
I am in the process of writing a Chat Server for Intranet.
I completed the message-to-all part of it.
The Server (Polling Chat Server) part of it act in a non-blocking mode,
it creates new connections with the clients, read message from a client
and sends it to all the clients.
The Client part just accepts the message typed on a text field, send it
to the server and appends the message received from the server to a
text field.
This is the global chatting part.
Now I need help about the personal-chatting of the clients.
Each client must be able to chat with any other client which is
connected to the server in the global chatting.
How to carry out this?
Presently both Client and Server are Single-threaded ones.
Can anybody gives me logical flow of the program to carry out the
personal-chatting stuff? I am able to program using non-blocking
ClientSockets.
How many threads will be there on the Server and on client and what
each thread will do?
Please help me ASAP.
-Sameer Shinde
- 10
- Jre 1.6 and CDEJRE 1.6 Swing app freezes my Solaris 8 CDE desktop with dtwm running
at 100% of the CPU. It works fine with JRE 1.5. Has anyone had such
problem? Any solutions? Thanks
- 10
- Jeff and his Trackball
Just seen:
New image of Jeff Relf and His Trackball.
http://www.ottawaathleticclub.com/images/trackballs.jpg
Yes, Jeff, the buttons are falling apart...the contacts worn, the MicroCrud
drivers bit-cracking with every click -- XP has made the TrackBall unusable
-- that's right -- a M$ product, destroying any backwards compatibility to
the insipid FOOLS who purchased a trackball.
BUT you go, you go on, clinging to your track ball -- muttering 'my driver,
my driver' and weeping, near a poorly sealed medical waste canister near
Harborview...
--
W '04 <:> Open
- 10
- Java problemSee my 7-26-07 message. I get an Error message everytime I try to download
Java software: Error 1722. What does that mean?
Ilhan
- 10
- Wrap text in the list boxHi All
There are four list boxes in four different columns of a row In the
table in a jsp page. this table has a fixed width. But There are few
long items in the fourth list box, that results in the expansion of the
list box, hence table width too. Now due to the specified reason data
is going outside the specified area, hence affecting the view. I'm
using struts framework.
So is there any way to "wrap the text in listbox" OR "set small font
size for the list items".
Thanks
Rahul
- 10
- Newbie-help! API 0 Results = errorpage.jsp, i need the 0 returnedHi,
Im using the Google API in a JSP project which fires off queries to
google. In the returned object im interested in the
getEstimatedTotalResultsCount() statistic, I just need to know how many
results have been returned, including if 0 have been returned.
However, when I enter a term which should produce 0 results the JSP
throws an exception and directs me to the errorpage.jsp instead of
reurning a GoogleSearchResult object with 0
getEstimatedTotalResultsCount().
Other people on this forum dont seem to have this problem.
Would very much appreciate the help.
nickname-at-oppositeOfColdMail.com
- 10
- double "^" operations ???...Greetings all,
I am having a hard time performing exponential operations on doubles.
My code looks like
public double getExpon(double a, double b) {
double ans = a ^ b;
return(ans);
}
and I am getting the compiler error:
operator ^ cannot be applied to double,double
double ans = a^b;
Does anyone know why? I am totally bewildered.
- 10
- get and set Attribute for EJB Context (Storing objects)Are there any methods like getAttribute and setAttribute off the EJB
Context object like there is for Servlet context?
Currently I did not see any in the API. How then are we supposed to
store objects that we want to exist for the life of the app server and
to be accesible by our beans?
Thanks for any suggestions.
- 10
- Published Web Architecture Reference Code for N-Tier Systems?Is there any published system that includes sample source code, that
illustrates a good presentation / business / data layer partitioning of a
web based n-tier application?
The papers and books I have seen all deal with generalizations that are
mostly obvious and aren't very useful in committing something to code.
Everyone agrees that a well structured application should have presentation
layer, business layer, and data layer. The devil is always in details,
and no one publishes details. I want to see code for a large well
structured system that actually holds together and is easier to expand by
virtue of how it implements a layered multi-tier design.
The sample code I have seen, such as Microsoft's multi-tier sample
applications, appear to be completely amateurish efforts by college students
or people with no real commercial code experience. They are mostly
implemented in absolutely random ways that simply trivialize the value of
good architectural layering. I guess they are mainly meant as ways to run
Microsoft APIs.
I'm particularly interested in seeing:
- How authentication is handled, what kinds of cookies are created, and what
kinds of information is stored in each cookie. If authentication protocols
like Kerberos are being used, how are those integrated? Having code to
show just this piece alone would be highly desirable.
- How is the interface between the presentation layer that creates XML and
the business layer that handles business transactions handled, particularly
when the business layer is run on a separate computer? Getting the right
level of granularity in this interface seems hard. If you have all of the
data validation methods in your business layer, your presentation code is
making too many calls into the business layer, and that hurts performance if
you move that business layer to another machine.
--
Will
- 11
- 11
- Java Fonts under Microsoft JVMHello,
I have an applet which I want to run under various VM's, including the
Microsoft VM that (used to) be part of Internet Explorer.
When I create a font for a component, as so:
setFont (new Font ("DIALOG", Font.PLAIN, 20));
the font show up just right -- it's 20 units high. Except when the applet
is running inside the Microsoft VM, which always shows the same, small,
sans-serif font.
Has anyone else experienced this, and found a workaround?
Thanks!
Gregory Hassett
- 15
- The Fence Between Heaven And HellJTK <email***@***.com> wrote in message news:<AUgUb.177317$email***@***.com>...
> anoncoward wrote:
>
> > JTK wrote:
> >
> >>>
> >>> Are you telling me that the greatest nation on earth,
> >>> the nation that installed SH in the first place,
> >>> could not think of a single other way of removing him
> >>> than declaring war and invading?
> >>>
> >>> Give me a break. How naive are you guys?
> >>>
> >> WHAT OTHER "WAYS" YOU PIECE OF FILTH?
> >
> > See, that's exactly what I mean - half assed.
>
> WHAT OTHER "WAYS" YOU PIECE OF FILTH?
>
> > You shouldn't even put your foot in the pool
>
> WHAT OTHER "WAYS" YOU PIECE OF FILTH?
>
> > if you don't know how to swim.
>
> WHAT OTHER "WAYS" YOU PIECE OF FILTH?
Oh dear, the prepubescent is having a hissy fit.
Like I said, if you don't know how to swim,
don't get in the pool.
|
| Author |
Message |
Laird Nelson

|
Posted: 2004-2-19 3:10:00 |
Top |
java-programmer, Defaults for JFileChooser?
Any idea how the look and feel mechanism loads the text items for
JFileChooser? I began digging in the source code for UIManager.java,
BasicFileChooserUI.java, and others, and rapidly got lost.
Ultimately a call is made to, e.g.,
UIManager.getString("FileChooser.helpButtonToolTipText", someLocale),
but I can't figure out how the UIDefaults that UIManager uses to locate
this string is actually initialized.
Thanks,
Laird
|
| |
|
| |
 |
Laird Nelson

|
Posted: 2004-2-19 3:19:00 |
Top |
java-programmer >> Defaults for JFileChooser?
Laird Nelson wrote:
> Any idea how the look and feel mechanism loads the text items for
> JFileChooser?
Partially answering my own question: BasicLookAndFeel.java at line 233
does a
table.addResourceBundle("com.sun.swing.internal.plaf.basic.resources.basic")
call, which of course ultimately results in that resource bundle being
loaded.
Now, my follow-on question. I'm extending JFileChooser and require some
internationalized strings. I could of course load my own resource
bundle and get the messages that way, but I was wondering if there's
some hook to simply get my extra messages installed into the UIDefaults
table in some sort of non-hackish way?
Laird
|
| |
|
| |
 |
ak

|
Posted: 2004-2-19 6:21:00 |
Top |
java-programmer >> Defaults for JFileChooser?
one hint - UIDefaults is just a Hashtable with added accessor methods.
____________
http://reader.imagero.com the best java image reader.
"Laird Nelson" <email***@***.com> schrieb im Newsbeitrag
news:email***@***.com...
> Laird Nelson wrote:
>
> > Any idea how the look and feel mechanism loads the text items for
> > JFileChooser?
>
> Partially answering my own question: BasicLookAndFeel.java at line 233
> does a
>
table.addResourceBundle("com.sun.swing.internal.plaf.basic.resources.basic")
> call, which of course ultimately results in that resource bundle being
> loaded.
>
> Now, my follow-on question. I'm extending JFileChooser and require some
> internationalized strings. I could of course load my own resource
> bundle and get the messages that way, but I was wondering if there's
> some hook to simply get my extra messages installed into the UIDefaults
> table in some sort of non-hackish way?
>
> Laird
|
| |
|
| |
 |
Laird Nelson

|
Posted: 2004-2-19 21:46:00 |
Top |
java-programmer >> Defaults for JFileChooser?
ak wrote:
> one hint - UIDefaults is just a Hashtable with added accessor methods.
Well, right, but I was hoping I could have it initialize itself in the
same way that it is initialized for JFileChooser. You'll notice that
nothing really seems to *call* those accessor methods, at least where
JFileChooser or its UI component are concerned.
It looks like there's a way to have the UIManager add a ResourceBundle
to a list of ResourceBundles it consults to build the UIDefaults object
(a Hashtable, as you correctly point out).
Laird
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- Running a servlet with TomcatHi,
When I use the following URL in Internet Explorer:
http://localhost/servlet/HelloWorldExample
I get an error message:
-----8<------------
HTTP Status 404 - /servlet/HelloWorldExample
--------------------------------------------------------------------------------
type Status report
message /servlet/HelloWorldExample
description The requested resource (/servlet/HelloWorldExample) is not
available.
--------------------------------------------------------------------------------
Apache Tomcat/5.5.17
-----8<------------
I have the HelloWorldExample.class file in
C:\Tomcat5.5\webapps\ROOT\WEB-INF\classes.
Can anyone help me please?
Best regards,
Matheas Manssen
- 2
- Java license explanationCan someone explain to me if Java can be used freely like other
softwares like C++.Perl, PHP or I have to pay for its license once I
used it in programming in a company or in a website or e-commerce.
Is Java really opensource or not?
And so when will be the time you have to pay for its license?
Thanks!!!
- 3
- How Can I put XSL tag inside HTML form tag?Hello Dudes,
Sorry I couldn't find a XML/XSL group
I can only post these groups close to my subject.
In JSP (Java Server Page) you can do something
like this
<%
String v = myBean.getValue();
%>
<form .... >
<input name="myTag" value="<%= v %>">
</form>
You can do the similar thing in PHP.
But when I try in XSL I got error.
I have an XML file
<myTag attribute1="value1" />
Now I want to transform it into HTML form tag used XSL template
But XSL doesn't like this
<input name="myTag" value='
<xsl:value-of select="@attribute1" />
'></input>
How can I solve this problem?
Thank Q very much in advance!
- 4
- how do I encode image as stringI am trying to pass an image that I am manipulating in a java applet to
a javascript fuction, to be used there as either the source for an img
tag, or to save and/or print. Another possibility is to pass the image
up to a php script for further processing on the server. I know that
you can use ImageIO to save the image to a ByteArrayOutputStream, and
then use the stream's toString to get a string, but passing that string
to javascript truncates the image after the first 4 characters, due to a
null character (hex 0). I have been able to encode the string to
base64, but I do not know if anything more is needed to be done for the
javascript function to use it as an image.
I know that you can embed images in HTML by storing a special string
representation of the image in a javascript variable, but I do not know
what this format is. If I knew this format, I could encode the image in
Java, and then pass this string on. Any one know anything that could
help me?
Darcy Kahle
- 5
- Painting overHello,
I have written code to generate "Fractal Landscap", we can consider that
it is set of painted in different colors ovals.
Now I would like to paint ON IT. I mean paint star in one part of
"Fractal Landscape", than remove this star and paint it somewhere else.
I dont want to repaint() "Fractal Landscape" because it is very slow,
how to paint on it, without replacing content of Landscape.
thx
M
- 6
- In Swing, using the RTFEditorKit, how to copy/cut Formatting *and* text to the Clipboard?Hi Folks:
Any idea on the best approach to support copy/cut of all style/formatting as
well as plain text for a JTextPane? I googled quite a bit and located a
word processing program that supports JTextPane but they specifically
mention it only places "plain text" to the Clipboard and ignores the
formatting information when transfering.
I was thinking about implementing the Transferable interface and using the
Clipboard.setContents(..) method but I'm not sure yet by which procedure I
implement the getTransferData() as it wants to return an Object. I could
use a byte[] stream and return a ByteArrayOutputStream who's contents would
be filled with the Document's data (ie, plain text *and* the control/style
information). I just don't know if that would work yet but I plan to try
that.
Seems like there's very little (if anything) mentioned in the sun
developer's forum on how to do this as well as in google...
First of all, is Java's support for RTF still somewhat "primative"??? I
have a full blown word processor going which looks like Word and supports
font changes, size changes, find/replace operations, etc... It's just that
the cut/copy only transfers the plain text (despite my attempts to call
setContentType("text/rtf")) to the clipboard and not the style information.
thanks for any insight, Theron
- 7
- Download file problem in netscapeConsider this example..
I have a pdf file which is embedded in the browser and I have a
download link which is used to download that pdf file. When I click on
the download link, it is not functioning since it is the same url as
the embedded pdf and because the adobe reader is already there in the
browser it will automatically opens or the embedded pdf will goes off.
To prevent this scenario, we can use a mechanism. First create a
hidded iFrame in the same window using the following code..
<iframe style="DISPLAY: none" name="iframe1" src="">
Now make a small change to your download link so that the url target
is pointing to the hidden frame as shown below..
<a href="..." target="iframe1">Download</a>
This will solve the problem. However this method will not work with
Internet Explorer. For IE we can use another method and that method
can be choosen automatically by the browser.
More java tips @ http://sourcecentral.blogspot.com
- 8
- JSplitPane/JScrollPane Problem?Hey,
I'm writing an interface that has a verticle split pane, the top
and bottom of which both contain JScrollPanes with JEditor panes inside
each scrollpane. It sits within a JTabbedPane which is in a
JInternalFrame on a JDesktopPane.
JDesktopPane --> JTabbedPane --> Tab --> JSplitPane --> 2 ScrollPanes
--> 2 JEditorPanes.
The first EditorPane is a source area and the second is an error
output area. It's been working fine for me, which makes my current
dilema even worse.
I need to do the same format of error for an output tab so that
the output area is on top and the error output is on bottom. I took
the code from the previous working implementation and ported it and for
some reason it didn't work. The top component JScrollPane-->
JEditorPane does not show, but the bottom one does. Also, if I just
add the JScrollPane instead of the JSplitPane to the tab, it still
doesn't show, leading me to believe that it is a problem with the
implementation of the JScrollPane. Here are the code snippets of the
working and non-working portions of my code.
-----Working-----
source = new JEditorPane();
sourceError = new JEditorPane();
sourceError.setEditable(false);
JScrollPane scrollPane = new JScrollPane(source,
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
scrollPane.setBorder(BorderFactory.createEmptyBorder());
JScrollPane errorScrollPane = new
JScrollPane(sourceError);
errorScrollPane.setBorder(BorderFactory.createEmptyBorder());
sourceSplit = new JSplitPane(JSplitPane.VERTICAL_SPLIT,
scrollPane,
errorScrollPane);
sourceSplit.setBorder(BorderFactory.createEmptyBorder());
-----Not Working-----
expressionOut = new JEditorPane();
outputError = new JEditorPane();
expressionOut.setEditable(false);
outputError.setEditable(false);
JScrollPane outputScroller = new
JScrollPane(expressionOut,
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
outputScroller.setBorder(BorderFactory.createEmptyBorder());
JScrollPane outErrorScroller = new
JScrollPane(outputError);
outErrorScroller.setBorder(BorderFactory.createEmptyBorder());
sourceSplit = new JSplitPane(JSplitPane.VERTICAL_SPLIT,
outputScroller, outErrorScroller);
outputSplit.setBorder(BorderFactory.createEmptyBorder());
-----How They Are Added-----
tabFrame.addTab("Source", sourceSplit);
tabFrame.addTab("Output", outputSplit);
---------------
Any Ideas on why it isn't showing expressionOut?
- 9
- CVS checkout doesn't work in Eclipse v3.0.1Hi,
Since the CVS functionality of NetBeans doesn't appear to work for
me, I'm trying Eclipse. However, the CVS functionality of Eclipse
doesn't appear to work either. When I try to do a CVS checkout in
Eclipse, a "project" does get created in my workspace, but the
contents of the CVS modules aren't actually in the project. Now, the
contents of the module are only directories to this point, because I
was looking to work on the module with Eclipse. Should this be a
problem? Should I add a least one file to the project before Eclipse
will properly checkout the module with all its subdirectories?
Thanks,
Jason
- 10
- garbled JFrame
Ive got a a JFrame class displaying many JLabels with images inside.
It displays fine and I can drag it around the desktop ok.
But when I drag another window over the JFrame my JFrame gets garbled.(get
multiple images of the labels)
Even when i minimize it and maximize it is still garbled.
why would that be?
TIA
patrick
- 11
- print a db field with html tagJ've developpe a java web application (jsp,tomcat,java) and j've used a
replacement for field "textarea" and it work fine but store in a db (oracle)
field information with html tag ... there is a program (freeware or
shareware) can j use to print this field without loss this information?
crystal report is OK but it's too expensive!!!
thank in advance
Marco
sorry for my poor english
- 12
- java.sql.SQLException: ORA-00020: maximum number of processes (100) exceededHello Friends,
I am getting the following error.
java.sql.SQLException: ORA-00020: maximum number of processes (100)
exceeded
I am closing all my resultsets and all my connections in the try
block.
should i close ResultSets and Connections in the catch block aswell?.
or the problem is due to the connection pool settings in weblogic or
on the oracle side instead of in my application.
Thanks in Advance
s
- 13
- Critical Problem with Tomcat 3.3.1 and SSLHello,
I am having a serious problem trying to set up SSL on Tomcat 3.3.1 on
Windows 2000. I am following the jakarta guidelines exactly as they
propose, but I am having absolutely no luck. What am I doing wrong?
Here is the procedure I follow:
First, I run the following command -
keytool -genkey -keyalg rsa -alias name -keystore name
- I then answer the questions. I tried setting the common name as
my name, and a second time as the the URL used to access the site in
question, ie: sitename.com
Then, I issue the following command -
keytool -certreq -keystore name -alias name -file name.csr
Next, I send the name.csr file to the CA, and recieve 3 certificates.
The 3 certificates I receive are RootCert.cer, IntCert.cer and
NewCert.cer. So, I then issue the following commands in this order:
keytool -import -trustcacerts -file RootCert.cer -alias rootcert
-keystore name
keytool -import -trustcacerts -file IntCert.cer -alias intcert
-keystore name
keytool -import -trustcacerts -file NewCert.cer -alias newcert
-keystore name
After each command I receive confirmation that the certification was
properly inserted. I then copy the 'name' file to TOMCAT_HOME/conf
and edit the server.xml file. I add the following lines to the
server.xml file:
<Http10Connector
port="8443"
secure="true"
keystore="c:\tomcat\conf\name"
keypass="password"
clientauth="false"/>
Now, I restart tomcat and assume that everything should be in order.
When starting tomcat via the batch file, I see that an Http10Connector
is correctly sitting on port 8443. So, I try accessing the site
normally, and everything works fine. However, if I attempt an HTTPS
request to the site, I receive a page cannot be displayed error. This
is strange, because I figured that at this point it should work.
Well, I then attempted to access it manually by addressing
localhost:8443 .... this is where I noticed a problem. Once the
request is sent to Tomcat, Tomcat throws the following exception:
PoolTcpEndpoint: Handshake failed
javax.net.ssl.SSLException: Unrecognized SSL handshake.
at com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
at java.io.OutputStream.write(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)
at org.apache.tomcat.util.net.JSSESocketFactory.handshake(JSSESocketFactory.java:270)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:479)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Unknown Source)
ThreadPool: Caught exception executing
org.apache.tomcat.util.net.TcpWorkerThread@3a8602, terminating thread
java.lang.NullPointerException
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:498)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Unknown Source)
What is going on? Luckily, I have access to a CA, so this process
isn't costing me anything, however I have attempted this multiple
times with various certificates and various settings on the
certificate and I always get this same exception. What's more, I
tried creating a self signed certificate and I still get this
exception. Am I doing something wrong? I have scoured the net
countless times and it seems like all the instructions say the same
thing. When I search for this error, none of the recomendations fit
my situation. If no one knows how to fix this, could someone please
recomend where I can go so that I can find the answer to this problem?
Please help me out, this is driving me nuts. Thanks in advance,
Dan
- 14
- Download the JAVA , .NET and SQL Server interview question with answersDownload the JAVA , .NET and SQL Server interview sheet and rate
yourself. This will help you judge yourself are you really worth of
attending interviews. If you own a company best way to judge if the
candidate is worth of it.
http://www.questpond.com/InterviewRatingSheet.zip
2000 Interview questions of .NET , JAVA and SQL Server Interview
questions (worth downloading it)
http://www.questpond.com/InterviewQuestions.zip
Core Java and OOP's Interview questions
http://www.questpond.com/OOPsAndCoreJava.zip
Servlets / JSP Interview questions
http://www.questpond.com/ServletsJSP.zip
Architecture Interview Question
http://www.questpond.com/ArchitectureInterviewQuestions.zip
Project Management Interview questions must to read for all aspiring
project managers
http://www.questpond.com/ProjectManagementInterviewQuestions.zip
Full Address book application in C# with technical specification ,
estimation and test cases
http://www.questpond.com/AddressbookProject.zip
Web services Interview questions
http://www.questpond.com/WebServicesAndRemoting.zip
SQL Server 2005 Database optimization Interview questions
http://www.questpond.com/DatabaseOptimization.zip
SQL Server 2005 DTS Interview questions
http://www.questpond.com/DTSInterviewQuestions.zip
SQL Server datawarehoue and Data mining Interview questions
http://www.questpond.com/DatawareHousingandDataMining.zip
SQLCLR Interview questions
http://www.questpond.com/SQLCLRInterviewquestion.zip
SQL Server XML Interview questions
http://www.questpond.com/SQLServerXML.zip
Basic .NET Framework interview questions
http://www.questpond.com/FrameWorkSampleInterviewQuestions.zip
.NET Interop and COM Interview questions
http://www.questpond.com/InteropdotnetInterviewQuestions.zip
ASP.NET Caching Interview questions
http://www.questpond.com/CachingInterviewQestions.zip
Do not know how estimations are done here's a complete book on it
http://www.questpond.com/HowtoPrepareSoftwareQuotations.zip
- 15
- help with multidimensional arraysHi
I am a newbie in the world of Java programming. I have recently started
learning the language. Apart from other hickups one which has been on
my nerves is the concept of multidimensional arrays. As far as my
understanding goes these are array of arrays.
1. WHAT DOES THIS MEAN?
2. ARE ARRAYS RESTRICTED TO THREE DIMENSIONS ONLY OR THERE IS ANY OTHER
LIMIT AND HOW DOES THREE DIMENSIONAL OR HIGHER DIM ARRAYS WORK?
Does two dim arrays represent a pigeon hole type thing in which you
find a particular hole by giving row and column address e,g. box
located at row 5 and column 2.
3. IF THIS CONCEPT OF TWO DIMENSIONAL ARRAYS IS CORRECT THEN HOW DOES
THREE DIMENSIONAL OR HIGHER DIM ARRAYS WORK.
Presently I am going through a book written by Herber Schildt known as
Java 2 complete reference, Following is a program which demonstrates
the two dim arrays. I am unable to understand the make of the program
may be so many loops are troubling me. I am especially confused about
the functioning of the question mark steps please help me out there.
// Demonstration of concept of two dimensional arrays
class twoD {
public static void main (String args [ ]) {
int [ ][ ] twoD = new int [4][5];
int i,j,k = 0;
for (i=0; i<4; i++)
for (j=0; j<5; j++) {
twoD [i][j] = k; ?
k++; ?
}
for (i=0; i<4; i++) {
for (j=0; j<5; j++)
System.out.println (twoD[i][j] + " ");
System.out.println();
}
}
}
4. HOW AND WHY SO MANY LOOPS ARE FUNCTIONING TOGETHER?
(While replying please be patient and keep in mind that u r talking to
an absolute beginner in the world of Java programming)
|
|
|