32,199 Topics
| |
Hi! I'm trying to zoom in/out ImageIcon in JLabel. The problem is that after 2-3 zooming actions, the image quality becomes horrible. How could I solve this problem? Thanks! [CODE] private void doZoom(int scaleFactor) { Component[] c = SelectablePanel.getMainPanel().getComponents(); for(int i = 0; i < c.length; i++) { if(c[i] instanceof … | |
Hello friends, You have been of great help to me till now. I got a new problem , I am unable to run the JAR file. When i click on the Jar file, I got the following error : "Could not find the main class: socketprog.Main. Program will exit." Thanks … | |
Hi there everyone, I need some help getting started creating a Java program for a class I am taking. Here is what I need to do: Create A program written in Java (without a graphical user interface) that will calculate and display the monthly payment amount to fully amortize a … | |
Hello everyone. I am getting a [CODE]java.lang.NoClassDefFoundError: gnu/regexp/REException'[/CODE] when I run my code. Is there any way around this? I understand it has something to do with a class not being in the write path. I'm using BlueJ as my IDE and I'm trying to use the methods in someone's … | |
Hello everybody .. This is the first time i post on to daniweb for a favour. Am just proceeding with a math contest. in general say n , need the catalan series with formula 2n!/(n!*(n+1)!) . i am in need of the answer for n=1000. I thought cud try this … | |
Hi all, I'm having a bit of a problem with my code. I've created an arraylist method and when values are inputted it prints them one by one. [CODE] import java.util.*; public class ArrayListDemo{ public static void test(int i){ List arrlist = new ArrayList(); arrlist.add(i); System.out.print(arrlist); } public static void … | |
I have form and that have a label I would when I run the program my counter count in label but when i run that's nothing open the form and nothing and that's my cod where error [CODE] private static int totalNum = 0; private void formWindowActivated(java.awt.event.WindowEvent evt) { class … | |
JavaFX and JSF Have any common/similarity? JSF May used together with Struts? | |
I am new to swing. Now I am developing a frame with multiple tabs. For this I used jTabbedpane. Now the problem is that I am not able to save contents of seleted jTextPane of jTabbedPane. While saving, I am only able to save contents finally wriiten on jTextPane. So … | |
hi guys, Im doing a project that executes a java file through another java file.. I need to use Runtime.exec() funtion for the purpose. But, there is trouble in passing the input to the java file. Please help me solve the situation. my main funtion is shown below... [CODE] import … | |
Re: Not able to resolve import.com.lowagie | |
I need to complete this project by next Monday. How do I do a menu selection EXAMPLE: Press 1 to enter the model number. Press 2 to delete a record. Press 3 to exit the program. I'm doing this project on NetBean using Java. Can someone please teach me? Thanks!!!! | |
Stuck on trying to limit a persons name to say 20 characters in a string or a phone number to 6 characters in a string, i cant get the {} inside or after regex to work with either a minimium or maximium number so that in my loop if a … | |
hi guys, thanks for viewing my thread. i have a program in java application and i want to connect to mysql database because i need to use database for a few parameter.the result will b showed in web-page using php. my question is how can i connect my program to … | |
hi, i want to convert a color image into a greyscale image. after loading the color image, i have to count pixel by pixel to get the frequency of the color (0-255) to be placed in an array. can anyone help me how to count the frequency? thx in advance. | |
Hello, this is a newbie question, sorry for that, I am trying to port some Java code to C++. In this code I have a hashmap connecting string values to float arrays of varying sizes. They are specified like this: [CODE=Java] HashMap <String, float[]> hm = new HashMap <String, float[]> … | |
Hi. I'm developing a software for my degree project. I have some problems in sorting the probability item from linkedList object. Here are the snippets of my code (I have almost 400 lines, so if the below is not enough, please let me know) CLASS LINKEDLIST [CODE] class LinkedList implements … | |
I can't figure out what am I doing wrong!! please help me before I lose it! I'm trying to send 2 different strings to a function that will put each word in the string into a MAP. string 1:[B] "I CAR Collision Repair Training"[/B] string 2: [B]"Autocar India"[/B] my map … | |
Hi can somebody help at the earliest . My requirement is to download a file from the remote server and read it in order to insert into db. So, i have written a shell script that downloads the file. This has to be invoked by a java program, after downloading … | |
How do you write the code using Scanner class to set up a menu (i.e 1 for something, 2 for something, and so on.) Then have the user to choose. Thanks | |
HEllO EVERY ONE I need you help in my java code that I built on netbeans First I will example the idea of the programm GUI are containing two textfeild The first textfeild the user have to enter price The second textfeild the user have to enter weight then when … | |
I have device and have the driver of it ,the device send data to me by serial port how i can receive that data in java . | |
hey there, I have the following code: [CODE] import java.io.*; public class Karakters{ public static void main(String[] args) throws IOException{ FileWriter in = new FileWriter("karakters.txt"); PrintWriter outfile = new PrintWriter(in); char x = 'A'; for(int i = 0; i < 300; i++){ System.out.println((i + 1) + " " + (char)(x … | |
Hi, I have setup a syslog server that collects logs from various network devices. Is it possible to develop a system that can retrieve the logs in the syslog server into the system using Java?? I desperately need help here. Does anyone know how to code this or any suggestion … | |
hello all i have a string *354*4*string#.what i want is to fetch the string and calculate it's length. plz help | |
I'm trying to make family tree webapplet, to test it out outside of the site I just used JFrame. I've used GroupLayout to set up things, but I'd like to have a fixed size, now it just takes up the size of the JFrame. NewClass.Java [CODE=java] /* * NewJPanel.java * … | |
Hello. Can someone help me with this ATM program. The program is working good but I have to show the 10 last transactions Instead the program prints only out 9 lasttransactions, what do I do wrong? import java.util.Scanner; public class Atm { private static int balance = 0; public static … | |
i want to make a simple java program,,to input on keyboard Shift+Crtl+D it means that instead of me to type on keyboard ,, i want my java program to type it by just running my program how to do it ,, is it difficult?? please help | |
I'm trying to find some "common" human understandable resources in regards of memory management, beside resources from Sun/Oracle that are sort hard to digest. There are plenty of short articles and blog entries, but they mostly touch just certain aspects of this subject |
The End.