auto dialing

607 byte By Yoleven21a at 2007-11-26 12:21:01
I have an application that works on a PC using a voice modem that allows my PC to auto-dial a phnoe number and interact with a automated service, lets just say a banking service....any automated teller. I would like to migrate my application to my cell phone. Does anyone have a sample program ...

JScrollPane autosizing

577 byte By KyleHaddena at 2007-11-26 12:21:03
Hi,I have a rather large GUI. There is a jtabed pane. The right pane contains a scrollpane. This scroll pane contains and upper and lower jpanel. each jpanel contains a jtable and another jpanel. When either of the jtables contains data and I click outside of the right tabbedpane, for example ...

Another .equals question please!

402 byte By Progr@mera at 2007-11-26 12:21:04
Ok guys sorry, but i'm back.Is there anyway you can take single terms from a .equals statment for it to be true.For example if the user imputs "I have a Headache".but my code line says. if(symptom.equals("headache"));Is there anyway for that to execute through some method which grabs key ...

different versions of Java

492 byte By JoJotheFirsta at 2007-11-26 12:21:05
Hi everybody, I had installed Java version jre1.5.0_06. Later I bought this software which installes default Java version j2re1.4.2_01. Resulting in the software not running, unless I uninstall the newest version(1.5.0). What can I do to have this program running with the newer versions of ...

Installation of Oracle 10.2.0.2 on Solaris 10 x86_64 ?

977 byte By h.j.gritsa at 2007-11-26 12:21:06
We have a loaner V40Z with Solaris 10 (latest rev.) and the current recommended patches installed. All attempts to get Oracle 10.2.0.2 installed have failed with errors related to shared memory configuration. The dbca fails at step 10 or 11 with the message:"SGA size cannot be greater than ...

using jGrasp for a compiler

247 byte By student101a at 2007-11-26 12:21:07
Im using jGRASP to compile all the java stuff. I would like to use it as well to compile all my C++ stuff as well. I can not get it to read though. I get some errors that i cant seem to get fixed anyone know how to get JGrasp to compile C++

Simple complete demo of an applet writing to and reading from a server file

596 byte By dswetta at 2007-11-26 12:21:08
Hi everyone, I am looking for a simple, complete code demonstration of an applet that writes to and reads from a file located on the server (same server/directory the applet is on).My goal: to have an applet with 2 text boxes and 2 buttons. I enter in text in the text box and push the button ...

Full Screen Frame

308 byte By jvga at 2007-11-26 12:21:09
HiI need to make a full screen Frame window, without title bar so a user can't move the windowI try thisthis.setTitle(null);this.setMenuBar(null);and doesn't work for me, I'm using JDK 1.1.8, I know is old but is the JDK that I can use with my ...

Array Detection

364 byte By OHarlowea at 2007-11-26 12:21:10
I have an array of 5 images. I want to be able to click on each of the images, no matter where they are placed in an applet, but have it so that it only registers if you click within the image, not the surrounding area. How exactly would I go about programming it so that I could make a ...

Sun V240 Server Warning Light (Amber)

416 byte By darren_shawa at 2007-11-26 12:21:11
Hi.I have an amber 'Tools' warning light on a V240 Sun server (Sol 8) with an S1 3x Disk array connected.The S1 disk array is fine all disks ok.Can anyone tell me how I can check what the amber light means from a command prompt or any other method.I am not at the site at present and cannot ...

Is the SCJA certification required before you can be SCJP certified?

293 byte By conlana at 2007-11-26 12:21:12
Hello,my question is, do I have to be SCJA certified before taking the SCJP test?And if it is not required, do you suggest that I take SCJA anyway? It seems to me that if you're SCJP certified, then chances are you probably already know the Associate stuff.Thanks!

Documentation on N1 OSP plug-in

354 byte By peteziua at 2007-11-26 12:21:14
Hi, I am trying to figure out what to do next. I am trying to provision to bare metal via SPS OSP plugin via ALOM. I have installed SPS 5.2 MS and SPS 5.2 RA on different physical hosts. I have imported the OSP plug-in. I was able to setup a host record for the RA and prepare the host. Is there ...

File chooser to buffered image

2792 byte By jmarottaa at 2007-11-26 12:21:16
Hi all,Sorry about the total newbie question; I'm trying to figure out how to convert a jpg into a buffered image, while using the file chooser to select it. I'd like to do all this in a scrollpane. Does anyone have some sample code for this, at least so I can play around? I have ideas, but ...

get runtime class and cast object to it?

640 byte By uiga at 2007-11-26 12:21:17
Hi,public interface Msg {...}...Msg msg=msgLib.get(msgType);Msg msg2=msg.clone(); //problem! cannot find clone in x.y.Msg!...Shouldn't msg be resolved to the implementing class (MsgReply for example) and use the "clone()" method, that i have declared in that class -which overrides the one of ...

Changing default gateway on two node cluster

681 byte By ZazzyBoba at 2007-11-26 12:21:19
Hello,We are planning on changing the default gateway of a two node Sun Cluster (3.1) running Oracle.Has anyone performed a similar procedure before? If so, what is the easiest / most pain free way of doing this. Is it as simple as changing /etc/defaultrouter and rebooting each node in turn, or ...

Have no fear symptom man is here!

2477 byte By Progr@mera at 2007-11-26 12:21:20
Here is the solution that you guys have led me to come up with for that annoying sym;ptom question. Hope you find many errors in it an belittle me ^^;import java.util.*;import java.text.*;public class Medicine{public static void main(String[]args){String answer, ansCold;int symptom;Scanner ...

How is Applet limited by browser? What J5+ features can i use?

266 byte By TuringPesta at 2007-11-26 12:21:21
Im totally new to applets (sort of). Aside from the security restrictionshow do/can browsers work against an applet?Like, if i have Java 5 installed can I write an applet that uses all J5 features like all of javax.swing and generics etc?

req.getHeader("Referer") doesn't work with IE 6.0/7.0 using open_window

400 byte By ynotlim333a at 2007-11-26 12:21:22
Hello,I'm using req.getHeader("Referer") to give permissions to enter my website. When it opens a new window, req.getHeader("Referer") can only read the source when I'm using Firefox and Netscape. It won't work with IE. Is there a solution?Thanks,Tonyps. Is there a way i can disable ...

Show and hide columns.

234 byte By EikHorsa at 2007-11-26 12:21:23
I have a rather large JTable with a lot of columns that are updated once in a while.Is there an easy way to show and hide columns, so that I don't have to keep track on which a shown and hide when I use setValueAt()...?

JNI_EVERSION returned when specifying JNI_VERSION_1_6

243 byte By huffrg3a at 2007-11-26 12:21:24
Anytime I try to create a JVM from C++ code specifying JNI_VERSION_1_6 the return code from JNI_CreateJavaVM is JNI_EVERSION...indicating an invalid version.Is anyone else seeing this or can confirm this? Is this a known problem?

While Loops with Search Strings

4579 byte By newbie_dooby_dooa at 2007-11-26 12:21:25
I had a java lab in which I was to create a program that holds a list of names and telephone numbers, and allows the list to be searched. I have done this lab and turned it in. Now my professor gives a chance to earn extra credit on our class grade by fixing the "mistakes" that we make on our ...

MS-Access-like development environment?

322 byte By Still-pkirkaasa at 2007-11-26 12:21:26
Hi;I'm looking for a tool to develop form-based client apps, like MS Access; only using java/jdbc instead of VBA. Does anything like that exist? Particularly, what provides the best forms-type facilities among NetBeans, Eclipse, JDeveloper, IntelliJ?Any opinions ...

JDK6 locks use a LOT more memory then JDK5

5329 byte By abiesa at 2007-11-26 12:21:27
I'm happy user of java 5 concurrency utilities - especially read/write locks. We have a system with hundreds of thousands of objects (each protected by read/write lock) and hundreds of threads. I have tried to upgrade system to jdk6 today and to my surprise, most of the memory reported by jmap ...

install with two HD

193 byte By lucaxvua at 2007-11-26 12:21:28
I have two hard disk,i disconnect the HD1and in the IDE1 connect a cdrom (is a Netra x1), i did install Solaris 10, but i want to add the other HD with the same file system, how do this?

having problems with java on my pc

435 byte By leon79a at 2007-11-26 12:21:29
hi wondering if any one can help me, i manage a website and part of my duties include moderating a chatroom, the chat room is java, when i installed the new version of java on my pc i loose my connection... when i shut a page down it shuts down in sectiions pretty much crashes and the pc just ...

help please i am lost - illegal start of expression

3384 byte By gold_eyea at 2007-11-26 12:21:30
public class PhoneCompany{private ArrayList<Account> accounts;private ArrayList<TextMessage> textMessages;private int collectRevenues;/*** Constructor for objects of class PhoneCompany*/public PhoneCompany(){accounts = new ArrayList<Account>();textMessages = new ...

Importing

176 byte By imgnakikurbta at 2007-11-26 12:21:31
If I have a classA in eclipse and I want to use a different classB that is in another project folder, what is the proper code to import that project folder to my classA?

Help removing items from an ArrayList

947 byte By andyrobo60a at 2007-11-26 12:21:32
I have two arraylists and i want to remove any elements that are in list1 and list 2 from list2. I have this for codefor(int i = 0; i < list1.size(); i++){list2.remove(list1.get(i));}for(int i = 0; i < list2.size(); i++){if(list1.contains(list2.get(i))){ ...

Object to char

251 byte By _Robb_a at 2007-11-26 12:21:33
How do I append(?) the "a" to a char before setText?public void addText(Object a) {consumer1.setText(a);}

cannot throw exception from switch-"unreachable statement"

1125 byte By uiga at 2007-11-26 12:21:35
Hi,why is this an unreachable statement? public static Msg newMsg(int type, Object data) {Msg msg;switch (type){ case MsgTypes.MSG_CLUSTER_CREATED: msg=new MsgClusterCreated(); break; .... case MsgTypes.MSG_REPLY: msg=new MsgReply(); break; default: throw new ...

how can i increase my memory heap?

73 byte By nashstanley2a at 2007-11-26 12:21:36
im getting this error: java.lang.OutOfMemoryError: java heap space

return value

519 byte By gold_eyea at 2007-11-26 12:21:37
i need to return the value to 0 after it has collected any cluespublic int collectRevenues(){int total = 0; for (Account a: accounts) { total += a.collectRevenue();} return ...

Special character Support in IDM

411 byte By idmgurua at 2007-11-26 12:21:38
We have enabled the special character support in IDM as per the SUN documentation and we are able to populate the special charactes using the IDM admin console also. But when we run a flat file adapter to process a flat file having special character it fails.It simply displays the ? in place of ...

scanner doesnt seem to work if number of lines aren't even..why?

1846 byte By moonmastera at 2007-11-26 12:21:39
im making a simple program (fooling around with java) and i tried uploading a file that have an uneven amount of lines. There's a error at the end of the program.. I post code + my txt file..any comments would be appreciated..import javax.swing.*;import java.util.*;import java.io.*;public ...

Converting Storedge 3310 RAID unit to act as JBOD?

730 byte By sysbota at 2007-11-26 12:21:40
Hello, I have been struggling with this configuration, any advice is appreciated.I have 4 x Storedge 3310 RAID units each with it own controller. I have 1 x Linux host and 1 x HBA in the host, with ch0 and ch1. I want to be able access to all 4 Storedge 3310s. Normally if this were 2 x Storedge ...

Inserting an element entity reference

855 byte By smitophera at 2007-11-26 12:21:43
I have written a servlet that generates a JNLP file for Web Start.Web Start chokes when I have an element with a single blank character:<argument> </argument>but starts up fine if I use an entity reference:<argument>&#32; </argument>How do you insert an entity ...

y2k problem

1832 byte By fastmikea at 2007-11-26 12:21:46
hi. here is my program for y2k detector import java.util.Scanner;class yDetector{public static void main(String args[]) {Scanner myScanner = new Scanner (System.in);int age;int year;int total;System.out.println("Enter your age ");age = myScanner.nextInt();System.out.println("Enter the year ...

Trouble with public void fillArray

2990 byte By student101a at 2007-11-26 12:21:47
import javax.swing.JOptionPane;public class ArrayExceptionDemo{double num[] = new double[15];int howManyNums;String sHowMany;String title = "Array Exception Demo";public ArrayExceptionDemo(){fillArray();{public void fillArray()//MY ERRORS ARE HERE WITH IT PUBLIC, I Have it typed out just like ...

Help - page fragment component bug in Firefox

702 byte By ML-Wonga at 2007-11-26 12:21:48
I've created a navigation page fragment with the hyperlink and tree component.s In IE, the hyperlinks and tree components work flawlessly, however the same components don't work in Firefox 1.5 or 2.0.In Firefox, clicking the tree or hyperlink doesn't bring you to the target url.When debuggin ...

Small problem - int to binary...

371 byte By henryfirea at 2007-11-26 12:21:49
Hey all, I need to create a simple java applet which converts an int into it's binary representation.Here is the output i need:Enter an int: (user enters int)That number in binary is:Thats all I need. I know it has something to do with a "wrapper class", but thats all I know. :PCould anyone ...

Recreate Image from DCT coefficients

716 byte By axelinux@hotmail.coma at 2007-11-26 12:21:50
Does anyone know how to recreate the image from its dct coefficients (dctData)? rgbImage = JAI.create("fileload", filename);rgbWidth = rgbImage.getWidth();rgbHeight = rgbImage.getHeight();//dctParameterBlock pbDCT = (new ParameterBlock()).addSource(rgbImage);PlanarImage dct;dct = ...

Wrong screen resolution with xSun

559 byte By Azhar_Md_Yasina at 2007-11-26 12:21:51
I'm using a HP Pavilion dv1340AP notebook (widescreen). Simply cannot get the correct screen resolution (1280 x 960), keep getting some stretched version. Although once resolution was fine, straight after install but after doing a sys-unconfig, it gets all messed up. tried the different ...

Coding help

2075 byte By simmasterp1a at 2007-11-26 12:21:52
For some reason this code will not update the count value or print the value at all can someone please give me some advice.import java.util.Random;import java.io.*;public class InputRandom{public static void main (String[]args)throws IOException{//int y = ...

Debugging Assignment, Chapter 3, Bert,java

1956 byte By tito_elcarniceroa at 2007-11-26 12:21:57
Java Programming Third Edition Complete Concepts and TecniquesI have a problem in this calculation: payment=loanAmt/((1/interest)-(1/(interest*Math.round(1+ inputMonths))));/*Chapter 3Debugging AssignmentProgrammer:Date:Program Name:Bert,javaPurpose:*/import java.io.*;public class Bert{public ...

Possible to tell what lines a word appears on?

421 byte By concorde18a at 2007-11-26 12:21:58
Hello, want to know how i can tell what lines a specific word appears on with all the words in a matrix.EX"I went andatepie becausei am a hungryperson and love pie"ok, now i have every single word in a seperate cell in a String matrix. Heres what i want to do.I - 1,4went - 1and - 1,5ate - ...

3DES, Encryption in C (Unsigned), Decryption in Java

2415 byte By sapidutaa at 2007-11-26 12:21:59
Hi Guys,I face 3DES decryption problem in Java where as encryption was done in C by using OpenSSL. Java 3DES method input is in byte[]. As we known, Java didn抰 support for unsigned data type. That抯 why my decryption result is different with the original value.Below is my Java ...

What is the wildcard code..?

587 byte By pros599a at 2007-11-26 12:22:00
i am writing a program. I want the program to search for all files that end with one extension, and i want it to rename it to another extension...exampletest.java -> test.dat(not to encode it.)ok... i have the actual rename done, but how do i get it to do all files that end with the ...

ACPI question

361 byte By olaf77a at 2007-11-26 12:22:01
HiI was finally able to load the system when I disabled the ACPI in BIOS. However when it boots, it doesn't see the network card.Nexenta (livecd) was able to detect the network card and initialize the network without any changes to the BIOS.Is there a way to disable ACPI but without "missing" ...

substring problem...

181 byte By n_dilaha at 2007-11-26 12:22:02
i just need to etract number from input user enter, how do i go on doing that? i try String st = new st.length().substring(); but always give me exception error

Compaing objects in two arrays. Would Really appreciate your help experts

1548 byte By aaron1uka at 2007-11-26 12:22:04
i have a program that reads data from a text file, i have one string in the file that needs to be read as seperate chars e.g fota as they both stand for something. here is how i did this.if(line.equals("m")){name = reader.readLine();surname = reader.readLine();enjoytime = ...