How can I copy the content of a String array to another variable?

342 byte By mkreins at 2007-9-26 1:18:01
Hi all,is it possible to copy directly the content ofthe array rows[][] to another array? String rows[][] = {{"7268", "Cutter", "John", "Travel",""},{"8133", "W. A.", "Thornhump", "C.E.O",""},{"9923", "Berke", "Breathed", "Editor",""} };newArray = rows[][] ? ...

ERROR: TYPE EXPECTED

314 byte By sir_marky at 2007-9-26 1:18:05
when i try to compile i get the following error:Addition.java:38: Type expected.plusButton.addContainerListener(this); Addition.java:49: Type expected.calcButton.addActionListener(this); does anyone know what i should insert to compile properly ...

Is it possible to send SMS using Java?

594 byte By ventural at 2007-9-26 1:18:06
Hello!I am an Italian student who studies Computer Science at Pisa University, and I am developing some projects in Java using Java 2 Standard Edition (J2SE) and Java 2 Micro Edition (J2ME, for MIDP 1.0 compliant devices). I need to know if there are some Java API (for J2SE and J2ME) to send ...

JDK1.4 JSPinner and DateFormatSymbols

493 byte By dupontv at 2007-9-26 1:18:18
Hi,I have a problem with DateFormatSymbols().getWeekdays(); use in JSPinner and JCOmboBoxThe getWeekdays() method returns a STring[] containing the nameof the days (sunday, ...) in a localized way. I want to use these names inside a JSPinner or a JCombobox. The names are properly inserted, but ...

Date Formatting

277 byte By seralex at 2007-9-26 1:18:19
Hello, Friends.I would like to format a date to bring it to YYYYMMDD format. It is quite easy with getDay(), getMonth(), getYear(), but since they are depricated, I tried to use DateFormat, but didn't success.Any ideas how to do that?Thanks.

PLEASE HELP (or my boss will kick me) Drag and drop

371 byte By folkenf at 2007-9-26 1:18:21
My Drag and drop works perfectly in appletviewer, but there seems to be a problem when used in a browser (i used I5 with WIN2000).Does DnD in applet works on Win2000, Win98 ?Does DnD in applet works on IE5 ? Netscape 4.7 ? Netscape 6 ?Is there a DnD bug ?If it doesn't work, can someone give me ...

How resize columns in GridLayout ?

361 byte By belosludcev at 2007-9-26 1:18:22
The Question that is necessity to make similarityJTable in JDK 1.1.x I make a set from TextField and I placeInto GridLayout. I add ScrollPane,All works. A question how to make so thatIt was possible to reconstruct the size columns in GridLayout? Who make similar or can prompt with other ...

String

305 byte By pp00410 at 2007-9-26 1:18:24
Created a hashmap and loaded key,value pairs. One of my keys contains a value of "5" as a string. However when a get the key, I store it into a String temp = (String) map.get(key); Now I need to compare temp to numeric values ie(if temp < 1) do something....Any suggestions? ...

waitFor();

1245 byte By madhab99 at 2007-9-26 1:18:26
hello all,I am trying to fix the code below. For some reasonthe code hangs at "Starting waits...". I have no cluewhat is going on.I can only see the "Finish lines" after I comment thepreceding waitFor();. Obviosly if I remove these waitFor(), the code runs fine doesn't do the job it is ...

Right align column in JTable

91 byte By gil_e at 2007-9-26 1:18:29
I need to display text as right aligned for a column in a JTable. Suggestions

Searching easy way to check if a String contains pure numeric...

336 byte By kleindinst at 2007-9-26 1:18:30
Hi !Im searching for an easy way to check if a String contains - a pure numeric value or - a decimal value or - a text.I know the method to convert the Srting in the type char and to check every character, but is there an easy methode to check the String direct?Thank you Wolfgang ...

Oracle 9i

87 byte By mithrys at 2007-9-26 1:18:34
Can somebody tell me when exactly JDeveloper 9i is going to be available?

urgent ! writing a java card applet -APDU problem

8427 byte By louise_smith13 at 2007-9-26 1:18:37
hii'm fairly new to the java programming language. i'm trying to write an RSA java card applet to run on a java card simulator.I am not sure at all what code i need to write for the CLA byte in the command APDU and what code i need to write for the INS byte in the command APDU, and where ...

applet file i/o

616 byte By spoongirl at 2007-9-26 1:18:52
hi. i'm new to java (coupla weeks), and i want to write an applet that reads adn writes a server-side file. i can do this with an application no problem, but i think it doesn't work with my applet because of security issues. i have an idea that maybe what i need to do is get the URL of the ...

ADDING AN OBJECT INTO A JPANEL!

2690 byte By shahzad5 at 2007-9-26 1:18:56
i want to add a Jslider into a panel(year_panel) and then add that year_panel into the GridWindow.I have tried various ways but all in vain.Could somebody help me to put the Slider in the panel and the panel into the main Grid!thanks a lot. import java.awt.*;import java.awt.event.*;import ...

Session Objects....

199 byte By srp15 at 2007-9-26 1:18:59
Can a session object created by servlet A running on the server A be read by another servlet running on the sever B?Quick response is appriciated..Thank YouSuneetha

JPDA Configuration under Apache JServ / Oracle9iAS

177 byte By maiko_rocha at 2007-9-26 1:19:04
All,Can somebody please give me any clues on how to config JDPA to run under Apache JServ / Oracle9iAS?thanks in advance !!Cheers,Maiko

JToolTip with components in it

289 byte By riginal at 2007-9-26 1:19:05
I want a tooltip to have a list (or basically a panel) inside it. How can I do this? I've read about including icons inside tooltips by doing icon.paintIcon but I havent had any luck doing this with JList.So how can I include a panel in a tooltip?thanks

Mathematical calculations using BigDecimal

541 byte By leme1 at 2007-9-26 1:19:09
Hi all,I am doing some mathematical calculations using float variables. They are not working properly because of rounding issues....So, before I change the whole program to do the same calculations using BigDecimal, just wanted to check out whether there are any catches in that also. Like, is ...

Applet

268 byte By gneti at 2007-9-26 1:19:11
Hi ,I am trying to display a string on applet, on change the string value it is not reflected in applet after saving compiling & running the appletAny fixes or suggestions please this a urgent. I will place the code if neededNeti

How to copy a part of an Image into another Image?

315 byte By Artem at 2007-9-26 1:19:12
Hi! I am lost a bit here. I have a strip of sprites (a gif file). I load it into an Image and i need to create anArray of Images based on that strip. I just cannotfind a way to copy a pary of that strip into anotherImage object.Help!Thanks,Artem ...

Casting Arrays

426 byte By Rewes at 2007-9-26 1:19:20
Could someone explain why you cannot cast an array of Objects into an array of Strings?Specifically, I have been trying to use this bit of code:String stringArray[];ArrayList arrayList = getArrayList();stringArray = (String[])arrayList.toArray();I found that you must use the ...

how to loop correctly?

806 byte By tuci at 2007-9-26 1:19:22
hi!could you please help me how to correct the following coding in order to work?import java.io.*;public class ABCInput{public static void main (String[] args)throws Exception {char input= ' ';System.out.println("Please enter A,B,C or Q.");input = ...

About Jtoexe

204 byte By lopa_d at 2007-9-26 1:19:23
Hello,i want to create ".exe file" of my ".java file".Can i do this?and if yes then can u tell me from which site i can download that software ?And also tell me how to use it.

clarification for synchronized

1606 byte By bsampieri at 2007-9-26 1:19:27
If I have a class that is writing to a file on a regular basis, and there is a method to change the file (and output stream) then do I need to use synchronize(myFile) in both places? Or is it sufficient to use synchronize(myFile) only in the method that is changing the file? There is such a ...

HOW TO ADD MORE THAN ONE SLIDER IN A GRID?

3065 byte By shahzad5 at 2007-9-26 1:19:29
hey!i wanna include three Jslider in the grid .After i created the second one(the one i included in year_panel)and tried to run the programe,i got a run time error.i tried but could not fix it.could sombody please help me.import java.awt.*;import java.awt.event.*;import javax.swing.*;import ...

String & StringBuffer again......

979 byte By BCBCBC at 2007-9-26 1:19:30
hi all,after coding for 1 year with java (before c++ for years) i used the stringbuffer class for the first time a few days ago.i implemented a search which has to do lot's (!) of string operations.the search was very slow, so i tried stringbuffer.i replaced and changed all the string stuff ...

how can I build a composite component?

266 byte By huayuli at 2007-9-26 1:19:32
I heard that Java Swing can support composite component, meaning combining several component'sfunctionalities onto one component. Does anyone knowwhat class and methods I should choose to build sucha component? Thanks for helping!

connecting an applet to a MS access database

165 byte By kingfahad786 at 2007-9-26 1:19:33
please can someone tell me how i can connect an applet to a MS access database. each time i try i get a security exception, is there a way around this.

How to take input form both text file and key board

441 byte By xwuc at 2007-9-26 1:19:34
Hi:I have some problem as concering about taking input form both text file and key board at the same time . In my main class, some of input is from text file while some is from key board. How do I let the readLine() method to distinguish my command? Also the same thing for output.In the same ...

Remembering the last directory visited

199 byte By tnr009 at 2007-9-26 1:19:36
How can I change my program so that in the open dialog it remembers the last directory I visited. In addition, how can I also list recent file opened in the file menu.TIA.

Ascii characters

261 byte By jusbe at 2007-9-26 1:19:43
Guys,I dont know how translate Ascii characters, for example :A have the character 'f', how can I get the Ascii code from f character ?and I have the number 65, how can I get the letter correspondent.Thansk/jcf

How to add a LayoutManager to JLayeredPane

983 byte By collinl at 2007-9-26 1:19:44
All,I'm facing a little dilemna using the JLayeredPane. I would like to add a dynamic number of JTextPane instances onto a JLayeredPane. What I'm currently doing is creating a JPanel to use BoxLayout. Then for the n number of JTextPane instances I have, I add them to the JPanel. I then add ...

JSlider question, please help!

580 byte By csmathie at 2007-9-26 1:19:45
Hi,I have a problem with JSlider. What I need a slider to have is both upper and lower tick marks. Lower is default,but my method for having upper ticks is to make another JSlider, with a custom SliderUI class for it's UI. By doingso, all I have is paintTicks defined, and set the slider to ...

GridBagLayout changes my cell size

728 byte By 671974 at 2007-9-26 1:19:46
I need help!I managed to create a calendar for the month of Janurary using GridBagLayout. I've got all my cells for the days set to be equal (The Weight X is 14 for the first seven cells going across). But the content on the labels ends up making my cells bigger and shorter.If I use Sun Mon ...

whitespace characters

284 byte By PPT at 2007-9-26 1:19:47
Can scanf be used in this example to skip leading white spaces in the text array:Eg:-char[] = text;int p = 0;text could contain :- [space][space]Hello[space]World[space]Good MorningWhat other ways can I use to skip white spaces?

help w/ this program

495 byte By java198 at 2007-9-26 1:19:49
can someone tell me whats wrong with this program? It's in my programming book and i can't get it to work.class Sundae { private Sundae() {} static Sundae makeASundae() { return new Sundae(); }}public class IceCream { public static void main(String[] args) { Sundae x = new ...

help w/ program

495 byte By java198 at 2007-9-26 1:19:50
can someone tell me whats wrong with this program? It's in my programming book and i can't get it to work.class Sundae { private Sundae() {} static Sundae makeASundae() { return new Sundae(); }}public class IceCream { public static void main(String[] args) { Sundae x = new ...

!!! Radio Button in GUI

500 byte By livboy at 2007-9-26 1:19:52
hi, eveyone,i got problems dealing with my JRadioButtonIn my case, i would like to show the JTable which contain the data in database.and i got three radio buttons1)list the table by Agreement no2)by customer code3)by ,,,,,in my actionPerformedhow i know which button the user is selected.i know ...

URGENT-i have a client/server application-how can i use it in my webpage...

317 byte By sam021a at 2007-9-26 1:19:56
i have a client server application in which the client applet communicates with the server.now the problem is i don't know how and where to run the server application,supposing the applet is embedded in my webpage and is run from there.please respond asap.thanks sam. ...

Serial Ports, is it supported on MAC & Linux ?

463 byte By geotdw at 2007-9-26 1:19:57
Hey all...After a long process of doing an application that runs a serial port connection to a server and upload a file to it, i could'nt find the comm package that i could download for both MAC and Linux.... There is one for Windows and Solaris though... So i was wondering, is serial ports ...

Read file in client machine.

213 byte By goozooloo at 2007-9-26 1:19:59
Hi,I recently start to learning java. but i`m a little hasty and like to know can i read a file in client machine from my server with use of applet.if yes, How.thanx a lot

my applets can never be found...

445 byte By 671974 at 2007-9-26 1:20:00
I type in the following in my html document:<applet code="Watch.class" height="50" width="345">This program requires a Java-enabled browser.</applet>And then I make sure Watch.html and Watch.class are in the same directory...Whenever I load my html page in Internet Explorer it ...

Could'nt Manage Focus between Components

10216 byte By Pure12 at 2007-9-26 1:20:06
Hi I have a swing application with different components including a JTable. The focus management for the application is not happening properly. It oscillates within the buttons in the lower panel and never goes back to the. Here are the 4 files involved 1. Test1.java import java.util.* ;import ...

downloading file from the server on PC

1492 byte By priviet at 2007-9-26 1:20:08
Hi,I am trying to download file from the server using IE but instead of downloading file it is downloading html of thatservlet. I don't want to open it in browser i want either it should ask open file or save file or just display save dialog box.By changing the settings in acrobat reader this ...

Java Support for Plugin Framework

338 byte By powellmw at 2007-9-26 1:20:09
Does Java easily support development of a plugin framework? IOW, we'd like to develop a framework through which run time decisions can be made differently using different implementations, but also through which "rule engines" might be released after the product has been deployed to replace an ...

User input in JTable

69 byte By gil_e at 2007-9-26 1:20:10
How do you disable user input for a column in a JTable?

How can I emulate an HTML form in Java?

1640 byte By ventural at 2007-9-26 1:20:11
Hello!I am an Italian student who studies Computer Science at Pisa University.I am developing a project in java and I would like to create a program that let me to emulate an HTML form.For example, let's suppose to have the following form:<FORM NAME="Example" METHOD="POST" ...

JDBC Driver issues up the wazoo.

3761 byte By HeafDog at 2007-9-26 1:20:12
I'm trying to use the updateObject() and updateRow() methods of JDBC 2.0, using Sun's JDBC-ODBC driver in BEA WebLogic (the WebLogic Microsoft SQL Server driver I have doesn't support JDBC 2.0 commands). Simple question: can someone PLEASE give me a DETAILED list of what I need in my ...

How can I emulate an HTML form in Java?

1640 byte By ventural at 2007-9-26 1:20:13
Hello!I am an Italian student who studies Computer Science at Pisa University.I am developing a project in java and I would like to create a program that let me to emulate an HTML form.For example, let's suppose to have the following form:<FORM NAME="Example" METHOD="POST" ...