32,204 Topics

Member Avatar for
Member Avatar for Lotus_2011

Hi : I am beginner in using java , I tried to add bignumber using java my program enter numbers and add them , stop when user enter 0 then show the summation. [CODE] import java.util.Scanner ; import java.math.BigDecimal; public class CODE { /** * @param args */ public static …

Member Avatar for Lotus_2011
0
136
Member Avatar for vanpersie

Hi guys Iwant to connect java to oracle ,but Iam not familiarneither jdbc nor in setting classpath however depending on my little information,I used the following code [CODE=java] import java.sql.*; public class OraThin { public static void main(String[] args) throws ClassNotFoundException, SQLException { Class.forName("oracle.jdbc.driver.OracleDriver"); // // or // DriverManager.registerDriver // …

Member Avatar for vanpersie
0
243
Member Avatar for nickguletskii

Toxic. When I set look and feel, and have a static JProgressBar, the look and feel resets to "Metal". Anybody, please explain this behaviour.:@ :icon_mad:

0
57
Member Avatar for smoore

Hey guys. In my Data Structures Class today somehow we ended up talking about the Monty Hall Problem for a little while. Anyways I got bored and wrote code to statistically check if it is correct (even thought I know it is). For those of you who don't know what …

Member Avatar for yilmazhuseyin
0
264
Member Avatar for jamojo

Hello Everyone, Can you give me some idea on how to connect to an https site which requires user name and password? I would like to download or upload a file to the https using Java. Is this possible? Any suggestions are greatly appreciated. Looking forward to your replies. Thanks …

Member Avatar for jamojo
0
111
Member Avatar for acplayer

In my application I have: Class B Class C extends B. Class C contains one method that overrides a method in B. Lets call the method myMethod and Class C has the constructors that simply call the super method in the parent class. In a JSP file that uses these …

Member Avatar for JamesCherrill
0
73
Member Avatar for djdanjo82

Hello All. First, I thank you all for viewing this thread. Second, I was wondering if anyone here knows of a way to pull data from Wireshark and to insert it into an Eclipse Application. My eclipse application is measuring data sent across a network. If I can pull packets …

Member Avatar for djdanjo82
0
250
Member Avatar for komal_asrani

Hello I am looking forward for converting a .jpg image into binary image. Please guide me.

Member Avatar for JamesCherrill
0
30
Member Avatar for anusha88

hii,im new to java graphics.can anyone tell me how to create a circular slider(like a Jslider just its circular in fashion).

Member Avatar for smilingruheena
0
95
Member Avatar for mybluehair

Hello. I'm developing a game in c++ and have found that you almost have to be Bill Gates to figure out how to connect to the internet using c++. So I've taken the idea that I should create the first section of my game in Java. This section would open …

Member Avatar for BestJewSinceJC
0
78
Member Avatar for Killer_Typo

[CODE]Could not connect to: : 50404 java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:520) at java.net.Socket.connect(Socket.java:470) at java.net.Socket.<init>(Socket.java:367) at java.net.Socket.<init>(Socket.java:180) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.connect(RemoteTestRunner.java:560) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:377) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) [/CODE] has anyone run into this issue and or find a fix? I've not been …

Member Avatar for dmanchester
0
1K
Member Avatar for jooa

Hi, I am trying to write some code which uses a JSlider to specify the number of lables to be displayed on a frame. I know how to create the JSlider and display it, but I am not sure how to implement different numbers of lables. I hope someone can …

Member Avatar for VernonDozier
0
104
Member Avatar for weblover

hi all ...how are u? i have a question ...how can i output the items of a java Stack ...is there any predifine method?? and another question ...how can i use the class Queue without interface ? ...because i'm typing in my code (Queue q =new Queue();) but it's giving …

Member Avatar for weblover
0
201
Member Avatar for titosd

Hello, I have a question about sorting. How can I sort HashMap by element in the HashMap ? That's meaning, if I have in the Sys class map such as: [code=java]protected Map <Constructors,RaceTeam>raceTeam=new HashMap<Constructors,RaceTeam>();[/code] and in the RaceTeam class I have this variables: [code=java] protected Constructors name; protected int totalScore; …

Member Avatar for titosd
0
86
Member Avatar for alsoumhi

Hi all , I have been assigned to do a task which is to create a web based application, the task is actually a normal form application, I have to use that form and make it online as a web-based application and store the information in a database I know …

Member Avatar for alsoumhi
0
150
Member Avatar for kakakon

Hello, I have a Tree structure with custom TreeNode nodes. The structure of TreeNode is: private int level; private String label = null; private String data = null; private TreeNode parent = null; private Vector <TreeNode> children = null; I should find each unique path from root to all leaves …

Member Avatar for kakakon
0
159
Member Avatar for juser11

Am having problem calling a simple stored proc to insert data from a java program. The insert statement works fine when called directly with prepare statement. But when I use call it through a strored proc I get an error. jar file is ojdbc5.jar. - oracle10g. Then i tried another …

Member Avatar for kvprajapati
0
794
Member Avatar for samrin

this is my code and it says i have problem in line 5 which i couldnt solve . can anyone please help me with this soon! [code=java]import java.text.*; public class SavingsAccount { private double static annualInterestRate; //declare static variable private double savingsBalance; //instance variable public SavingsAccount(double bal); //constructor { savingsBalance= …

Member Avatar for samrin
0
118
Member Avatar for KirkPatrick

I'm having a problem deciding how to handle a situation. I'll briefly explain whats going on before I ask the question(s). I have a viewObject (bean) and what it does is display information that is gathered. To keep it from getting too complicated I'll say I have 3 jLabels. One …

Member Avatar for ~s.o.s~
0
93
Member Avatar for exzibit23

is it possible to use try catch exception inside while loop? [code=java]while(username_ctr <= 5){ try{ user1 = str_div[username_ctr].indexOf("open_pm_tab",username_start); user2 = str_div[username_ctr].indexOf("')", user1); user3 = str_div[username_ctr].lastIndexOf(',', user2) + 3; str_username[username_ctr] = str_div[username_ctr].substring(user3, user2); //System.out.println(str_div[username_ctr].substring(user3, user2)); username_ctr++; }catch(Exception e){ slash1 = str_div[username_ctr].indexOf("</font", 0); slash2 = str_div[username_ctr].lastIndexOf('*', slash1); //System.out.println(slash1); //System.out.println(slash2); //System.out.println(str_div[username_ctr].substring(slash1, slash2)); //System.out.println(str_div[1].substring(slash2,slash1)); …

Member Avatar for ~s.o.s~
0
4K
Member Avatar for Web_Sailor

Hi, I am trying to do something like this:- [CODE]1 10 20 30 ##########|##########|########## rect 1 rect2 rect3 5 ########### 15 user rect - (transparent and temporary based on user mousedrag) [/CODE] Now If a user clicks suppose in the middle of rect1 and drags it to the middle of …

Member Avatar for Web_Sailor
0
162
Member Avatar for VernonDozier

I'm starting to experiment around with Java Web Start since applets have some limitations. I'm using Net Beans and it's working fine except that I get this pop-up when I run it: [quote] The application's digital signature cannot be verified. Do you want to run the application? [/quote] It would …

Member Avatar for VernonDozier
0
511
Member Avatar for KirkPatrick

I'm having a problem with my countdown timer and am figuring that I'm missing something obvious. All I'm trying to do here is get my jLabel to countdown from 60 to 0. [code] ActionListener refreshListener = new ActionListener() { int counterLimit = 60; public void actionPerformed(ActionEvent e) { javax.swing.Timer refreshTimer …

Member Avatar for KirkPatrick
0
115
Member Avatar for kimbokasteniv

So I am writing a voice activated recording program, and one of the things I would like it to do is plot the current and past volume level on a JPanel. Write now I am simply reading one byte from the audio buffer, converting it to an int, taking its …

Member Avatar for kimbokasteniv
0
210
Member Avatar for exzibit23
Member Avatar for masijade
0
44
Member Avatar for alsoumhi

Hi all , I have decided to use java applets and java servlets regarding creating a form.(because I don't know other langauages except java) guys the scenario is like this , visitors will enter to website, surfing it and then they will enter to feedback form , they have to …

Member Avatar for kvprajapati
0
103
Member Avatar for grisha83

Hello, I am getting out of bound error whenever i run the program and trying to add a Node (this would be in my switch). but the error that i am getting is just above my switch statement. Can anyone help me to figure out what it is that i …

Member Avatar for grisha83
0
211
Member Avatar for abhishaki

hello friends,I made an applet to calculate sales tax but i am having a problem in executing it.It is giving error on execution. and the error it is giving is, cant create:java.lang.reflect.InvocationTargetException following is the piece of code of applet. import java.awt.*; import java.awt.event.*; import java.text.*; import javax.swing.*; public class …

Member Avatar for abhishaki
0
166
Member Avatar for SnagglezMaw

I'm trying to compare lines in two different files. The basic idea is I want to take line 1 of file 1 and compare it to all the lines of file 2 and print the results into a third file, then do the next line of file 1 and repeat …

Member Avatar for Ezzaral
0
111
Member Avatar for elnuk

i want to write an application that will use a mobile phone to make voice broadcast in java.I know it is possible,but what are the dimensions,i will be very grateful if any1 can render an opinion to help me out

0
42

The End.