36,051 Topics

Member Avatar for
Member Avatar for einjelle

Hi guys.. I am currenly coding a program which outputs the next state table for flip flop circuits. I have already finished the the generator for one type of flip flop, and I have 3 more to go.. So far, my arithmetic parser is working good but I suddenly remembered …

0
144
Member Avatar for einjelle

This is a program for generating a state table for flip flop circuits. My problem is that the program does not get anything from the Textfield which gets the value for KAEquation, but for JAEquation, it works just fine. [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; /** * @author Jenielle …

Member Avatar for einjelle
0
191
Member Avatar for sarath.koiloth

I know java doesnot support multiple inheritence.lets say my class A extends B.Now my class A is extending class B as well as Object Class .how this happens?Why class A gets compiled?

Member Avatar for JamesCherrill
0
133
Member Avatar for killerqb

I'm having a problem reading in a file to a scanner, it is supposed to take in a filename and then evaluate whether it is a URL or filename, but it having trouble reading just a local file. [CODE]public boolean loadSongs(String filename) { Scanner load1 = null; if (filename.contains("http")) { …

0
78
Member Avatar for oneat
Member Avatar for alsoumhi

hi all , I have finsihed my small project(online form system), I mean the development stage, now I am looking for how I deploy it in windows, exactly windows professional environment . what do I need in order to successfully access to online form project installed in windows professional. I …

0
59
Member Avatar for nihao

Hello everyone! I have a problem . How to maintenance the file's last modified time when upload it to FTP server? Please help me.Thank you~

Member Avatar for nihao
0
141
Member Avatar for shroomiin

Hello everyone. I am trying to write a program that reads a percent discount and then deducts that from a total price. i was just wondering how do i assign percentages to a variable? what i am doing is print "please enter percent discount"; percent discount++ then be able to …

Member Avatar for Ezzaral
0
43
Member Avatar for StarZ

I'm a newb in Java. how do I make the loop stop when the user enters 0. Is the codes right so far? I can't seem to run it, theres 1 error saying (no source location) The output is suppose to look like this: 1. show total in bank. 2. …

Member Avatar for Grn Xtrm
0
131
Member Avatar for skullsplitter

I am using NetBeans 6.7.1, java 6R16 and JavaFX 1.2. I have two projects, a JavaFX Script Application that calls Java classes and a Java Application. Within the Java project I can access javax.crypto but within a Java class in the JavaFX project, javax.crypto is not accessible. I checked the …

Member Avatar for skullsplitter
0
73
Member Avatar for KirkPatrick

Well I'm going through a lot of my code and wanting to clean it up a bit by creating functions to do the necessary tasks instead of having code that is multiple lines long. For example, I use the following code multiple times [code=java] ViewObject vo = new ViewObject(a, b, …

Member Avatar for Ezzaral
0
117
Member Avatar for Nishanthi

right now i m working in netbeansIDE with web application i m trying to connect to sql server 2005 database using the preceding coding Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbcdbc:data"); Statement st=con.createStatement(); st.executeUpdate("insert into audio values(11)"); con.close(); st.close(); now no data are inserted int the audio table what is the solution for this.Its …

Member Avatar for peter_budo
0
80
Member Avatar for KirkPatrick

I currently have strings that are all the same throughout my classes, I was just wondering how I could make the value of the strings pass from the main class to the rest of the classes. My reasons being that I am wanting to create a property file and have …

Member Avatar for KirkPatrick
0
283
Member Avatar for jrosh

Please tell me how to check the version of the JDK of the java installed .... I wanna knw the version of the JDK which is the version of my code. NOT the version of JRE!

Member Avatar for masijade
0
51
Member Avatar for feoperro

Hi, I'm starting to learn Ajax after playing around with JSP and Javascript, I felt the need for interaction without reloading the page. I've searched everywhere for a simple java servlet/ajax example that I can play around with but just found a lot of asp and complex java examples. Could …

Member Avatar for feoperro
0
175
Member Avatar for Shigekazu

Hello all, I'm trying to add a multiple JTextFields onto a single JPanel that has been already initialized thanks to the Design tool from the JFrame. I'm pretty sure that I already added them and I'm not getting any errors but they aren't showing up when I execute the program. …

Member Avatar for quuba
0
162
Member Avatar for nope3d

I have been troubled about my program how to put some funtionalities regarding on my buttons can anybody can help me? In button compute I have to put some computation regarding on (weight*perounce)+others; then for the button clear I have to clear all the inputed data in the textfield; then …

Member Avatar for majestic0110
0
90
Member Avatar for gururajb

I have one directory consisting of logfiles... I want to run 3 threads for m files where m is big. Here is my code in which i have created thread array and want to reuse the threads soon they finish the void run. But i am not able to use …

Member Avatar for JamesCherrill
0
92
Member Avatar for tuffyg

[CODE] package farecalc; import java.io.*; public class FareCalc { public static void main (String[] args) throws IOException { BufferedReader in; in = new BufferedReader(new InputStreamReader(System.in)); double firstMile = 2.80; double otherMile = 1.20; System.out.println("Please insert your total Mileage"); String mileageInput = in.readLine(); double mileage = Integer.parseInt(mileageInput); double price = firstMile …

Member Avatar for majestic0110
0
111
Member Avatar for Rads19

[CODE]import java.applet.*; import java.awt.*; import java.awt.event.*; public class MultipleChoice1 extends Applet implements ItemListener { String question1 = new String("1. 7+2 = ? a.6 b.8 c.9 d.10"); String question2 = new String("2. 9-5 = ? a.2 b.4 c.6 d.8"); String question3 = new String("3. 144/12 = ? a.12 b.10 c.14 d.16"); …

Member Avatar for Rads19
0
165
Member Avatar for Abdul Gaffar

How i can make JSP as SMS sender to all celular operator. If someone has some reference or any source for more information. :) Thanks before.

Member Avatar for kvprajapati
0
29
Member Avatar for chingkoysilog

im not a little bit familiar with c program.....so can u help me to change this program to c program......pls ASAP.. here are the code: import java.awt.*; import java.awt.event.*; import java.net.*; import java.io.*; import javax.swing.*; public class TicTacToeServer extends JFrame { private byte board[]; private boolean xMove; private JTextArea output; …

Member Avatar for yellowSnow
0
206
Member Avatar for opethcire316

Hello, I am new to this forum and need a little help. I am taking an intro to Java Course and we are creating a project that reads in a set of user inputted numbers and stops when the user inputs any letter. From a textbook example they have the …

Member Avatar for opethcire316
0
3K
Member Avatar for ajeet choudhary

sir.......i m confused for the function of jvm,jdk,jre. i know the full form of these but i m not sure about these working so please help me... if anyone know the full form of java then please tell me. one from i find is "just another vegue approach" but i …

Member Avatar for masijade
0
265
Member Avatar for ajeet choudhary

hello......sir and madam.......... i m new for this site so please help and tell me how i can share my problem with you...... sorry for waste your time . thanks

Member Avatar for mrnutty
0
95
Member Avatar for gibson.nathan

what i am supposed to do is calculate the chances of wining a bottle top prize if there is one in five winners. i have to do it a difficult way though. i made a random number that signifies a win when it lands on one. i then have to …

Member Avatar for VernonDozier
0
634
Member Avatar for Teethous

Can someone identify the error in this code for me? The input line gives an error. [CODE]import java.util.*; public class Time_Convert_Test { Scanner number = new Scanner ( System.in ); public static void main(String[] args) { int firstValue; System.out.print( "Please enter time in hours:" ); firstValue = number.nextInt(); } } …

Member Avatar for Teethous
0
112
Member Avatar for cbsoldier24

Hey guys, This is my first topic. I tried my very best to keep behind the scenes and not make a thread about this, but its been ticking me off for a while now.. The "while" loop im using.. i can only get the last user input to display or …

Member Avatar for cgeier
0
557
Member Avatar for slatk3y

I can generate a certificate from terminal using this command: keytool -genkey -keystore myCert -keyalg RSA ... and then you enter name, ... Is there an alternative way to do the same thing in JAVA? Any help is appreciated, thanks

0
81
Member Avatar for slatk3y

Hello, I am trying to understand how server and clients work. Can anyone explain it and give an example or link to the tutorial. I greatly appreciate your help

0
146
Member Avatar for llemes4011

Hello, I'm using NetBeans 6.7.1, and Derby 10.5.3.0. I'm trying to learn how to write Database applications, and I'm having trouble connecting to my Database. It loads the Derby Driver (EmbeddedDriver), but won't connect to the the Database named test. I looked at tests Properties in NetBeans, and it said …

Member Avatar for llemes4011
0
812
Member Avatar for anuj_sharma

Hey Guys, I want to use mySQL with java and for this purpose i downloaded the mysql-j connector from the mysql website. But i dont know how to poceed forward. Please help..

Member Avatar for Ezzaral
0
95
Member Avatar for jakx12

I know we are not supposed to ask for code, but could someone please tell me how I would do this. Not write code, just give me guidelines. thanks

Member Avatar for jakx12
0
95
Member Avatar for Nishanthi

i want to develop project for sound and stage entertainment using netbeansIDE can anyone tel the prerequisites and steps for starting the project please please

Member Avatar for majestic0110
0
63
Member Avatar for rainny

I have 2 buttons, which are start and stop button. When I click on the start button, i make the timer is counting while click on the stop button, it will stop counting the time. The problem I face here is if I click back start button, is it possible …

Member Avatar for emint
0
78
Member Avatar for ankitjain_dce

Hi All, We had an issue in our project that one user was able to see each other's data, we identified the problem as of caching by the proxy server of those users. On checking we found, we were not specifying any caching preference in our server side code and …

0
63
Member Avatar for Ramster

Hey guyz, can any one tell me how to run a java program in background of an OS(windows or linux) . Actually i am trying to develop an keylogger application in java. By the present status i understood it is some what difiicult , but i am not rdy to …

Member Avatar for JamesCherrill
0
73
Member Avatar for britto

hello.. i need help on how to convert a video to byte stream and i must sent that comverted stream through internet and in client it must be again changed to a video ... what must i do??

Member Avatar for britto
0
103
Member Avatar for gowth08

hi ive been doing a project in which metadata for various filetypes(html, xml etc.,) are needed. are there any existing api's to do the above. ideas and suggestions

0
62
Member Avatar for theo19

[CODE] import javax.swing.*; import java.awt.*; public class Calculator { public static void main(String[] args) { new Calculator(); } public Calculator() { JFrame f = new JFrame(" "); JPanel textfieldpanel1 = new JPanel(); JPanel textfieldpanel2 = new JPanel(); JPanel row1panel = new JPanel(); JPanel row2pane1 = new JPanel(); JPanel row3pane1 = …

Member Avatar for majestic0110
0
201
Member Avatar for jrosh

I tried to add sroll bars to a textarea with the following code. It is not wrkin. Show me a way out! I just wanna add scrol bars to the textArea. class srolpane extends JFrame{ private JTextArea txtAr; private JScrollPane srlpane; private scrolpane(){ txtAr = new JTextArea(); txtAr.setBounds(250,50,400,425); srlpane= new …

Member Avatar for JamesCherrill
0
71
Member Avatar for moyphus

Hi to all I've formula like this one,., (((10000*5000)-2000*3000)*30/100),.,Can anyone sove this using prefix postfix notations,.,.,I can't find this,.,

Member Avatar for moyphus
0
75
Member Avatar for wildheart25c

you've read it once you've read it a thousand times! probably responded to it just as many times. Now i ask that you respond one more time I've added as many details as possible becuase i've tried the solutions in an old thread in this forum but no luck. [url]http://developers.sun.com/mobility/midp/articles/tutorial2/[/url] …

Member Avatar for wildheart25c
0
259
Member Avatar for Xamas

I wrote a Java program, and it successfully compiles and runs in NetBeans, but I'm not able to do the same in the [B]command line[/B], on Windows XP. It works ok with 1 class, but when I have few files 'package' I have a problems. 1.Start -> run -> cmd …

Member Avatar for Xamas
0
176
Member Avatar for ankitjain_dce

Hi All, We had an issue in our project that one user was able to see each other's data, we identified the problem as of caching by the proxy server of those users. On checking we found, we were not specifying any caching preference in our server side code and …

0
67
Member Avatar for Zaad

Hi; Im on the way of doing a concurrent application in java command line. I want is a way to stop a transaction in the middle of it when the transaction is happening in the application. In the GUI there is the KeyListener to handle the key inputs and invoke …

-1
75
Member Avatar for low1988

I have try to get used to the database -java connectivity with a simple address book application below : [CODE] import java.awt.*; import java.awt.event.*; import java.sql.*; import java.applet.*; import javax.swing.*; /////////////////////////////////////////////////////////////////////////////// //Creates the main window with top Menu toolbar. //This is also the class for the main declaration ////////////////////////////////////////////////////////////////////////////// public …

Member Avatar for masijade
0
90
Member Avatar for Gatayo

Design a drawing application (have a look at Microsoft Paint application on your Windows system). The application must have menus, and must be able to draw one or more sharps (e. g. point, line, rectangle, oval, etc). The application should use GUI components.

Member Avatar for majestic0110
0
101
Member Avatar for george21

I can't figure out why this won't put buttons 1, 2, and 3, on the top of the frame, with buttons 4, 5 and 6 on the bottom? I realize there should be space between the top row and the bottom row. import java.awt.BorderLayout; import java.awt.FlowLayout; import javax.swing.JButton; import javax.swing.JFrame; …

Member Avatar for majestic0110
0
157
Member Avatar for Gatayo

JSlider program to display one out of a possible 10 pictures in the window. You should be able to choose the picture by position tick on the Slide bar

Member Avatar for JamesCherrill
-1
64

The End.