101 Posted Topics
Re: What a completely random statement...Why did you even bother posting this? | |
Re: What data are you going to be using and how do you want it stored. It may be that you dont even need a database but can use one of Java's libraries to hold data at runtime and load it from a flat file on load. | |
I am looking into blogging technology, specifically using XML files to hold blog posts and reading them into a webpage using Javascript. I have been looking at the w3schools website for bits of code but for some reason my application does not display the content on the screen. My code … | |
Re: If you want it to convey across all browsers then it may be worth having a look at Javascript, notably the jQuery "Fade" function. You can find the information on it [HERE](http://w3schools.com/jquery/jquery_fade.asp). Hope this helps in some way. | |
Re: Let's just hope there aren't any teeanage boys replying to this thread...the results could be worrying to say the least :) | |
Re: 1. Be the first person on a planet other than earth 2. Know how the universe started 3. I want a nice new road bike (Pinarello Dogma 2 with Di2 Dura-ace groupset, Zipp 404 wheels and an o-symmetric crankset....if anyone is feeling generous) | |
Re: to return an ArrayList you just have to have your return type as arraylist private ArrayList<Student> getStudent(){ ArrayList<Student> myArrayList = new ArrayList<Student>(); return myArrayList; } as an example | |
Re: For the date use the `Date.Today()` function. To take the date from the format dd/mm/yyyy and put it in the form ddmmyyyy you will need to build a new string like this `Date.Today.Day & Date.Today.Month & Date.Today.Year` To check if a file exists you need to use the `System.IO.File.Exists(path)` function … | |
Re: The way I have been taught is to include a constructor method which initates any variables when the object is invoked: package allin1; import javax.swing.*; import java.awt.event.*; import java.awt.*; public class Allin1 { JFrame frame; JPanel panel; JButton b1; /** * This is our constructor * This method is executed … | |
Re: I guess it depends what company you work for and what your position is. For instance if you were working for a government security company such as Mi5 or the FBI then it should come as no suprise that they are tracking you. If, however, you are working for a … | |
Re: To take user input you need to use the java.awt.event, Then create an action listener to handle any user interaction. | |
Does a Java applet have to contain a "main" method or does it run from the "init()" method. I have written a small game in java following and example in a book however it does not tell you how to run the damn thing. Code has no erros from what … | |
Re: > What are the steps for doing that? What NormR1 is saying that you need to think through each step you take when you try to solve a sodoku. The write down each step in it's simplest terms e.g. "Look at row" -> "does row contain each number 1 - … | |
Ok so im writing a small java application using Zellers Algorithm to work out the day of the week for a given date. I have never compiled a java program before because i'm still moderately new to the language and IDE's etc. I am using netbeans. I have tried to … | |
Re: Have a look into Requirements Engineering on places like [Google Scholar](http://scholar.google.co.uk/schhp?hl=en-GB) . This will help you look at systems from more of a technical view. Once you;ve managed to understand how to think from the point of view of data movement you will find it a bit easier to start … | |
Re: I've been taught that it's better practice to initialise the variables to default values in the constructor. I don't think it matters with reference to speed but it may cause trouble when others read your code. | |
Re: Cool little survey....never heard of F# before. Is it commonly used and if so what for? | |
Re: for(int i=0; i < string.length; i++){ System.out.println(string.charAt(i)); } something like that. Basically it loops through the string and prints each character to the console. Giving: 1 5 0 | |
Re: I'd recommend using an array to create a grid on the screen. Then you can assign each cell a value. This value determines which bitmap is displayed in the cell. e.g. If we assign the value 1 to door.jpg and then say (3,2) = 1 The system then paints the … | |
Re: Your going to have to give some more information as it's not clear what you are trying to achieve here | |
Re: the problem with using javax.swing is that compared the the awt its slower because your referring to java specific locations. If your looking at basic mechanics then using a constant downward acceleration of 9.81 (as we have on earth) will work. So whenever you jump you need an initial velocity … | |
Re: I dont understand why you are using a loop to tie up the system. you should use an event to trigger the purchase rather than keep looping. | |
Re: First of all the main class should have "`package assignment9;`" at the top. You seem to have invoked the *`FlightSchedule`* class in you main class with "*schedule*" as the identfier and then set this to "*null*" in your constructor. To use a method in the *`FlightSchedule`* class you need to … | |
Re: If you invoke a JFrame object in the start of your code you may be able to refer to the identifier later on. JFrame newFrame = new JFrame(); newFrame.setSize(x,y); newFrame.setDefaulCloseOperation(JFrame.EXIT_ON_CLOSE); newFrame.setTitle("My Frame"); etc etc.... //Later on go back the the newFrame identifier newFrame.setTitle("Company name"); Just an idea. | |
Re: It all depends how advanced your knowledge of computers is....it's not all about the programming language, to be able to program well you need to understand what the computer is doing with the data. For an real beginner, I would recommend going to your local book store/amazon and finding a … | |
Re: I personally think that socialogical systems like communism and socialism would work very well....but only in a perfect society. This is where their fundamental floor lies. The fact that it's human nature to want, means that any full implementation of these systems will fail. Saying that, many democracies such as … | |
Re: If it's a link then all you have to do is write it to the database as a string *("C:\folder\image.jpg")*. So you add a field called "imgLocation" or something and then write the link to that field. If this doesn't help then reply with more information such as an exemplar … | |
Re: Depends on what you want to do in the near future. You can learn all of these technologies at any point in your career, however you have to think about what you want to do next, it networks then do cisco, databases then oracle and if you want to become … | |
Re: What sort of projects? Game Design? Database? .... theres a lot of type of software about | |
Re: Right there are 2 ways of doing this. The first way is to use two If statements as follows: If a >= 0 Then If a <= 100 Then 'do something End If End If The other method which uses fewer lines of code is to include an AND statement: … | |
On holiday, I foolishly forgot that my Iphone 4 was in my pocket and went swimming with it in the hotel pool. I was in the water for about 30 minutes before I realised. When I realised, I left it to dry (it was between 30 and 35 degrees in … | |
Re: Personally I would learn some java as you can write a .jar file and import it directly into a web page to run. It gives you good functionality and its not too hard to pick up. Definately would recomment getting some books on java though because when you first start … | |
Re: Depending on how complex the site is, it may be worth just learning basic HTML and CSS. I learnt this in an afternoon and the next day managed to program a basic website. It's not that difficult. If its more complex then its probably easier to find some video tutorials … | |
Ok so basically I want to know how I can paint multiple items to the screen without using all of my laptop CPU power. I was thinking that it may be possible to arrange the items as a bitmap and then paint that bitmap to the screen but im not … | |
Re: So are you basically creating an attendance register? | |
Re: Shiinko if your new to web development, I would recommend reading about liquid layouts. A key feature for most web pages and it will help you with positioning problems etc. | |
Re: It would probably be easier to write a file on the users computer which stores the information about the first time the software was run. Then on each loadup, check this file to see if 30 days have passed. If they have then lock the program. Not too hard to … | |
Re: Try removing the parenthese () from each "Next" statement. | |
Re: You need to let us know what the problem is and possibly post your code here in order to obtain help | |
Re: It looks to me like your using Microsoft Access and are refering to a form in the context of Access which is VBscript (similar to vb6) not VB.NET. If im right you might want to try either the "Database" forum or the "Visual Basic 4/5/6" forum. | |
Re: Hate to tell you this guys, but this is a forum set up to help people learn to program. It doesn't matter if they are still on the basics, you should still help....and if you don't want to help then don't reply!! fRodzet, to add numbers you just have to … | |
Re: You need to create a network connection between the two clients (you and your friend). The most commonly way to do this in VB.NET is to use a communication protocol called TCP. Have a search for "VB.NET TCP NETWORKING" and see what it throws up. | |
Re: Try typing in "msconfig" to the Start bar's search. It should open a small window. Click on the startup tab. This has all the programs that load when you turn your computer on. If you find the applications such as "facebook messenger" etc and uncheck them, they will not load … | |
Re: I have a HP laptop and I noticed the same thing. Try using headphones, if they work then the headphone socket is loose which prevents the speakers from working. This can usually be solved by giving the socket a little push inwards either with a finger or a headphone jack. | |
Re: I would say you need to ensure that you understand *how* to code rather than an actual language. Once you have the programming principals nailed, its just a matter or implementing them on a different language. Personally, I would recommend C as most modern languages are derived in some way … | |
Re: Don't know if this will work for you but you could try creating a loop after the program has logged in which checks to see if 2 seconds has passed using the *timeofday.second* function. Once you log in, the current second is set. You then check this variable to see … | |
Re: Try this Private Sub TextBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown 'KeyDown switch Select Case e.KeyCode Case Keys.Enter 'Is the textbox not null If TextBox1.Text <> Nothing Then 'EXECUTE INSTRUCTIONS End If End Select End Sub If there's anything you want clarified just post a reply. | |
Re: Im confused. Is the thumbnail a picture of your program or is that what you want to achieve? Also are you using a random integer generator to create the values? | |
Re: try this [CODE]public sub ListFiles() 'DIR for folder 'add each file to ListBox control For each file as string in IO.directory.getfiles(Folder Path) Listbox.items.Add(file) next End Sub[/CODE] |
The End.