35,618 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] | |
Hallo guys, a theoretical question I have there for you. I have a search form in HTML with several input fields, so the user can search for particular features in a db. My queiston: How can I generate a dynamic query, depending on which fields the user had filled in? … | |
Hi guys, I have a quick and interesting question there for you: I have my DB and a execute a query to read some data from the DB and return it to the HTML. The data that is returned depends on the search fields the user had filled in. So … | |
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 … | |
Hi I am unable to pass value from one jsp to popup jsp. Code [CODE] <form name="detailsForm" method="post" onsubmit="return showDetails(this); "> <input type="hidden" name="sltdUser"> <input type="submit" value="Details"> </form> function showDetails(detailsForm) { detailsForm.sltdUser.value = selectedUserID; alert('selectedUserID :' + detailsForm.sltdUser.value); // works fine window.open('showDetails.jsp?abc =' + detailsForm.sltdUser.value); } [U]showDetails.jsp[/U] <% String abc … | |
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 … | |
Hi , i am php developer. But plan to learn JSP do i need to learn java for that?..... | |
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 … | |
Lets say i have a jsp page which invokes a servlet. Now I want the servlet to forward this request to someother secured jsp page which i have configured to be secured in my web.xml. The problem is the jsp pages opens as secured if I open it directly from … | |
[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 … | |
Hi everyone, I searched a while on the internet how to work with mvc for a school project. I found a really great tutorial on this site. ([URL="http://www.daniweb.com/forums/thread141776.html"]http://www.daniweb.com/forums/thread141776.html[/URL]) This tutorial has everything that i needed. In this tutorial the connection of the database is made by setting paramaters in de … | |
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! |
The End.