- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 7
- Posts with Upvotes
- 7
- Upvoting Members
- 6
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 1
95 Posted Topics
Re: [QUOTE=dixit ankit;1287792]Hi everybody!! I want to make a vehivle license plate recognition system in java but dont have any idea how to implement it in java.If anyone could give me link to how use java for image processing,it would be of great help Waiting for reply[/QUOTE] Hello there, What your … | |
Re: [QUOTE=litchi;1166299]Hi :) Is it better to have a one file program (ex. MyProgram.class) or a multiple file one (ex. Main.class and Gui.class and Draw.class)? thx[/QUOTE] Well i think that it may be a matter of opinion. Some people find working with one big class easier than working with numerous smaller … | |
Hello all - been awhile since I've been on here :P My brother recently upgraded an Inspiron 1525 from XP to Vista to Windows 7 (32bit) Home Premium. The installation went smoothly but now the laptop cannot access the internet. It can see the various wireless networks in the vicinity … | |
Hi all, Been a long time since i last posted on this forum :P For a little while I have been curious about data recovery programs for the mac; by that I mean actually creating one from scratch. I know that this isn't the best area to post this question … | |
Hi Im trying to download "Wines" for Linux Mint which has just been newly installed onto my old laptop. I cant seem to get it to run. I went to [URL="http://www.winehq.org/download/"]http://www.winehq.org/download/[/URL] and followed the steps under the "Ubuntu Packages." I got this error message "Could not download all repository indexes, … | |
Re: [QUOTE=AhmedGhazey;1313871]Hello I'm writing java code read arabic character but it don't show the text correctly it show squares Any one Can help me any help will be appreciated Thanks Yours Ahmed Ghazey[/QUOTE] Can I see your code please? | |
Hi, im trying to create a GUI which will house a BST. When the user enters a number and clicks add, it should display that number as a leaf in a BST. It then adds each consecutive leaf onto the last to create the BST. My problem is actually getting … | |
Hi - quick question, if I have Windows XP 32bit running on a computer can you upgrade to Windows 7 64bit Ultimate just by buying the Upgrade package from a site? Or do you need, say a basic version of Windows 7 before you upgrade? | |
Hi - Im creating the game "Tanks" for the fun of it. Im fine with creating and adding the images and other inner game workings but I have digressed abit and have encountered a problem. The problem is this: I have painted the tank image to the panel but wanted … | |
Im trying to install Windows XP Pro onto my old laptop which is currently running Linux Mint. Shortly after i insert the CD it tell me that: "Setup did not find any hard disk drives installed in your computer." I did't replace the HDD or move it; I didn't do … | |
Re: This may get you started on the java side [URL="http://java.sun.com/developer/technicalArticles/J2SE/Desktop/new_tech/"]http://java.sun.com/developer/technicalArticles/J2SE/Desktop/new_tech/[/URL] Hope this helps :P | |
Re: Hello & welcome to Dani Web. Your text file is very long; you can't possibly expect someone to read through it can you? If you want to count something in a text file, like the number of nodes, then you need to first read the text file. You would then … | |
Re: Do you get a recognised qualification at the end of it? If not then I would say no, as you can learn pretty much everything about java online; through tutorials and webpage content. | |
Hello all, Im having a problem using the Timer class. In one class it works fine but in the other; though I do the exact same thing, it doesn't work. I know that the constructor for the Timer class allows no parameters and with parameters, as the other classes uses … | |
Re: Java Newbie or not no one will or should help you on this forum unless you show that you have at least attempted to complete the program yourself. There are plenty of tutorials out there that demonstrate how to do both those things. | |
Re: Your recursion method doesn't have any parameters therefore it isn't actually recursive. Recursive methods have a base case which ends the program, usually an if statement whereas the else statement which follows it performs some action and then adds the result to itself, for example: [CODE] public static void myMethod( … | |
Hello - I've used a for loop to fill an array of JButtons with text. Each JButton contains a letter of the alphabet. I've been successful in doing this and adding each button to a panel I created. But my problem is that I've tried, unsuccessfully, to add ActionListener's to … ![]() | |
Re: I don't believe that you should hard-code positions of buttons onto frame's or panels unless you are somehow required to. You should ideally use a layout manager or combination of them to structure your frame - Can you briefly tell me how you want the buttons to be arranged without … | |
![]() | Re: Yes mate you can, but it would require some tweaking to your code. I'll add an example. Say you create an array of integers and you wanted to print all the values of the array how would you do it? Use a for loop. The logic is the same to … ![]() |
Re: Well to get the average of something you divide by the total number of items and then multiply by 100 to convert to a percentage. You haven't told us what criteria your using to split the grades though. | |
Re: I realise you say it isn't printing it out correctly but have you worked through your logic manually yet? P.S. What exactly are turtle graphics? | |
Re: If you want to align components properly you have a couple of options. Let's say you just want to use the one panel set on top of a frame. You could set the layout of the panel to GridBagLayout and specify exactly where you want each button to be, its … | |
Re: Hello - I took your updated program and checked it and I get several errors before compiling. First of all in the main method, fahrenheit, num1 and celsius aren't initialised, therefore when you call the first if statement you are asking: if num( num is equal to one) is equal … | |
Im aware of the different data types in java but say if one wanted to have two different types of data in a single array; integer and string, would this be possible? Im aware that java can have an array of each type but I stumbled upon using this and … | |
Re: [QUOTE=boifang;1466102][CODE]class MOrders { int nooforders; // Data members of the class public int getorder() { nooforders = 500; } public void displayorders() { System.out.println("The number of orders to be delivered: "+ nooforders); } public static void main(String args[]) { MOrders obj = new MOrders (); obj.getorder(); obj.displayorders(); }[/CODE] getting a … | |
Re: Perhaps this website may help you: [URL="http://beginwithjava.blogspot.com/2010/08/simple-collision-detection-in-java.html"]http://beginwithjava.blogspot.com/2010/08/simple-collision-detection-in-java.html[/URL] Good Luck | |
Re: Welcome to the forum mate! As will be mentioned to you place all your coding inside the code brackets for readability purpose. Have you tried out the for loop you have above? Is line in that for loop equal to 5? You haven't specified so lets assume it is. That … | |
Hi all - I have a Macbook Pro and Im happy enough with the Mac OS but Im interested in installing Windows onto my Macbook - think of it as being best of both worlds. I have read many reviews on "Mac or PC" but am still in two minds … | |
Re: [QUOTE=WolfShield;1444690]Let's say that I have a file: 'mainGUI.java' and I want to, from a menu item, open another GUI file: 'tutorialGUI.java'. What would the code be to preform this? Thanks everyone! -[b][i]WolfShield[/i][/b][/QUOTE] Do you mean you want to open the file and view the code? Or do you want to … | |
Hello - just downloaded this new application to control my fan speed for my Macbook Pro as I noticed its temperature sky rocketing sometimes for seemingly no reason. My question is does smcFanControl update the temperature display at the top of the screen automatically on a Mac? | |
Re: I agree with jon - though you need to make sure you store your file in the correct place or you will get an error, for example I use Eclipse so I'd store it in the same project or package as the class your working in. As regards to the … | |
Hello - quick question, I have created a method which prints a chosen symbol multiple times: - User enters 5 - Print this: ***** **** *** ** * I'm aware of recursion and know how to use it, my method uses it to do the above but I also use … | |
Re: Here are some steps: Declare a variable of type integer and initialise it to 0 Look up the structure of a for loop and change one of the numbers to 1000. You will also have to play with the operators too to make sure it only goes up to 1000. … | |
Hello - I have created a program which calculates the value of PI. All the calculations work well but the aim of the program is to get the user to input a number - say 7 and my program will print the value of PI to 7 decimal places. I … | |
Hi - I'm making a program to calculate PI to n number of decimal places, the calculations are all going fine and now I want to combine values from two arrays into one 2D array for quick reference. I'm a-little confused on how to do this. It should go like … | |
Re: Hello - welcome to the forum. You will be told if you keep posting questions like this that we don't do your homework for you, you need to post code to demonstrate your own effort. But I'll give you a point in the right direction - assuming that you don't … | |
Re: Your pretty much there if you are able to move the alien up and down. In order to move it left you just need to decrease the x variable when pressed relative to when pressed right. Here is an example I made a while ago: [CODE] if (key == KeyEvent.VK_LEFT) … | |
Re: Hello - Im not exactly sure what you want to do. You say you want the actionListener() contents to be shown? You also say that you want a new window to appear - to do that you should just create a new JFrame and in that you can add buttons … | |
Re: hi mate - it seems to be that the method ticketstatus() is the problem. What value do you assign to fine or do you ask for user-input? | |
Yo - im making an animation which draws a string to a panel and moves it once the class is loaded. This all works fine but I want to change the colour of the string to white, the background will be black by the way, as well as make it … | |
Hi guys - quick question I have created a class that creates an array of JButtons and places them onto the panel. That all works well but what I want is for the panel, placed on a frame container, to resize to fit the amount of buttons added. The total … | |
Re: [QUOTE=jems5;1355764]Ouch Norm1! I feel I am being chastised for asking the question. I need help doing just what you are suggesting. You have helped me in the past and believe me when I tell you I am learing as I am very new to the subject. When I use the … | |
Re: I haven't read your entire post but first off you need to post code inside the code tags and also you will be probably get someone telling you that they won't do your homework for you and that you need to do some work before they offer their advice. I … | |
Re: Hi mate - i used to have the same problem with images. However I think I have got them worked out now. Say you want to load an image onto a panel - you can either create a JLabel and add the icon to the label or you can paint … | |
Re: Hello - nice to see that you solved your code however you could condense this abit and still use no imports. Here's the code: [CODE] public static void reverseStringTakeTwo( String line ) { // 'input.split("")' splits the string into an array, therefore each character inhabits a position in the array … | |
Hi - Im making a small and relatively simple game that use's the common feature of the scoreboard to keep track of the user's score. I have declared the main game frame in one class, the actual game on one panel in another and have decided to keep the scoreboard … | |
Re: [QUOTE=patishere;1350808]how to randomize JLabel array? and how to put image in JLabel array?[/QUOTE] Define what you want to do abit more clearly please? What do you mean by "randomize a JLabel array" ? Also do you want an image to be displayed with a JLabel? Is that right? | |
Hello, I just installed a new 320GB hard drive into one of my laptops - an Acer Aspire 5920G. I decided to install Linux Mint 8 onto it, downloaded onto a CD burnt from my mac. However when I looked at the "System Monitor" and went to "System" it said … | |
Hi, just started using Xcode to code C programs. Im trying to create multiple programs in the same source folder but Im getting an error message. When i select 'File' -> 'New File' -> '.C File' I can create the file fine: it creates the .c program and a header … |
The End.