32,204 Topics

Member Avatar for
Member Avatar for toferdagofer

im trying to figure out how to get the max and min of the values that are entered if i run this program. I want the user to enter in a series of numbers until they were finished and to terminate it to type -99. I'm having quite a few …

Member Avatar for toferdagofer
0
201
Member Avatar for bunifrog

I already have a Please Press Enter to continue... Statement for the end of my list that will allow the list to stay on the screen, be read, then when the user is ready they hit enter and the list continues to the next page. That is part of the …

Member Avatar for bunifrog
0
186
Member Avatar for Xufyan

See the code below, [CODE]import java.io.*; class Test1 { public static void main (String arge[]) throws IOException { InputStreamReader values = new InputStreamReader (System.in); BufferedReader br = new BufferedReader (values); String value,store; char ch; System.out.print ("Input String: "); value = br.readLine(); store = ''; int ln = value.length(); for (int …

Member Avatar for Xufyan
0
258
Member Avatar for tallmen2

how do i store a .bmp image or a .jpg image in a table in MS Access database?

0
25
Member Avatar for jk_bscomp

Hello everybody!!! Can someone help me on how to create an executable file on java? I made some applications in java but my problem is, I need to compile my program everytime I want them to run ... What I want is to compile my program once and then just …

Member Avatar for nickguletskii
0
162
Member Avatar for anushri

i create a java prog for simple banking purpose.. but its not working properly... when we create account through 2nd option,it work as it coded but if go through 1st option it doesnot access created object but create new one....and unable to perform deposit and withdraw function in created account. …

Member Avatar for nickguletskii
0
168
Member Avatar for raj26061990

The two numbers are accepted as Commamnd line arguements and GCD of those numbers are found using a recursive method.

Member Avatar for raj26061990
0
2K
Member Avatar for Xufyan

I got to assignment first one was to print the data of two students using different classes and constructors and count the total numbers of records and i've done this. here is the program. [CODE]public class Student { int RollNo; String name; static int stdcount=0; public void print(){ System.out.println ("Roll …

Member Avatar for NormR1
0
835
Member Avatar for skyzer

[url]http://www.gasuinfo.org/planetarysystem/index.html[/url] [CODE]<html> <head> <title>Planetary system</title> </head> <body> <p> Applet</p> <p align=center> <applet code="applet.class" archive="planetary.jar" width="900" height="600" > </applet> </p> </body> </html>[/CODE] if i run my applet from eclipse, then it works fine. in command line i wrote [I]jar cvf0 planetary.jar *[/I], jar file was created and i uploaded it and …

Member Avatar for NormR1
0
127
Member Avatar for raghujosh

I am trying to connect to a SQL server 2008 database from within Eclipse. My SQL server uses integrated authentication for login. Eclipse prompts for integrated authentication , but it is unable to login. I get an error message as "This driver is not configured for Integrated authentication". The sqljdbc_auth.dll …

Member Avatar for raghujosh
0
432
Member Avatar for Melow

i would need same help, i don't understand why this is not working what i'm trying to do is to make a small slideshow. i searched the web and i saw that this it should be done... my problem is that the JLabel that should contain an ImageIcon doesn't load …

Member Avatar for tong1
0
157
Member Avatar for muniba

hi m working on an image editor as its my class project.i have the difficulty in displaying image on aa panel in the same frame view in netbean 6.9.plz help me

Member Avatar for NormR1
0
58
Member Avatar for muniba

plz tell me where i am stuck.how could i solve this package drawing; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.io.File; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Component; import java.awt.Graphics; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import javax.swing.*; import javax.swing.event.*; /** * * @author */ …

Member Avatar for nickguletskii
0
118
Member Avatar for SC803

Write a grading program that helps to determine your letter grade based on your exam score. For example, when you put in exam score of 80, the program will determine you get a B. Please note the following: 1) Your letter will be determined by only one exam score. 2) …

Member Avatar for tong1
0
101
Member Avatar for pallavigupta117

Ive made this calculator using java swing.I want to add new buttons to my frame if user selects 'Scientific' from file menu and remove buttons frome the frame if user selects 'Standard' from the menu. By default it is selected to standard. Write now a new window pops up above …

Member Avatar for JamesCherrill
0
163
Member Avatar for pallavigupta117

Ive made this calculator using java swing.I want to add new buttons to my frame if user selects 'Scientific' from file menu and remove buttons frome the frame if user selects 'Standard' from the menu. By default it is selected to standard. Write now a new window pops up above …

Member Avatar for mikeNIkesT
0
121
Member Avatar for kiranpvsr

Hi, I get the following output : I dont understand why after the decimal point, the values start changing from 0.13223. The line in the code is temp = temp - 0.001; For the file0 the value of temp is 0.14623 For the file0 the value of temp is 0.14523 …

Member Avatar for NormR1
0
132
Member Avatar for fullgl

I see about Tim sort on Wikipedia..? But, I can't understand on tim sort code(java). I want Example of Tim sort for learn it. To understand it. Thanks for your help. Tim sort is a less data for learned.

0
31
Member Avatar for nssltd

Hi sorry about this kind of nooby question but i have started learning java and i am making a Chat Application, i am making it using the killer game programming in java book. But i have ran into a problem. The Code asks me to import [CODE]import javax.servlet.*; import javax.servlet.http.*;[/CODE] …

Member Avatar for Ezzaral
0
130
Member Avatar for vhea

import javax.swing.*; import java.awt.*; import java.awt.event.*; import javax.swing.text.*; import java.text.*; public class Vhea extends Frame implements ActionListener{ JFrame frame; JPanel panel1, panel2, panel3; JLabel inputLabel; JFormattedTextField inputField; JButton button; Container contentPane; JOptionPane optionPane; String inputTxt=""; public static void main(String[] args) { Vhea tm = new Vhea(); } Vhea() { frame …

Member Avatar for JamesCherrill
-1
103
Member Avatar for nssltd

Hi well i had difficulty using javax.servlet; so i downloaded the class files of the sun website. but i dont know how to use them in netbeans ide 6.9? does anybody know how to import them into a project? i have the entire javax.servlet package(includes javax.servlet.http; )the class files are …

0
61
Member Avatar for Mylsamy

Hi all, I want to display the Number values instead of String. For example, if the User gives the Input as fifty, i displayed the Output as 50. Is any existing method in Java to call for displaying Numbers? Or how can i solve this problem? Thanks in advance and …

Member Avatar for javaAddict
0
133
Member Avatar for Aanchal89

[code]import java.sql.*; import javax.sql.*; import javax.swing.*; import java.applet.*; import java.awt.event.*; import java.awt.*; public class Display extends JFrame implements ActionListener { JLabel l1; JTextField t1,t2; JButton b1,b2; public Display(String s) { super(s); l1 = new JLabel("user name"); b1 = new JButton("submit"); b2 = new JButton("reset"); t1 = new JTextField(20); t2 = …

Member Avatar for JamesCherrill
0
103
Member Avatar for JamesCherrill

I have a problem involving Generics. Here's a simplified version: Suppose I have a generic method to add a new element to a (possibly empty) ArrayList, like this: [CODE]<T> void addNewTo(ArrayList<T> list)[/CODE] What I need to do is to determine the correct class for the ArrayList elements so as to …

Member Avatar for JamesCherrill
0
188
Member Avatar for NT.

Hi, I have a question regarding compilation. I am having 2 classes and one class basically uses another class. Let's say for instance we have 2 classes A and B. Now class B have something like this: Class B { public void x() { A a= new A(); a.getSomething(); } …

Member Avatar for JamesCherrill
0
88
Member Avatar for erogol

I have a group of textField and I need to add some more to this group dynamically with user input. For Example Scenario. I have some stuffs that are sold in a shop and I have textFields for each to show their amounts. I get a new kind of stuff. …

Member Avatar for JamesCherrill
0
198
Member Avatar for abbyo

Java - Is it possible to run the swing class in the applets. I'm having problems running the message windows inside the applet windows... any suggestions? I may need to know this for my future programming assignments. Thanks!

Member Avatar for DeadSoul
0
51
Member Avatar for jiraiya

Hi everyone, I'm having trouble inserting icons into a textpane and I'm not sure why. I'd like to set up a textpane and then be able to insert and display images in that textpane during runtime. As a test I've written the code below for a simple GUI with a …

Member Avatar for tong1
0
208
Member Avatar for emmas4impact

Hello guys, I am working on a project that deals with a store. but here is my problem i am having problem inserting multiple record into the database instead my code is summing it up. Can anyone give me an idea on how to insert multiple record into a database. …

Member Avatar for emmas4impact
0
3K
Member Avatar for abbyo

Is this possible? I'd like to add a java file in each tab of this JFrame. I've already created the files, I'd just like to show both files in one. The files I'd like to add are commented out: storageSP and calculatorEDL [CODE] import javax.swing.*; import java.awt.event.*; public class TabbedPane …

Member Avatar for NormR1
0
126

The End.