- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 8
- Posts with Upvotes
- 8
- Upvoting Members
- 6
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
50 Posted Topics
| |
Re: Looks good but could save your self a lot of problems if you used classes( other words an OOP(object orianted programming) aproach) but other then that not bad for someone starting out. | |
Re: C++ would be a good language to learn but its a big jump into the deep end (or can be for beginners) i would suggest learning java or c# to start with then once you have learnt that move onto c++. I would suggest that you both learn the same … | |
Re: dont you mean. 01101101 01100101 00100000 01101110 01101111 00100000 01110011 01110000 01100101 01100001 01101011 01101001 01100101 00100000 01100010 01101001 01101110 01100001 01110010 01111001 00101110 00100000 | |
Hi Guys and girls, I'm using a TMonthCalander to display Dates, I'm using the BoldDays method to bold the important days. I have everything working fine when the user changes the month via the TMonthCalander controls. But I can not bold the days when they click a button. I've tried … | |
Hi Guys and girls, I'm trying to save the font settings of my component and load them back in via xml. I have xml working with saving and loading of every property except Font. When I save font its as an integer. But when I load the value back in … | |
Hi DaniWeb, I'm new to delphi and was wondering if it is possible to embed forms inside one another. Example I have several forms working by it self and I want to move them forms onto a new blank form. Rather then copying and pasting the code is there a … | |
Hi I have an app for Android phones. It is working as intended but when I receive a phone call the app is minimised(but still running) and I have to open the app again. I was wondering how do I make it so after the phone call it restores my … | |
Hi Guys and Girls, I'm having some trouble getting a timer to work on my android 2.1 app. I want it so once a button is clicked it trys to connect to my server every 60 seconds. my code for connecting to server is working, but I don't understand why … | |
Hi DaniWeb, I'm currently writing a client server program. I have my client and server sending data and everything fine. But I'm trying to get my client to reconnect. E.g if I get the server to kill the clients connection how can I get the client to realise it is … | |
| |
Hi fellow daniwebs, I was wondering are there any people who play online RPG's not in the sense of WOW or any other MMORPG I mean as in games such as Dungeons and Dragons pen and paper style. If anyone does do they know of a PbP(play by post) group's … | |
Re: what you can do is rather then running the inner loop to the same number as the outer loop get it to stop at half of the outer loop. that way it will not create duplicates or have to waste time comparing if its in list allready e.g [CODE] int … | |
Hi, I currently have a method that is called on a ActionEvent of being clicked. Now I want to call that method from another method. Is there a way to do this with out having to just copy and paste my code into another method and just call that? This … | |
Re: when the down button is pressed increase Y speed untill the collision detection detects it is at the bottom/or touching another block. | |
Re: you dont need to know how they are going to program each feature. imagine you are playing your game. And describe how each feature of the game work. E.g In the bottom of the right hand corner i want a minimap that displays the map and all units and buildings … | |
Re: wow congrats it shows a lot of hard work has gone into making this. I would like to know how easy it is to use and import new models and how well the code is written so like a limited 30 day trial of the engine before i would pay … | |
Hi, I've got a job interview coming up and was wondering if people would be so kind to help me with some revision for the interview. It's it a programming role(surprisingly) so would be greatful if people would post the questions they have been asked or ask in job interviews. … | |
Re: Try making a simple game like naughts and crosses to start with. you might use all of them to start with but its a good bases before moving onto a bigger board game like chess or checkers which would use all of the above. | |
Re: first of all i would look into path finding look at Dijkstra's algorithm or A* to get an understanding on how they could find there way to the objective. now if you wanted them to wander around randomly while also making there way to the objective when you are evaluating … | |
Re: Well the basic tips i can give for making any strat game is start from the bottom. look at what you game is going to consist of...units...buildings etc these are what classes you will need. (assuming its 3d) a model class to load everything a base unit class unit class … | |
Re: [CODE] System.out.println("area = " + area); [/CODE] or you could do [CODE] System.out.print ("area = "); System.out.println (area); [/CODE] Both will achieve the same result. | |
Re: well if you are looking at making craps(gamberling dice game that you described). My tips would be to look into random number generator and how to print text to console. No one will do your work for you, but we will help if you post your attempted code. | |
Hi guys and girls, I've decided to pick up C++ again after not using it for 2 nearly 3 years. I've been programming in java and c# in the mean time so my understanding of programming is very good. I've been trying to make a pack of cards but for … | |
Hi guys and girls(?), I have created a 2d turn based board game game like chess, in java but my problem is that I wanna add some kind of walk through or tutorial system to explain the controls and features of the game. I was wondering if anyone had any … | |
Re: I would suggest you look into an old MMORPG fps game called planet side. it was exactly as you described in your orignal post. a massive fps game with mmo propaties and objectives dependents on the time of day and how active people are. so during the day when people … | |
Re: to find out which pane is selected try using getSelectedIndex() which will tell you which pane is currently selected. try using something like this if you want the code to be ran as soon as that pane has been selected. [CODE] private void jTabbedPane1MouseClicked(java.awt.event.MouseEvent evt) { // TODO add your … | |
Hi guys, I've been looking into reflection and was wondering if anyone had any good tutorials or a good use for it. I understand how it works but can't think of an example of when it would actually be used. A website with a task that needs reflection to solve … | |
Re: no will help you do your assignment for you. if you are stuck post your code and we will help you. | |
Re: private methods can only be accessed by that class and not from another class. public methods can be called from another class. so you can have a public method being called which calls a private method. you can have a private method call a public method. but you cant call … | |
Re: whats the diffrence between having auto complete avaible to you and going to sun website and looking at all the avaible methods in that class? They both achieve the same thing but going to the website will just take a bit longer. | |
Re: 2 days for me when i was at uni this happend quite often but looking at the code after is horrible. i did a code a xbox360 game in 48 hours in a team of 4(3 coders 1 designer). we won the competition and recieved such good credit we wanted … | |
| |
Re: it will return the first element of the list. | |
Re: if you are looking for some tasks to work though that improve problem solving skill and test your abilty to program try [URL="http://projecteuler.net/"]http://projecteuler.net/[/URL] start from the beginning and work your way through there are over 300 now and they start to get hard quickly. | |
Re: use the event when the text field gains focus so when you select it, the text is set to null. [CODE] private void jTextField1FocusGained(java.awt.event.FocusEvent evt) { // TODO add your handling code here: jTextField1.setText(""); //or jTextField1.setText(null); } [/CODE] | |
Hi guys, I'm trying to create a 2D array of JLabels my first problem is actually creating them. my code atm is = [CODE] package test; import java.io.File; import javax.swing.JLabel; import javax.swing.JPanel; public class testing extends javax.swing.JFrame { /** Creates new form testing */ public testing() { initComponents(); for(int i … | |
Re: Gladius33 if you read rapture post before he explains how to solve the problem basicly in psudo code for you. it has also been pointed out that you are on the right tracks with the code you have produced but you are only testing 1st number? what happens if the … | |
Re: I would write the array to a file then load it back in every time the Jar is ran. this might help more since its java rather then c++ [URL="http://www.javapractices.com/topic/TopicAction.do?Id=42"]http://www.javapractices.com/topic/TopicAction.do?Id=42[/URL] Edit: and after inspecting your code closely and relising it is C++ so ignore my comment unless you need it | |
Re: If you are wanting to code a little project in c or c++ you are in the wrong forum this is java, and if you read the forum rules you won't be given code or help unless some effort by yourself is shown. | |
Hi Guys, I'm basicly reading from a CSV File that im using to store data. Now when I read from the CSV file i want to load the data to fill in the parameters eg. the csv file contains name,address,age,favColor. so when i load the file i want it to … | |
Hi there, I'm currently struggerling to come up with a game concept and need some thoughts or ideas. 1)My criterea are that it can't be a graphicle game so needs to be text based or very light on using images. 2)Must be 2D mainly to conincide with point 1 3)my … | |
Re: the way i got round finding out which radio button is selected is to create a method that returns which radio button is selected [CODE] private String RadioSelected() { if(radio1.isSelected() { return radio1.getText(); } if(radio2.isSelected() { return radio2.getText(); } return null; } [/CODE] this is only a good idea if … | |
Hi, I'm trying to use JAVA GUI for first time. I've got a Jframe that when loaded adds a jpanel. the problem is it will not show any swing controls that get added to the jPanel. I'm using netbeans 6.9.1. any idea to why is happerning would be greatful [CODE] … | |
Hi, I'm currently trying to create a program that will log into the web page given to it if supplied with the user name and password. but the problem im having is sending the POST request to the website and then retreiveing the URL it sends back to load in … | |
Hi there I'm writing to a file so that it creates a back log of the data and time i did something. I've got the program so it writes the data that is needed and also the date and time. the problem is if you use the program more then … | |
I currently have a program that takes a URL edits it and then opens IE with the new URL. What I also want is it to log in to that webpage once it is opened, but i cant seem to find a way to interact with the browser so the … | |
Re: if you did a try and catch method of parseing the label text to an integer. so that if it works it performs the operation else it returns a message to the user saying "this is not a number please input numbers only" sudo code try { one = integer.parse(label.gettext()) … |
The End.