176 Posted Topics
Re: he didn't include a question mark, but he did ask a question. he wants to make his app capable of adding (or performing some other operation) a number to the existing result... anyways. suchanewb, you see, when you have such a calculator the equal sign, square root, and squaring lead … | |
Re: flash builder is really easy. adobe has tutorials on its site for how to use flash builder/flex... as far as styling goes, you can use css to style your application in flash builder too. | |
![]() | Re: have you by any chance included a super(g) somewhere in either your constructor or paintComponent or repaint() method? if yes, remove it. ![]() |
hey there, I am trying to test strings using regex to make sure that the string may represent a monomial. that is, it must be 123123213x^213123. I am having difficulties to find any helpful information on how to test for ^. I am trying this: [+|-][0-9]*[.][0-9]*[x\^]? but I get a … | |
Hey there, I have already built my system to log in but I am having difficulties in proceeding with the new panel I want to show after log in is successful. This is how I'm doing it: I have built different panels for each use case of my app. So … | |
Hey there, I am building a small database app where I allow users to input and retrieve information in and out of database. As part of my application I have this table courses and a java file Course.java that models a Course object. My Course objects have field variables courseID, … | |
Re: well, let me chip in my two cents. The math I think you need for the kind of skills I think you want is called Discreet Math. You learn there predicate calculus as thines mentioned. In addition you will learn some graph theory and combinatorics there. This, I believe, would … | |
Re: check lines 25-27 in your code and see what you might be doing wrong. that is where you're setting that zero that you're getting. | |
Re: you better study for the final you'll have the next week as you might prepare better for it if you invest tonight's time on it. Java - next time. ![]() | |
Re: JavaPrograms, as an idea, I would recommend you replace your switch case statement with if-elseif statements and I believe you'll see the problems times variable is giving you. otherwise, NormaR1 has helped you a lot. just take a break, and get back to your code after a few minutes.. and … | |
![]() | Re: let us say you have a two dimensional array with dimensions 5, 5. now, you have 25 elements in it, right? every element holds either one or zero. for each element draw a panel. if it is zero, draw road, if it is one draw wall. put each of the … |
Re: you can do the filtering on the database. this is actually very easy in sql based databases. perhaps a key up handler should be defined. every time a key is released, the database should be queried for records that contain the string you have in your input field, or whatever … | |
Hey there, I am trying to build a small survey for a homework assignment. So, I have the following code: [CODE] $con = mysql_connect("localhost","user", "mypassword"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("mydatabase", $con); $slq = "INSERT INTO results VALUES('', '', '', '', '', '', '', '', … | |
Re: harinath, he is looking for how to store a number with 10^6 digits, not 10^6 itself. | |
Hey there, I built the following app; A frame that with three sections inside it. Each section is actually a panel. The first panel is a form I use for saving soccer matches on my database; The second holds only one button that reads textfields from the form above and … | |
Re: it's easy. All you have to do is check if a diagonal, a row, or a column contains only Xs or Os. If you find such a diagonal, row, or column, the game is over, you have a winner. else, keep going. At the end, you have code to check … | |
Hey there, I am aware of GridLayout, BorderLayout and FlowLayout classes. However, I find them not to work satisfactorily well for me when trying to layout the entire content in a frame. What I usually do is this: I identify parts that I want in my window. For each part, … | |
Re: Dmiller071, you left too much to be assumed. try posting your code, or maybe the entirety of the compiler complaint you get so that one can know where to look for an issue. first off you assumed you coded correctly, but turns out you have not. you are assuming your … | |
hey there, I am trying to build a small around soccer/football matches. So, I have built a class that models a Match (Match.java). It only contains field variables like hostid, guestid, matchid, result, and such, and setter and getter methods. When I retrieve matches from my sqlite database, I build … | |
Hey there, I have taken earlier this tutorial on adobe's site for building an application for mobile devices. The tutorial provides a war file. After deploying the war file on my tomcat server, a few directories are built. Most importantly, WEB-INF folder. This folder contains some java files on one … | |
Re: for what? to do your home work? no one will help you. you ought to show some work and tell us where exactly it is you are having difficulties before anyone will help you. otherwise, you might get price offers for doing you homework. | |
Re: try in the jsp forum. you'll find it under web development section | |
Re: you can also look for the first post in this java forum, and you'll find there some very good resources. even free books, some really good, as I have heard people say. you should look and see what you like. | |
![]() | Re: I have been having this same problem these days. This is how I intend to go about it. if you do it this way, let me know how it turns out: I am assuming you have a tree (or multiple trees). determine the greatest depth of the tree/trees. build a … |
hey there, in Java, I can take a text file and build a two dimensional array out of it. I hope I can do that in PHP as well but I can't seem to be able to do it. these are the specifics of my problem: I have an xml … | |
hey there, I am trying to write a simple script that lets me remove lines from a file. I have an elementet.txt file that contains one-word lines. I thought that if I put the file lines onto an array, and then put back the array elements back on file, excluding … | |
Re: your main method is wrongly written, in the first place. [CODE]public static void main(String[] args)[/CODE] because I find it hard to read through code that uses no indentation I haven't read it all, so you perhaps might have other problems as well. | |
Hey there, seems like this part of DaniWeb is not as active as other parts, but in hope I get an answer, I'm asking. I have this xml file: [CODE] <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="site.xsl"?> <navigation> <link> <name>About</name> <content></content> <target>www.google.com</target> </link> <link> <name>Friends</name> <content></content> <target>www.google.com</target> </link> <link> <name>Archive</name> <content></content> … | |
Re: Hey there, I hope you have solved your problem already. But just in case you haven't, I thought I'd reply. I am very new to XML, but I think you have some problems in your code. You open and close your X12Summary twice within the code. As far as extracting … | |
Re: this sounds like a nice idea. I tried some brief googleing, and turns out that java can be used for this kind of purposes. There even seems to be a java audio to text api, and such. try this and see if you may utilize this for your idea, or … | |
Hey there, I might not be able to accurately describe my problems, but I'll do my best. I am taking these tutorials on adobe website that walks me through building a flex web application. In order to take the tutorials, I needed to previously deploy a war file that sets … | |
Re: I would like to put in my two cents. I took a java class the first time in 2003. I was told in class to use cmd and notepad only. After a week, I dropped the class. I quit my job in 2007 in a bank. I decided I wanted … | |
Re: if you run an applet once via a browser, the browser will remember your applet, and will output what it has in its memory instead of the new version of the applet. therefore, you need to clean your browser's memory to run the new version of your applet if you've … | |
Re: I might be wrong, but I think you should do your research on image recognition instead of pattern recognition, and you might find a solution easier that way. otherwise, I don't know anything about either recognition, just thought I'd give an idea. | |
hey there, I have this java 3D home assignment I need help with. I would greatly appreciate it if someone could direct me to a solution. I need to build create a 3 D digital clock and add some key navigation to it. I managed to add the key navigation … | |
hey there again, I am trying to build a small mechanism that lets me store product names and prices on a produktet.txt file. the file should hold lines as follows: product1 price1 product2 price2 . . productN priceN So, I built a small panel with three rows and one column. … | |
Re: @Ahmed, this last you posted is a little wrong, I think. because, assume the string is a valid one, then according to the way you described in this last post, the count variable should be 4 at the end, not five (if there are six characters, and five of them … | |
hi again, I think I installed Java 3d correctly... I can compile code, but the code won't run. this is the error I am getting: [QUOTE] # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0949c964, pid=3832, tid=3604 # # JRE … | |
Re: try putting the println statement that Norm mentioned inside your paintComponent method, and if you only see one set of values showing in your standard output, what you are actually doing is that you are only drawing a picture with only the last set of values you have calculated. just … | |
Re: by any chance you're using jGRASP? I know that using jGRASP this happens frequently. If so, look for a Run menu on your menu bar, and there you have 'Make this main project' or something... this is of course assuming you are sure you're not adding Resistor... instead of Longitude... … | |
Re: have you picked what language to study? I assume you want java since you posted in a java forum. you can start with [URL="http://www.youtube.com/watch?v=Hl-zzrqQoSE"]this[/URL], or start reading the topmost thread in this forum. | |
Re: your maintextarea variable does not hold anything. just assign it something, I guess new JTextArea(); Eiting: it's null. that's what your error message is telling you. | |
I have this file that contains an instance of some Machine object. When I compile the file I have, it says that the class uses a deprecated API, meaning the Machine object. I tried looking for it in [URL="http://download.oracle.com/javase/6/docs/api/"]this[/URL] link, but I find nothing. I was wondering if anyone who … | |
I have been thinking of making a graphing calculator for practice. However, I do not know how to assign to a variable an expression. What I exactly mean is: let's say x is a variable, and y a function of x. I can just define the function inside the code, … | |
Re: I suspect you are trying to measure the relevancy between two strings based on how many common substrings they have. if so, then you should build a method that extracts the unique parts of each string and saves them in arrays (my first thought), and then, check which array is … ![]() | |
Re: not only is it not a question. it is an advertisement and closer to spam than any question gets. | |
Re: you need an if statement. you need to check if a record held on the array you stored information corresponds to a player that is younger than 25 AND that has a batting average greater or equal to .280. is this of any help? | |
Re: I guess you could have an array that holds 1-9. and, each time a number is typed in your text fields, as long as it is between 1 and 9, inclusive, you set the corresponding value in the initial array I suggested to 0. Every time a user types in … | |
Re: i assume you need to update somewhere your variable i inside your printedges method | |
Re: could be the derivative a function named u. depends on context. if it is calculus, it most likely is the derivative of u. |
The End.