32,199 Topics

Member Avatar for
Member Avatar for forjustincase

Hi.. I am working with netbeans for making my desktop application (swings).. I want to edit my frame (like setting icon to the Jframe , etc ) but i couldn't able to do so. This auto-generated code in netbeans really sucks. I cant see where the jframe object is created …

Member Avatar for JamesCherrill
0
956
Member Avatar for Neversleepin

Hello, is it possible to display an Error message when we enter a number in jSpinner. I tried this, in Netbeans i right-clicked the jSpinner , then go to -Properties -tooltiptext and write Range 1 to 200 -Model i choose the spinnermodel/Spinner Model Editor/Model type = number model properties = …

0
66
Member Avatar for ganges
Member Avatar for miran788

I'm having trouble with this assignment: Write a class Coins with one constructor that takes a number of cents as a parameter. Supply four public methods, getQuarters, getNickels, getDimes, getPennies, that return the number of corresponding coins that add up to the amount (in the optimal representation with the smallest …

Member Avatar for jalpesh_007
0
1K
Member Avatar for Zatara7

So this is going to be the last project for my java class. Any input is appreciated and I'm generally posting it here because someone else might benefit from it. It is not done yet but when it is I'm going to post the full code. I made a video …

0
391
Member Avatar for joedavis23

This program asks the user to enter pricer for items. The user enters a price of 0 to stop. The program then prints a reciept including a list of items bought arranged from least to most expensive, and a total that includes 5% sales tax. I am lost can anyone …

Member Avatar for zeroliken
0
999
Member Avatar for sofien.fkih

Hi everyone, I have many executable files which I developed using java language(netbeans platform), which all run at the same time 24 hrs, the problem is that I can't know which one is for which program in the task manager, process tab, because they all have the name of javaw, …

Member Avatar for sofien.fkih
0
272
Member Avatar for corby

Hi. I am trying to write a function that when given a class, will tell you the number of methods that class has. I am getting the java.lang.noclassfoundexception message. I read something about adding to the PATH but was unsure. I also tried using HelloWorld.class, but that did not work …

Member Avatar for corby
0
229
Member Avatar for zakiraimanaz
Member Avatar for zakiraimanaz
0
720
Member Avatar for Alex_

Hello daniweb community ! I'm finishing my second year of IT studies and the university is giving us the opportunity to engage in a project with a company. I found a good company but now i'm looking for a good project to work on. I was thinking doing something in …

Member Avatar for JamesCherrill
0
314
Member Avatar for london-G

Hello, I want to delete duplicate in the array I have created, I have the following method now: Add an element Remove an element Can you give me an idea of how I can implement the deleteduplicates method. Thanks

Member Avatar for london-G
0
90
Member Avatar for Sumal

I wanted to convert this segment of code into something slightly different package expression; import java.util.*; public class Expression{ /* * Strings used for storing expression. */ String s, x; /* * Term evaluator for number literals. */ double term(){ double ans = 0; StringBuffer temp = new StringBuffer(); while( …

Member Avatar for JamesCherrill
0
211
Member Avatar for bibiki

alright, I have been aware of private, protected, and public access modifiers but just this week I discovered that there is also the default access modifier in Java. In case none of the three p-- modifiers is mentioned in a method header or field declaration, they seem to have the …

Member Avatar for JamesCherrill
0
158
Member Avatar for smellysocks

Hello, I have an assignment for class where I have to write an apple that uses a trip time calculator. I have the following codes but cannot get the applet to run properly. Help is appreciated. Thanks. import javax.swing.*; import java.awt.*; import java.awt.event.*; public class TripComputerApplication extends JFrame implements ActionListener …

Member Avatar for zeroliken
0
1K
Member Avatar for shredder2794

Hello all, I was wondering if there was a way to add cover art to an mp3 file using Java? I'm fine using 3rd party libraries. I have been using JID3(http://jid3.blinkenlights.org/) to add and edit ID3 tags of mp3 files but can't seem to find a way to add cover …

Member Avatar for shredder2794
0
1K
Member Avatar for babi.meloo

I need to design a class called Building that represents a drawing of a building(the parameters to the constructor should be the building's height and width). I need to color the buildings black with a few random windows colored yellow. Then I need to make an applet that draws a …

Member Avatar for babi.meloo
0
1K
Member Avatar for tingwong

Hello everyone, I have a little question regarding a project for my class. We are making a tower defense game with ants and zombies objects for our project. My question is with this piece of code provided to us. /** * Callback invoked when the player attempts to recruit an …

Member Avatar for tingwong
0
164
Member Avatar for forjustincase

Hello everybody, this is the first time I'm going to create a real-life JAR, so maybe a bit stupid question but I'm totally out of ideas here... Okay, I have a project named WiWClient which depends on other project named common and requires libraries from lib (there are like 20 …

Member Avatar for JamesCherrill
0
317
Member Avatar for akosivivas

Pls.. Someone help me on how to display in JLabel the product with two decimal places after I click a button.. pls. help I am new in making a swing program

Member Avatar for radhakrishna.p
0
187
Member Avatar for cezar84

Hi Guys, I'm new to Java and hoping someone can help me with this code. I started to work on this exercise to create a calculator app, and Im really stuck on two things: 1. NumberFormatExeption - NetBeans IDE keep show me this error: }catch(NumberFormatExeption e){ required: Throwable found: NumberFormatExeption …

Member Avatar for radhakrishna.p
0
145
Member Avatar for Atlanta15Braves

I need to design an application that makes a histogram that visually shows the distribution of a set of numbers. It has to read in numbers 1-100 and then produce a chart which labels how many of each number is input. So if my input is 1, 23, 17, 13, …

Member Avatar for Atlanta15Braves
0
4K
Member Avatar for freesoul.rahul

Hi everyone, I need some help with my homework. I checked online and found loads of results but didnt understand much. I need to submit hw by tomm nyt .. 27hrs from now. Please help me if you can plz .. Here is my code snippet public static void main(String[] …

Member Avatar for freesoul.rahul
0
279
Member Avatar for CoilFyzx

Hello good day. I have a quick question is anyone able to assist me in saving a password file. I encrypted my password and so I want to save the salt and the encrypted password(which are byte arrays). I tried using a properties file, but I soon found out that …

Member Avatar for CoilFyzx
0
250
Member Avatar for overwraith

I hope this is the right location to make this post. I downloaded the source code for a rich text editor from; http://code.google.com/p/android-richtexteditor/ and the code will not compile correctly. The errors I get are; "Unable to resolve target 'android-4'", "AndroidManifest.xml file missing!", and in the Html.java file there are …

0
65
Member Avatar for subramanya.vl

I have this static block of code which is following Singleton design pattern. class Employee{ private static Employee emp; static { if (emp==null){ emp=new Employee(); } } public static Employee getEmployee(){ return emp; } } My doubt is if this code can be accessed by Mutiple threads concurrently and break …

Member Avatar for subramanya.vl
0
1K
Member Avatar for Violet_82

Hi there, I am just beginning to learn java right now, and have a real begeinner question. I ahve read that when you declare a float variable and ssigna value to it the number has to be followed by an "f". What I coudln't find out is why: `var floatNumber …

Member Avatar for Violet_82
0
164
Member Avatar for Sumal

**Can some one please help me with this ?** import java.util.*; public class Expression{ /* * Strings used for storing expression. */ String s, x; /* * Term evaluator for number literals. */ double term(){ double ans = 0; StringBuffer temp = new StringBuffer(); while( s.length() > 0 && Character.isDigit( …

Member Avatar for NormR1
0
309
Member Avatar for rami sohaill

package hospitalclient; public class Person { static int idnumber= 1500; private String name; private String telephoneno; private char gender; private String nationality; //No Parameter constructor public Person() { name="unassigned"; telephoneno = ""; gender = 'M'; nationality = "Saudi"; } public int getid() { return idnumber; } // Accessor Methods public …

Member Avatar for JamesCherrill
0
349
Member Avatar for a7x813

/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package testelimination3; import java.util.Scanner; /** * * @author Nick */ public class TestElim { public static void main(String[] args){ Scanner input = new Scanner(System.in); System.out.println("Please enter a set of numbers"); int[] …

Member Avatar for subramanya.vl
0
1K
Member Avatar for lalitapatil

Abstract—A video copy detection system that is based on content fingerprinting and can be used for video indexing and copyright applications is proposed. The system relies on a fingerprint extraction algorithm followed by a fast approximate search algorithm. The fingerprint extraction algorithm extracts compact content- based signatures from special images …

Member Avatar for NormR1
0
186

The End.