Search Results

Showing results 1 to 40 of 280
Search took 0.03 seconds.
Search: Posts Made By: joshmo
Forum: Java Jul 23rd, 2009
Replies: 6
Views: 482
Posted By joshmo
I am not quite farmiliar with database programing in Java. But what does ResultSet return? If it is a path then you would need to include that path in the "image.jpg" area to get the image as in...
Forum: Java Jul 22nd, 2009
Replies: 6
Views: 482
Posted By joshmo
Well you could start by this, assuming the image is in the same folder, or you can always add the path

JLabel imageLabel=new JLabel(new ImageIcon("image.*extension*"));...
Forum: Java Jul 8th, 2009
Replies: 1
Views: 154
Posted By joshmo
I would like to know how one can make an installer, which I believe is supposed to copy needed files for an apllication to run to somewhere on the PC. I have read about how to make .jar files, and...
Forum: Java Jun 27th, 2009
Replies: 6
Views: 398
Posted By joshmo
thanks for the replies...got it working now
Forum: Java Jun 26th, 2009
Replies: 6
Views: 398
Posted By joshmo
I dont get what you mean by class4.setclass2(class2) Is setclass a reserved method or something or is there something I didnt quite understand
Forum: Java Jun 26th, 2009
Replies: 6
Views: 398
Posted By joshmo
thanks..managed to debug the code. However, I have another problem with using class objects. I have 2 classes, which need objects if each other..however, I cant seem to find a way of making this...
Forum: Java Jun 25th, 2009
Replies: 6
Views: 398
Posted By joshmo
I have a code that calls a method, but after this call, any code after it is not executed....here is the method call skeleton

if(//some condition){
//some code
myMethod(//some variables);...
Forum: Java Jun 23rd, 2009
Replies: 2
Views: 260
Posted By joshmo
thanks...checking it out
Forum: Java Jun 23rd, 2009
Replies: 2
Views: 260
Posted By joshmo
Hello. I have come across a null pointer exception in my code. I understand this is got if there is no class/method/variable being referred to but in my case, I have a method in another class that is...
Forum: Java Jun 15th, 2009
Replies: 6
Views: 585
Posted By joshmo
Basically i want to compare images, say image one has only a background, image 2 has the same background plus something in the foreground foreground image, and maybe the third image is slightly...
Forum: Java Jun 15th, 2009
Replies: 6
Views: 585
Posted By joshmo
have been, for the past few weeks trying to figure out how I can compare images. From my experience in what I have been working on, I know it is almost impossible to compare two images and get a 100%...
Forum: Java May 28th, 2009
Replies: 6
Views: 569
Posted By joshmo
Ofcourse I can get to understand the logic..What I want to know is how i can get, say a given equation to integrate or differentiate a number, then change that logic, to JAVA code..is there any...
Forum: Java May 27th, 2009
Replies: 6
Views: 569
Posted By joshmo
hello. I would like to know how I can make out a Java code from a given mathematical equation like differentiation equations, summation and integration
Forum: Java May 27th, 2009
Replies: 2
Views: 237
Posted By joshmo
sorry about that...I was trying to use a JComponent instead of Component since the getVisiaualComponent() method is not availble with JComponent...PS these are two diffrerent problems
prob 1- using...
Forum: Java May 27th, 2009
Replies: 2
Views: 237
Posted By joshmo
Iam using an AWT component. Did a little research but cannot find anyway I can make my player return a JComponent..tried this casting but Iam getting an exception at the line.
((com =...
Forum: Java Apr 4th, 2009
Replies: 1
Views: 457
Posted By joshmo
I have two .java files and I want to access a variable of a method in one of the files and use it in another. However, I dont want to call the whole method and I dont want the method to return a...
Forum: Java Mar 23rd, 2009
Replies: 0
Views: 229
Posted By joshmo
I have recently encoutered an error that I have failed to figure out while trying to implement something in MVC. I have used a similar code on another program which seems to work but I cant figure...
Forum: C++ Mar 2nd, 2009
Replies: 1
Views: 252
Posted By joshmo
I didnt know where to post this but i hope this is the right place. I was wondering how a code in c++ can be used in or with java. i.e if I decided to write a code in C++ that performs processing and...
Forum: Oracle Nov 16th, 2008
Replies: 4
Views: 1,505
Posted By joshmo
I have written my simple query using update and in a file with a .sql extension. However, I cant seem to update my table and yet at the end of the input it shows me 1 row updated I would also want to...
Forum: Java Nov 9th, 2008
Replies: 20
Views: 1,514
Posted By joshmo
Am sorry but am not getting this at all. I understand what you are saying and that is what I had in mind. But the details I want to store are in another method. So I dont know how to go about it. I...
Forum: Java Nov 8th, 2008
Replies: 20
Views: 1,514
Posted By joshmo
I dont think the above does the trick. It looks like it gets the X and Y points and also their attributes maybe. What I want to do is after you get the X and Y points say (1,2), get user input and...
Forum: Java Nov 7th, 2008
Replies: 20
Views: 1,514
Posted By joshmo
That is how I get the problem. X and Y are input by the user in one method with attributes. What I want to do is to be able to prompt the user from another method for coordinates x,y and then display...
Forum: Java Nov 7th, 2008
Replies: 20
Views: 1,514
Posted By joshmo
I managed to figure out the array problem. Thanks alot. However, I now want to solve something different. I want a user to enter x and y values to get the details in those coordinates. I have created...
Forum: Java Nov 1st, 2008
Replies: 20
Views: 1,514
Posted By joshmo
The above post is all in one class and not in different classes like I had wanted. Anyway I have done something and the code puts the mark where I want it to be. However, on a second loop to check if...
Forum: Java Oct 29th, 2008
Replies: 20
Views: 1,514
Posted By joshmo
Well the whole assignment is about a level of a game but at the moment I would only appreciate help with the array part and try to figure out the rest.

First Class- I am trying to initialize an...
Forum: Java Oct 29th, 2008
Replies: 20
Views: 1,514
Posted By joshmo
Like I had earlier mentioned this was just a draft code to show what I wanted to do and not the original one. Thank you for the suggestion on the array but I cant seem to figure out how to go about...
Forum: Java Oct 28th, 2008
Replies: 20
Views: 1,514
Posted By joshmo
I have posted an edited version of the original code. It compiles and runs and is evident of what I am trying to do. Please Ignore any inconsistancies or anything concerning classes and help out on...
Forum: Java Oct 28th, 2008
Replies: 20
Views: 1,514
Posted By joshmo
I figured out on how to make the arrays work but I cant seem to find out why the values that have been stored in an array in a specific method cannot be seen in another. Maybe I just didnt get it...
Forum: Java Oct 27th, 2008
Replies: 20
Views: 1,514
Posted By joshmo
The post was clear but I have managed to figure it out anyway. Thanks
Forum: Java Oct 27th, 2008
Replies: 20
Views: 1,514
Posted By joshmo
I have got two arrays. One for initializing and another for displaying. The display array always shows nothing if the initializing array has not been called. The problem now though is that if I want...
Forum: Java Oct 27th, 2008
Replies: 2
Views: 1,152
Posted By joshmo
yep. that helped.. thanks
Forum: Java Oct 27th, 2008
Replies: 2
Views: 1,152
Posted By joshmo
Hey all. I would like to find out how i can access/ get the value of a variable in a different class. this is part of the code which shows what I was trying to do.

public class A{

protected...
Forum: Java Oct 26th, 2008
Replies: 3
Views: 619
Posted By joshmo
I couldnt post the whole code that is why i posted just part of it. Could you please explain to me the use of something like "arr.length" in the program?
Forum: Java Oct 26th, 2008
Replies: 3
Views: 619
Posted By joshmo
I was reading a tutorial about 2D arrays and I decided to construct something. I managed to construct something but when I compile I get "null" as my output. I cant seem to figure out the problem....
Forum: Java Oct 22nd, 2008
Replies: 10
Views: 873
Posted By joshmo
the variable q is not declared in the class A and I dont want to declare it. Is there anyway this can be done? I tried that and it says "non-static variable cannot be referenced from a static...
Forum: Java Oct 22nd, 2008
Replies: 10
Views: 873
Posted By joshmo
Sorry I didnt mention that assuming all the set and get methods are in place. Oh and the q in class C is public not private. Is there a way i can use this q in the class A?
Forum: Java Oct 22nd, 2008
Replies: 10
Views: 873
Posted By joshmo
Hey all. I have another problem with classes. I have 3 classes A, B and C. B extends C and class A is where objects from B and C will be used. Below is the syntax of what am trying to say

class A{...
Forum: Java Oct 21st, 2008
Replies: 13
Views: 1,973
Posted By joshmo
well like I said am just tryna learn and satisfy my ego.
Forum: Java Oct 21st, 2008
Replies: 13
Views: 1,973
Posted By joshmo
Yep. That is what I was looking for. Thanks alot
Forum: Java Oct 21st, 2008
Replies: 13
Views: 1,973
Posted By joshmo
That is not it. I want A to be able to use a method in B..Is that possible
Showing results 1 to 40 of 280

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC