32,199 Topics
| |
| Hello I have this NetBeans project to complete and im having a problem passing text from a Jtextfield to another JFrame. I just need to get the data to that JFrame to use an SQL. Please help me Kind regards, Java newbie |
| I have an issue with positioning of a JList in a JPanel, I am using absolute positioning, and I don't want to switch to gridlayout or any of that stuff cuz the whole program is in absolute positioning and it wud mess everything up. The problem is that once the … |
I have a class that gets a JFrame as a parameter. I want to get a certain component from it and do some operations with it. Something like this: [code] class A { A (JFrame frame){ a_certain_Component jScrollPane = (a_certain_Component) frame.getThatComponent(); jScrollPane.setViewPort(new JTextPane()); } }[/code] | |
I was installed jdk 6.0 in my computer.But it did not work yet.I know it want to set the path.But I don't know how to do it.:-O Plz give me a:) answer quickly | |
Hi, I want to do Chi-square test, to find the weather two distribution are same or not. I want to use some statistical function to do that. i found common math library to that test. But I don't know how to use that library. Math - Commons-Math: The Apache Commons … | |
I just have a quick question. I am working on a program for a friend of mine, more specifically a program that keeps track of stats of characters makes rolls etc. for DnD. Anyway, I am going to save the data using Serialization and keep the data together via a … | |
I tried everything... I cant find a suitable JSomething to be able to add words to a pane that are different sizes and fonts. I tried JTextAreas but they only allow plain text. JEditorPanes allow HTML but don't seem to let me append single words for some reason. I'm also … | |
hi all, thanks for time to view my thread.hope u guys can reply. i have an algorithm,but the question is how can i code from the algorithm?what should i do maybe in steps? because im really new to programming and i want to know what is the step do we … | |
I get this message when I try to compile may work. Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - inner classes cannot have static declarations But I am so new at this that when I read your suggestion of fixing the problem, because there are two classes, I know … | |
Ok, so I'm trying to make a constructor for a text-based game for a monster. Here is the code for it: [CODE]public class Methods { String name; //characteristics of monsters int bodyPoints, mindPoints, attack, defense; public Monster(String name, int bodyPoints, int mindPoints, int attack, int defense) { this.name=name; this.bodyPoints=bodyPoints; this.mindPoints=mindPoints; … | |
Hi everyone, As most of us, I'm searching a website that offers documentation or project analysis for common web projects like MRP. I urgently need this to develop projects at home. I'll be happy if someone shares a source for this. Thanx everyone who shows interest to this topic. With … | |
Ok Iv been doing some research on plotting a sound file with the amplitude as the y value and frequency as the x. I cant seem to find much to be honest.. Has anyone done this or know how i could start. It can be with just .wav files, cuz … | |
Hi, I am a intro to java student and need a little bit of help starting on this new program that I have been assigned to write. Don't worry, I'm not just seeking for someone to do it for me, I just need some guidance as I proceed through it, … | |
Hello; I was having a problem understanding how to collect a date dataType as 1111-11-11 from a textFiels) and set a variable that accepts ex:public Date dob; Is there a way to get a string from an array element and parse it to conform to the Date data type? [icode]Exception … | |
I have never had this problem before. I code all my applications in the Eclipse IDE, and they all work fine there. But if I go into the bin and use a batch file, with 'java ClassName' it gives me an error about not finding the main class. I have … | |
[CODE]class A extends B { C ob1=new C(); D ob2=new D(); protected void finalize() { System.out.println("Finalizing A"); super.finalize(); } public static void main(String ss[]) { new A(); System.gc(); } }[/CODE] Though System,gc() doesn't guarantee the running of finalization, my question is if the JVM is able to run the finalizations … | |
hi i just wanted to parse a file to find certain associated data for ex if my text file is : <!#first>This is string1 <!second>THis is string2 So if user types in first...he will get This is string 1 iv written a simple C++ code to parse the text file … | |
I needed a way to have words with different sized fonts in my JTextArea, but apparently only plane text is supported for it. I turned to JEditorPanes which apparently support html which allows different sized fonts, which is great. Now, I need a way to traverse back into the lines … | |
Ok, so I am not sure how to do this but I am sure it can be done. Here is a scenario: I am reading in a text file that has a persons name and then the salary that they make per year for their job. The text file may … | |
Hi there, I joined DaniWeb quite some time ago but just been lurking since i joined. I'm stumped on a problem now though and i'm hoping someone can help with it - seems google cant. I'm creating postscript at the moment, there's no issue with this. Part of the postscript … | |
I have tried installing and uninstalling everything i had about java, different JRE's and JDK's. These are my current settings : [code]alexandru@alex-desktop:~/Programs/eclipse_Java$ java -version java version "1.6.0_20" Java(TM) SE Runtime Environment (build 1.6.0_20-b02) Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing) alexandru@alex-desktop:~/Programs/eclipse_Java$ echo $JAVA_HOME /usr/lib/jvm/java-6-sun-1.6.0.20 alexandru@alex-desktop:~/Programs/eclipse_Java$ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-6-sun-1.6.0.20/bin … | |
Hi, do you know how we can convert java script to html code, or put all the java script in some " " cuz I have java programs and want to put them on my web, so ... I heard that there is a special program which converts html, javascript, … | |
I am pretty proficient in C++ and Java. I know that most progrmas could be written in either language. My question for those of you who have been out there for a while, do companies tend to use one programming language for certain types of programs? For example, is C++ … | |
I have seen a lot of ***unit: JUnit, PHPUnit et al. Bu what on earth are they for in practical? Why do we need it? Thanks! | |
Does any one know of a class that creates unlimited JTextFields that can collect data? Thanks. | |
Hello everyone, as some of you might know NetBeans 6.9 has been release, now I already have 6.8 installed on my computer. The problem is that whenever I try to uninstall NetBeans 6.8 I get some weird error and I don't know how to fix it. Here is what I … | |
I've created a Java application and converted it into JAR format to redistribute. It works fine on Windows 7, Windows XP, SunOS and Mac OS X 10.5 ... but whenever I try to run it on Ubuntu 10.04 I run into a few problems: [LIST] [*]When running the application it … | |
Hi! I am totally new to using a Sax parser! Can anyone help me understand how to grab my xml content and store each group in an array list for later access. Within the XML there is repeating groups of information for different days and I want to be able … | |
I am not sure how i can pass the whole array through the methods calculateAverage, calculateHighScore and calculateLowScore. I tried doing a 2-d array but it was unsuccessful. [CODE]Exception in thread "main" java.lang.Error: Unresolved compilation problems: Cannot make a static reference to the non-static field highestGrade1 Cannot make a static … | |
hi all, i'm new to this forum and java i'm working on my thesis with "market basket analysis" topic and my lecturer told me to use java (while i'm new to it) i have a set of item like this (example) id|transaction| item 1 1 a 2 1 b 3 … |
The End.