754 Posted Topics
Re: If the old harddrive shows up, then this sounds like your new hdd is bad. Do you have another machine you can try the drive in? | |
Re: How many other forums did you post this question on? I believe you got several responses on JB already, if you haven't checked yet. p.s. You should capitalize your class names. | |
Re: the KeyEvent would state any modifiers on the key. a modifier would be something like a shift or control key. | |
Re: This might help, too. [url="http://www.phpfreaks.com/tutorials/105/0.php"]http://www.phpfreaks.com/tutorials/105/0.php[/url] | |
Re: Here's some tips. Represent the total amount of money in cents. Represent the $20,$5,$10,$1 in cents as well. Start with the largest denomination you need to find, $20, and work down from there. Use modulus. $20 = 2,000 cents $56.73 = 5,673 cents It'll be easier working with the whole … | |
Re: next time, use the CODE tags please. I don't see anything where you tried to solve this yet. But anyway, what you could is store the 5 vowels into an ArrayList. Then loop through each Character in your string and see if it's contained within the array. If it is, … ![]() | |
Re: Well for your second link at pccyber, I saw the ram you listed for: $254 This is what I found for $341, registered memory(which I dont think you want): [url="http://www.pccyber.com/scrItem.asp?product_subtypes_id=360&product_types_id=20&product_id=3263"][color=#0000ff]Corsair 1024MB PC-3200 TWINX-Dual Channel DDR[/color][/url] And, I'm not sure, but if "CAN$244.75" means canadian, then it would be $211 in … | |
Re: [quote]Overall I'm hoping that I can have the playlist (JList) stay the same size whether their is data in the DefaultListModel or if it is completely empty [/quote] When you say size, are you referring to the visual aspect of the component? Cause having the size of a list with … | |
Re: Didn't slashdot just run an article about how so many students are out-sourcing their homework? It only hurts yourself by not doing it. | |
I have the following code which changes the background image of table cells when mouse over. It only seems to work in IE. I don't think it worked in Safari either. [CODE] function menuRollOver(tID) { tID.background="images/menu_highlight.gif"; } function menuRollOut(tID) { tID.background="images/menu_normal.gif"; } [/CODE] Some html for my table cell: [code] … | |
Re: For one, it'd use the Jabber network instead, obviously. I'm not sure what you're asking. If your IM client supports the Jabber protocol, and its written in Java, then its still strictly java. I've never looked at the jabber protocol, but I have looked into the majority of others. I … | |
| |
| |
Re: Just a curious thought, but what browser are you viewing it in? I came across an issue yesterday with css and tables. I read that the padding commands/margins (forget what exactly) in css aren't supported in IE. | |
Re: could you please format that with "code" tags. I get a headache just trying to read it. | |
Re: I used the following book, it covers just everything you need to get started: [url="http://www.amazon.com/gp/product/0764549693/qid=1134017228/sr=8-1/ref=sr_8_xs_ap_i1_xgl14/103-8881607-3714255?n=507846&s=books&v=glance"]http://www.amazon.com/gp/product/0764549693/qid=1134017228/sr=8-1/ref=sr_8_xs_ap_i1_xgl14/103-8881607-3714255?n=507846&s=books&v=glance[/url] | |
Re: First thing is to determine a common technology that your pc, pda, and phone all share. If they all can display webpages then you have several options. If not, possibly java as its on most cell phones these days and I believe PDA's have supported java for awhile now. But … | |
Re: Check out this site. It an open source meda player, compatible with Winamp skins [url]http://www.javazoom.net/index.shtml[/url] | |
Re: This assumes the sentence ends with a period. I can't remember if this function will take an array of delimiters or not. $strings = split(".",$summary); echo $strings[0]; | |
I'm using JMF to transmit webcam data to another pc. I'm not using another thread yet, but I'm assuming that ServerSocket.accept() will hault the program until something attempts to connect to it? It seems to connect ok, but I dont get any video, just a black screen. So maybe the … | |
Re: I don't see why it can't be done. All the computers on that network would have to go through some sort of proxy is my guess. | |
Re: I'm guessing english isn't your main language? Does this give you an idea? [code] class MenuItemListener implements ActionListener { public void actionPerformed(ActionEvent e) { if (e.getSource == fileMenuNewItem) // "new" menu item clicked } } [/code] | |
Re: I believe its part of the micro edition wireless tool kit: [url="http://www.sun.com/download/index.jsp?cat=Mobility&tab=3"]http://www.sun.com/download/index.jsp?cat=Mobility&tab=3[/url] | |
Re: depends on the server you're wanting to connect with. we talking about hotmail here or something else? | |
Re: It's your program, you document the methods. [url]http://java.sun.com/j2se/javadoc/writingdoccomments/[/url] | |
Re: 1. Just make an ArrayList of cards, the cards can be in any order. 2. Randomly select an index to grab a card. 3. Remove that card from the list (deck) 4. when you want to reshuffle a new deck, just rebuild the array list with all 52 cards and … | |
Re: You're casting the double to an integer. Integers don't have decimals, so the fractional part is being cut off or rounded to the nearest whole. (i forget which) | |
Re: People here are just trying to get you to do exactly what you've done, solve it yourself. We could tell you precisely whats wrong, or give you a hint so that you'll find it yourself. By noticing the errors yourself (whether simple or hard), you'll be more keen on finding … | |
I have a JTree, the renderer uses JLabels. If I setOpaque(false), then I get display issues with highlighting tree nodes/leafs, so I keep the rendering of the jtree opaque. I'd like to display an image for the background and have the text from the jtree elements displayed over top of … | |
Re: I think this will work. I'm not positive if TOP is in MySQL. SELECT TOP 5 * FROM table ORDER BY id DESC (assuming 'id' is the primary key in the table) | |
Re: [QUOTE]my program was just continual , like as th program was run , the program would just be read line after line. Now that im written bigger programs i need to know how to seperate my methods or functions etc. [/QUOTE] Functions (or methods as they're called in Java) alone … | |
Re: retrieve images from what? a website? database? user harddrives? | |
Re: i'd say quick sort. There's also a radix sort, but it wont be faster than quick sort unless you have a lot of data | |
Re: This is more of a PHP question, or whichever language the website is being written in. I'll use PHP. Assuming you already know how to do your database search and get results displayed, it's really quite simple. When you go to display the part name on building the page after … | |
Re: You can either allow BB codes to be used like most web forums, or if you truly don't want users to have to type any tags (like these cool forums here), you'll have to parse the message and look for a web address. Probably using regular expressions to determine what … | |
Re: I learned PHP through [url="http://phpfreaks.com"]http://phpfreaks.com[/url] and [url="http://www.yahoo.com"]http://www.yahoo.com[/url] And if you get stuck on something, you'll always have these forums, too. | |
Re: [QUOTE]I tried using CustomInputDialog d = new CustomInputDialog(); and then String aString = d.getText(); [/QUOTE] So you're trying to display the dialog when you call getText()? Call the visible method from inside that then. [code] public String getText() { this.setVisible(true); return word; } public void actionPerformed(ActionEvent e) { if (e.getSource() … | |
Re: Try using this: String value = myTextField.getText(); | |
Re: first of all, use commas to separate parameters, not periods. getContenPane().add(p1.BorderLayout.CENTER); //WRONG getContenPane().add(p1,BorderLayout.CENTER); //RIGHT Secondly, a container can only be 1 type of layout at a time. You're trying to use BorderLayout first, then FlowLayout, and finally GridLayout. If you haven't specified which one it is, then FlowLayout is the … | |
Re: Something like this? [code] int pageNumer = 0; //instance variable for main class public void newPage(String heading) { pageNumber++; if (heading == null) heading = "New Page: "+pageNumber else heading.concat(pageNumber); System.out.println(heading); } [/code] | |
| |
Re: You should be able to export your current database on your local machine as a CVS file, then import that into the other database on the server. I'm sure there's free software out there to handle this. | |
Re: well here's a music player in java that also supports winamp skins. [url]http://www.javazoom.net/jlgui/sources.html[/url] | |
Re: what format is the playlist? You might want to take a look at javazoom.com, his mp3 library supports shoutcast streams. | |
Re: well they say after you begin to think of a problem, your brain subconsciencly continues working on solving it after you given up. | |
Re: i have absolutely no idea what you're trying to ask. As to the last question, you need to add an ActionListener contactList.addActionListener(listListener) in the class would be 1 method, public void actionPerformed(ActionEvent e) Easiest way is to implement the interface, make your method, then just add "this" for the listener. … | |
Re: I'd help if you explained the problem more, and exactly what it is you're trying to do. | |
The End.