32,199 Topics

Member Avatar for
Member Avatar for Nirmeen Ased

Using Two Classes, one main class only for calling methods in the second class {Hint: suppose you two classes Like Class A and Class B. Class A has all methods only. Class B only Calling methods} Q1- write a java program to do the following i- method for input array …

Member Avatar for Mattox
0
118
Member Avatar for cwarn23

Hi, I have the following applet which works on my localhost server but when I upload it to my online server then the Java console spits out an error saying the following: [CODE] Exception in thread "thread applet-viewer.class-1" java.lang.NoClassDefFoundError: viewer$1 (wrong name: viewer) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) at …

Member Avatar for cwarn23
0
204
Member Avatar for newbie14

Dear All, I have a java application which is a listener receiving data from different gps devices. The programme have been working fine. Each time I receive a string it will read process and store into a local database(mysql) and also write into a text file. Off late I notice …

Member Avatar for newbie14
0
117
Member Avatar for bmaiorano

Need help with this java program Write a Java program that maintains a price catalog for a grocery store. Each catalog entry is an object of the class Item defined exactly as shown: public class Item { private int id; private String name; private double price; public Item(int i, String …

Member Avatar for bibiki
0
151
Member Avatar for Sorcher

hello guys! I am looking for a large upload script. A script that can carry files like a movie on 1GB up to my server. # i got the host and the required settings. But i need a script with progress bar etc. I am willing to pay for it. …

0
81
Member Avatar for jfountai

Warning Newbie here. I am trying to read a properties file and set the values to be used throughout the code. I can open the file and get the values. I am struggling on making the accessible for other classes/methods. Here is what I have so far: [CODE] Properties configProp …

Member Avatar for jon.kiparsky
0
171
Member Avatar for GolfGr

Hello guys im working on a project for my class and im stuck. i dont have much of experience with linked list and my book isn't helpful with this project. Here is what the project is about: Develop an interactive program to implement basic linked list operations including: 1. Add …

Member Avatar for GolfGr
0
171
Member Avatar for zetologos

I have this homework assignment to make a calculator using a stack and converting infix to postfix. My infix to postfix method works fine. But the other method to evaluate it works for all cases except when multiples or divisors result in double digits. My calculator does not support double …

Member Avatar for tunlinaung
0
106
Member Avatar for unrealj

What I am doing here is in one class reading in a file where the first line contains info about the number of rows and columns in a grid to be made in a GUI representation. I made the first class read in the file, and returns a value "e" …

Member Avatar for unrealj
0
183
Member Avatar for prateeksalian

hi, how to call exe file with some parameters from java and save the output of the exe file in a specified path. Please let me know immediately..its urgent!!! I am using the following code : I want to save the file after running this DPAnalysis.exe on jan.xls into my …

Member Avatar for mKorbel
0
154
Member Avatar for adil24

in sturts how can i use tree node im using netbeans 6.8 this is my codes: <script language="javascript"> $(document).ready(function() { $('div.view').hide(); $('div.slide').click(function() { if($(this).children('img').attr('src')=='images/plus.png') { $(this).children('img').attr('src','images/minus.png'); //$(this).removeClass(); //$(this).addClass('slide_clicked'); } else { $(this).children('img').attr('src','images/plus.png'); //$(this).removeClass(); //$(this).addClass('slide'); } $(this).next().slideToggle(50); return false; }); }); </script>

0
49
Member Avatar for sam.udo

I am developing a software and i need to add a spider application to the software,the spider application will have to download updates and news from some designated URLS (NEWS FEED)into a database and then to one of my user interface....though i have gotten materials online for that but i …

0
53
Member Avatar for VernonDozier

I am trying to work on a project for school from home. The school computer has Oracle and I am trying to access it from home using Java/JSP. Currently I have Java SE with NetBeans installed on my home machine (Windows XP SP II), but not Tomcat or Oracle. The …

Member Avatar for masijade
0
364
Member Avatar for softswing

Hai friends, Am using swing for GUI, using gridbaglayout, for combobox width is changing by the size of items loaded, i want particular size as per above field, setprefferdsize,setmaximumsize, setminimum sizes having no effect in gridbag layout. [CODE] GridBagConstraints ComboConstraints = new GridBagConstraints(); ComboConstraints.gridy = 1; ComboConstraints.gridx = 1; ComboConstraints.anchor …

0
61
Member Avatar for pooran.c

that is expected output is [CODE] sun mon tue wed thu fri sat 1 2 3 4 5 6 7 8 9 10 .... ... ... 29 30 31 [/CODE] my code: [CODE]static void print_31days(int a[][]){ int i=1; while(i<=31) { int some=0;//some is the startdate of the month of the …

Member Avatar for pooran.c
0
160
Member Avatar for MokaChick

Hello, My group and I are currently writing a hangman-like program for our class (I know hangman related questions have been asked a billion times, but bear with me). We are having issues with being able to replace our * with the correct letter (if it is correct). Here is …

Member Avatar for MokaChick
0
195
Member Avatar for kukuruku

Hi ,I am learning java ,and wondering why is this return in this method Thanks [CODE]public void updateDisplay() { if (curIndex<0 || curIndex>=appObj.array.size()) { display.setText(""); return; } display.setText( appObj.array.get(curIndex).toString()); }[/CODE]

Member Avatar for RunTimeError
0
102
Member Avatar for josh.2010
Member Avatar for rovis

can anyone help with this program I tried to get user input but everytime I change the celcius to double or move it I get an error code that says it may not have been initilized. thanks for any help. [CODE]import java.util.Scanner; class conversion{ public static void main(String args[]){ Scanner …

Member Avatar for Tarkenfire
0
175
Member Avatar for StudentUoP

This is my calculator. I am trying to add the user input option. The combo box works with the calculate button, however, the user input option does not work with the calculate button. I only get $oo as the output in the Payment text field. Could someone please give me …

Member Avatar for mKorbel
0
842
Member Avatar for Kuroshi

I made a program using Sockets, pretty interesting, but I have found some "problems" that bother me, my game is threaded and in its run method it has a lot of if statements for the different behaviors when it receives a certain String from the server. Is there any other …

Member Avatar for Kuroshi
-1
1K
Member Avatar for pooran.c

import java.util.LinkedList; import java.util.ListIterator; import java.io.*; public class llist { public static void main(String[] args) { String abc="poo"; String[][] array_string; array_string= new String[10][10]; array_string[0][0]="123"; for(int i=0;i<5;i++){ for(int j=0;j<5;j++){ array_string[i][j]=(String)j; System.out.print(array_string[i][j]); System.out.println(""); } } } } error is: Exception in thread "main" java.lang.Error: Unresolved compilation problem: Cannot cast from int to …

Member Avatar for pooran.c
0
240
Member Avatar for jackmaverick1

Hi! I'm learning how to make a GUI in Java. I'm wondering how to add a JThingy (JLabel, etc) without the use of the add(NameOfJThingy); Because add(); isn't static, you can't use it in a static function (like main, which must be static). I've seen that the constructor can help, …

Member Avatar for JamesCherrill
0
149
Member Avatar for rohit2

Hi, I am new to Grails and Groovy. Currently I am running tests of my application using the command grails test-app. Just like in Java, now I want to pass some parameters as command line arguments. Is it possible in Grails. If anyone has idea, please share it with me. …

0
87
Member Avatar for JJHT7439

I have a quick question that I'm hoping someone can help me with on here. I have 2 2d int arrays that I create for a board state and a solution that look something like this: int[][] P1 = new int[][]{{0,2,0,0,0,0},{0,0,3,0,0,0},{5,0,0,0,0,0} etc. ect. They're 6x6 arrays and I need a …

Member Avatar for JJHT7439
0
133
Member Avatar for sakurayana

[code]import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.border.*; import java.util.*; public class Cinema extends JFrame { private JLabel lblName,lblIC, lblPN, lblPerson, lblTicket, lblTP; private JTextField txtName, txtIC, txtPN, txtPerson, txtTicket, txtTP; private JRadioButton rbA, rbB, rbC, rbD, rbE, rbF; private ButtonGroup radioGroup; private JCheckBox cbxA1, cbxA2, cbxA3, cbxA4, cbxA5, cbxA6, …

Member Avatar for jwenting
0
140
Member Avatar for yancouto

EDIT: My problem was solved. :) But I have a doubt, what is the most effective way to wait for something to happen in java? for example, if I want to wait for a boolean b to be true, does this below work? [CODE=java]while(!b) {} //stuff to do after wait …

Member Avatar for yancouto
0
129
Member Avatar for 080346

hello everyone i want to know how i can store the image in my database(PostGreSql pgadmin iii) using jsp and glassfish as a server. i have the following code but it go to exception at pst.setBytes(2,b)....... thnx [code] con = getConnection(); String exsistingFileName= "C:\\temp\\myimage.gif"; File file = new File(exsistingFileName); FileInputStream …

Member Avatar for kvprajapati
0
103
Member Avatar for blur0224

Hi All, I want to run a POJO within an EAR externally. I know this can be done from a servelet, but I'd prefer being able to do it from command line. Is this possible? Are there other options? Thanks!

Member Avatar for blur0224
0
69
Member Avatar for sakurayana

hi, can u help me.when i click at the checkbox,the data in the checkbox should appear in the number ofperson textbox..but i cannot pass the data to the textbox.any solution...thanx in advance..here's the codes: import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.border.*; import java.util.*; public class Cinema extends JFrame implements …

Member Avatar for sakurayana
1
216

The End.