- Strength to Increase Rep
- +17
- Strength to Decrease Rep
- -4
- Upvotes Received
- 944
- Posts with Upvotes
- 777
- Upvoting Members
- 279
- Downvotes Received
- 73
- Posts with Downvotes
- 63
- Downvoting Members
- 49
3,927 Posted Topics
Re: Ham sandwich and chips at work - same as yesterday... and the day before... and the day before... and, yeah, well you get the picture. | |
| |
Re: You might want to elaborate a little on "can't get this to work". That's a bit vague. | |
Re: So get started. Post specific questions if you run into trouble. | |
Re: Check the [URL="http://java.sun.com/javase/6/docs/api/javax/swing/JOptionPane.html"]API doc for JOptionPane[/URL]. The dialogs have several constructors you can choose from depending on how much you want to specify on it. The docs describe the constants you can supply for each of the parameters. | |
Re: He isn't referring to the space between the type and the variable name.[code]String name;[/code]is just fine. It is these[code] int item number; int number of units; int price per unit;[/code]that are not allowed. Generally they would instead be written[code] int itemNumber; int numberOfUnits; int pricePerUnit;[/code] | |
Re: Netbeans does allow you to work in GridBagLayout (or several others) from the designer if you set it yourself. It defaults to GroupLayout though, which is hideous to read. | |
Re: Take another look at the calls in those error messages. Does your ProdArray have a getFee() method? | |
Re: Keep it on topic and leave the personal attacks at the door. | |
Re: So post your code and actually ask a question. This isn't a homework completion service and no one is going to write detailed instructions on how to complete this. | |
Re: In your user control panel, choose Edit Options and deselect the email options. [url]http://www.daniweb.com/forums/profile.php?do=editoptions[/url] | |
Re: Post your code within [noparse][code] [/code][/noparse] tags and specific questions regarding the parts that are troubling you. Also consider that your sample text file does not give any hint of a hierarchical relationship between those two entries. | |
Re: Rubber bands? Read the API for your scanner. | |
Re: @walexy: No, you're just going to have to do your own work. | |
Re: Write an image editor. Java has an extensive image manipulation API :) | |
Re: I think you're probably having a resource location issue. Take a look through this info on loading images with getResource():[url]http://java.sun.com/docs/books/tutorial/uiswing/components/icon.html#getresource[/url] | |
Re: [url]http://msdn.microsoft.com/msdnmag/issues/07/02/DataPoints/default.aspx[/url] [url]http://www.vbdotnetheaven.com/UploadFile/mahesh/DBControlsVBNET04232005024802AM/DBControlsVBNET.aspx[/url] [url]http://www.developer.com/net/csharp/article.php/3670531[/url] | |
Re: You should not have to unzip the jar. Have you added it to the Compile libraries in your Project Properties > Libraries tab? | |
Re: [QUOTE=akeous]i need final year topc related to project management and networking or information technol;ogy as a whole[/QUOTE] That's a statement - not a question - and has nothing to do with the original poster. Don't hijack other peoples' threads. | |
Re: Both operations are covered in the [URL="http://java.sun.com/docs/books/tutorial/jdbc/index.html"]JDBC Tutorial[/URL]. You'll read the values from a ResultSet object to populate the text fields. To update the database, use a PreparedStatement. | |
Re: Only the original poster can mark it solved, and since this was tacked on to the end of a two year old thread, I doubt that person is going to mark it solved for someone else. | |
Re: Um, okay, so you learned three things that do not work. Congratulations? | |
Re: [QUOTE=Salem;508403]Actually, they'll believe anything printed shoved in front of their noses and never bother to conduct even the slightest bit of independent research.[/QUOTE] I believe you. ... | |
Re: Your caret is going to the end of the document because you're removing and re-inserting the entire content. The caret is just staying at the position of the last insert. You can fix that by changing these two lines in your SyntaxDocument2.insertString() method[code] String str2 = super.getText( 0, super.getLength() ); … | |
Re: Are you just wanting it to update as the wait loop runs? Move it into the loop[CODE] private void waitForCompletePlayerSequence() { do { System.out.println("player sequence " + playerSequence); System.out.println("sequence length" + simonSequence.size()); System.out.println("player length " + playerSequence.size()); System.out.println("in waitForcompletePlayerSequence loop"); Utility.pause(500);//note this is in the main thread } while (playerSequence.size() … | |
Re: One more very handy site for code snippet examples on many things: [url=http://www.exampledepot.com/]Java Examples from The Java Developers Almanac 1.4[/url] | |
Re: Look through the methods on the Character class as well. You may find something useful. | |
Re: Post your code then and describe what problems you are having. Be sure to place code tags around the code you include. | |
Re: This thread was put at the top of the forum for a reason: [url]http://www.daniweb.com/forums/thread99132.html[/url] | |
Re: [QUOTE=msnathan72;748248]this is my first time to daniweb and I have heard nothing but great feedback from my peers![/QUOTE] And did your peers also mention that help is only given to those who demonstrate some effort? | |
Re: Here's one way you could monitor progress on the tasks. It involves timed polling of the progress of each task.[code=java] import java.util.ArrayList; import java.util.List; import java.util.concurrent.Callable; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import javax.swing.ProgressMonitor; public class ProgressDemo { public static void main(String[] args) { WorkQueue work = new WorkQueue(); work.begin(); } static … | |
Re: Use [iCODE]error.printStackTrace()[/iCODE] instead of just printing "file not found". | |
Re: Explain what about it? You haven't asked a question. | |
Re: As Jwenting mentioned, you need to start a new thread with your question and place your code between code tags to make it more readable. See the post at the top of the forum about code tags. An illegal start of expression means that you have misformatted your code and … | |
Re: "If trees could scream, would we be so cavalier about cutting them down? We might, if they screamed all the time, for no good reason." - Jack Handy | |
Re: You need to override the isCellEditable(int,int) method in your table model to return false[code] public boolean isCellEditable(int row, int column) { return false; }[/code] | |
Re: Do not create exact duplicate posts for the same question. You already posted this 2 days ago. The errors are most likely a result of incomplete operations you have started and not finished elsewhere against the database, such as transactions you haven't committed. You'll have to check those things yourself, … | |
Re: Ok, there were just a few issues and you got pretty close to the solution based upon the commented-out things you tried. Here's an updated version of your constructor and component setup code with some comments added[code=java]public GuiWork(){ super("Gui Work!"); setSize(1000, 750); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); getContentPane().setLayout(new BorderLayout()); //GOAL::LACE MULTIPLE JPANELS INSIDE JSCROLLPANE … | |
Re: ivanslayer, please post in English on the forums. | |
![]() | Re: Well, yes that does reverse a string, but that still wasn't the exact question asked by the OP [I]in 2009[/I]. They needed to also retain the word order. There is also no reason to initialize str1 as [iCODE]new String()[/iCODE]. Use a string literal instead [iCODE]String str1 = "My String";[/iCODE] This … |
Re: Use "Case Else": [code]Select Case Me.Text1.Text Case 1 MsgBox ("U Entered 1") Case 2 MsgBox ("U entered 2") Case 3 MsgBox ("u entered 3") Case Else MsgBox ("Default") End Select[/code] | |
Re: Both the OP and the hijacker need to read the forum rules about showing some effort if they want help with homework. This is not a homework completion service. Thread closed. | |
Re: You need to start with the most basic "getting started" tutorial: [url]http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html[/url] And do not post new questions to the end of other people's old threads. Post a new thread of your own if you have a question. | |
Re: [QUOTE=Akeem Amure;523327]Thanks so much for replying.But i think there is more to my question. 1. i want to create panels with it [[/quote] So have the class extend JPanel then and create a JFrame for it in the main() method. Not difficult to do at all. You should also put … | |
Re: Daniweb certainly doesn't show up as high in Google results for Java help as before. It used to be within the top 5 for many technically-specific searches, ie "jtable cell renderer background color" and now it is page 2 or more. | |
![]() | Re: [URL="http://squirrel-sql.sourceforge.net/"]SQuirreL SQL[/URL] will. |
The End.