754 Posted Topics
Most web forums will state next to each board how many threads or posts have been been. Would you calculate that with a query for each board to count the number of "post" entries in the table for that board, or simply increment a number in the board table whenever … | |
Re: Quick and dirty example: [code] <div style="float:right;"> form fields go here </div> [/code] The key is the "float" attribute. Just play around with width/height to get what you want exactly. | |
Re: I would probably create a single table for Units and give a unique ID to each truck and equipment. The ID would be a SKU built from a pre-defined set of rules describing how it's formed. For example, every truck ID would be prefixed with a [B]T[/B], and equipment could … | |
Re: Here's how you'd create a list: [code] <select name="jlist" onlick="function()" size="3"> <option value="A">Item A</option> <option value="B">Item B</option> <option value="C">Item C</option> </select> [/code] You can only return whatever value you have in the double quotes, but you can use that information to retrieve a specific class if you need. Write a … | |
Re: You can't get the code, an applet is compiled. And from the names in the code there, I'm guessing it has something to do with fourier transforms? | |
Re: Try to code the routine yourself. Should you get stuck, ask specific questions and we WILL help you. But simply asking to write it for you just isn't going to happen. | |
Re: > Hey need lots of help on arrays! > > this is the exercise... > > 1) Write a Java application that creates an array of int initialised with the following numbers: 1 4 9 16 17 21 25 33 37 40 > and reverses the contents of the array … | |
Re: Ok, so you were able to post your homework, but how about explaining what the problem is you're having? | |
Re: I'm already working on a similar project myself because I hate myspace with a passion. Frankly, I don't understand how myspace has become so popular. I have never seen a website with so many broken "features" that don't even stay consistent among other users. I'm still designing the structure of … | |
Re: The only 3D I ever thought was a nice feature for websites was for real-estate; virtual tours through homes. A 3D store sounds like something I probably would've used VRML for. Does anyone even use vrml anymore? | |
I installed php (4 i think) and added the extension to iis. When I try to view a php file through the web browser, I get the following error: [quote] [b]CGI Error[/b] The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did … | |
Re: Search for tutorials on using Sockets and SocketServers. I'd give you a link to one I have bookmarked but I seem to currently be locked out of my own desktop. | |
Re: nevermind this post. The thread didn't show me there were any replies on the page before I responded. | |
Re: Not entirely sure what you mean. Is the image left-aligned within photoshop? Or is it left-aligned in your web browser? If the latter, I'm guessing you used adobe's html export? | |
Re: Are you using iTunes on Windows? Did you run the example script that is suppose to get iTunes playing songs? JACOB files in the correct locations? | |
Re: This method would take the ball's coordinates from its center, its radius, and a Block object. It'll return true if they're overlapping. [code] public boolean overlap(int bx, int by, int radius, Block block) { int x1 = block.getX(); int y1 = block.getY(); int x2 = block.getX() + 30; int y2 … | |
Re: Here's some info on the binary search. [url="http://www.tbray.org/ongoing/When/200x/2003/03/22/Binary"]http://www.tbray.org/ongoing/When/200x/2003/03/22/Binary[/url] | |
Re: I installed XP for a friend, legit copy of my own. However, I did not feel like going though the activation hassle so I used a registration crack. After upgrading to SP2, the crack no longer worked for him. I told him to just put his 2kpro back on. | |
Re: Only way I'm aware of is to either use frames or update the containers' content dynamically. | |
Re: Does you question have anything to do with Java? 'Cause javascript and html have nothing to do with Java. | |
Re: This all depends entirely on where your usernames are stored. In a database? A file? Hard-coded?(better not be) Open the Java API docs and review the contructors for JComboBox (assuming you plan to use the Swing framework) and that'll give you some ideas on how to add usernames to the … | |
Re: Did you include the proper package? | |
Re: So you're saying the field 'stl' can be like 1 or 2 or 3 or 4 instead of where is was only like 1 before? Couldn't you group several like statements with OR? [code="mysql"] ((stl like '$st1') OR (stl like '$st2') OR(stl like '$st3')) [/code] I might be missing what … | |
Re: So what's holding you back from doing it? I'm guessing you need help on parsing the initial string? | |
Re: I would do something like this: [code="java"] if (!(option == JOptionPane.YES_OPTION)) stop = true; [/code] I have no idea what the values are for the constants, so always better to use the constant name rather than a value like '1'. | |
Re: You can do an editor and sequencer in java, but be prepared for many headaches. | |
Re: I know you can access the registry from command line, I had to do that with Basic awhile ago. This only helps in reading the registry as far as I know, if you need to write to it you'll need to look for another solution. Registry command line [URL="http://www.computerhope.com/issues/ch000848.htm"]http://www.computerhope.com/issues/ch000848.htm[/URL] | |
I need to create table with expandable rows. Each row in the table can be expanded to display a secondary row. While I have managed this in the past for other projects, this problem is slightly unique. For the rows that are always visible, I want them to be only … | |
Re: You want an HTML/CSS forum. Your question still makes little sense, what is this "hover" feature? Do you mean your background changes color when you hover your mouse over it? To override a hover effect you have to set the proper CSS code. If it's a myspace default effect that … | |
Re: I don't know what your "getThePage()" method looks like. I'm assuming you're trying to listen for the ENTER key? Add a KeyListener to the text field. To set the page, look at the following method in the Java docs: JEditorPane.setPage(URL page) | |
Re: Recalculate the price after a selection change. [code="java"] public void valueChanged(ListSelectionEvent evt){ if (!evt.getValueIsAdjusting()){ price = basePrice; if (evt.getSource() instanceof JList){ JList list = (JList)evt.getSource(); for(Object value : list.getSelectedValues()){ //price += value; } } } } [/code] | |
Re: Your teacher told you to make a game but hasn't covered methods and classes? Or do you think you just need to ask your teacher for help? Nobody here is going to do your homework when you haven't even tried in the slightest. | |
Re: These might help you solve your equations: [url]http://www.mathreference.com/la-det,simeq.html[/url] [url]http://www.themathpage.com/alg/simultaneous-equations-3.htm[/url] They explain the method, or "formula" for what you want. All you have to do is implement it. | |
Re: Platform games are generally tile-based. So use a 2D array to store your map tiles. You only draw the tiles that are visible within the viewport (what the play can see on the screen). You'd basically have a map pointer that keeps track of what position in the map data … | |
Re: I know sql is more for server-client databases, and I think access is for personal databases. So it would depend on what you need your database to do and how it is interacted with. | |
Re: Take a modular approach to your challenges. Start with a basic map of just some cubes to represent the world. Build your collision system. Once your character manages to stop walking through walls, add buildings it can walk into. Then work on a "trigger" system, as in setting up specific … | |
Re: Final thesis? Should you then be writing the code yourself? | |
Re: Read through this (assuming a GroupBox is what I think it is): [url]http://java.sun.com/docs/books/tutorial/uiswing/components/border.html[/url] | |
Re: I'm assuming you're talking about adding columns to a JTable? Check out the methods in the DefaultTableModel class. | |
Re: We don't know what you're building, you're going to have to do a much better job at explaining what you're trying to do. | |
Re: by default they should be displaying inline, unless the container's width can't fit them that way. Let's see the code where the images are being called | |
Nevermind, I'm a retard. I had phpMyAdmin opened to the live server, not the testing server which is still empty. I need a drink. | |
Re: [url="http://bluej.org/"]http://bluej.org/[/url]I think that's the most simple ide I've used. Currently, I have to use TextPad in school. It's quite annoying to see a school using TextPad and not even having paid for it. So every hour I get a little "buy me now" reminder. Cheap school. But TextPad is about … | |
The first thing at the start of every page is "session_start()". Next, each page has the following code. The 'loggedIn' session variable was initialized to 0 with a require_once call of another script. When you log in, the page that did the check will show the login is successful, but … | |
Re: Where are you getting lost at ? | |
Re: DarkBasic, if you're new to programming, is a great starting point. I've been involved with it for about 8-9 years now. It's more powerful than people will give it credit for. There have been at least 1 or 2 games made in DB that have made it to store shelves. … | |
Re: Select the first option. It should then ask if you wish to try to recover a current installation. Don't choose the recovery "console", that's for lots of manual operations that you don't want to bother with. The recovery will reinstall all the system files and leave anything else on the … | |
Re: Well here's the api docs for JAI if thats what you wanted: [url]http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/index.html[/url] JAI is the only library I know for this, unless you write your own comparison method. | |
Re: Found this, not sure if its quite what you want or not. [url]http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#validtext[/url] |
The End.