-
Replied To a Post in String filter in JComboBox
> When i type any substring of any Country name, jcombobox should select such country name which contains that substring. If the substring matches more than one country then what … -
Replied To a Post in String filter in JComboBox
OK. I think you have misunderstood how combo boxes work. When you type "it" what happens is you type "i" - it selects the first entry starting with i you … -
Replied To a Post in String filter in JComboBox
Sorry, but I really don't understand. When you type a letter into a (not editable) JComboBox the selection jumps to the first item that starts with that letter. If you … -
Replied To a Post in String filter in JComboBox
> i type any key from key board e.g 'A', then the jcombobox filters perfectly and shows me the items: America, Austria. ??? When you type a letter the selection … -
Replied To a Post in How big are Windows 10 updates?
Hi Darius Those are the minimum machine specs. I was looking for the actual download size, which is something completely different! -
Replied To a Post in Display minimum value that is not in array
Thanks for the thanks! > Write an efficient algorithm ... I posted that code to show what was wrong with your original loop, but that solution is NOT an efficient … -
Replied To a Post in Display minimum value that is not in array
No, it finds the minimum value NOT in the array! ps: If I was doing that for real I would consider including a set of redundant parentheses for the while … -
Replied To a Post in Display minimum value that is not in array
To be honest I don't understand what you intended with that loop anyway. All you need to make it work is int solution(int[] A) { int n = 0; while … -
Replied To a Post in Display minimum value that is not in array
Yes, it does, but then you go back round the loop and lines 7-11 set it back to the lowest value in the array every time -
Replied To a Post in Display minimum value that is not in array
Your do/while will loop forever because the body always sets the same value for minValue and therefore the while clause always returns the same value. (A couple of quick print … -
Replied To a Post in Why doesn't my application show?
If we're discussing the code in general the most scary thing is that it uses AWT. AWT was replaced *in the last century* by Swing, and Swing has now been … -
Replied To a Post in Why doesn't my application show?
Looks like you populate the content of your Panels, but you never add the panels to the main window. -
Gave Reputation to Reverend Jim in Suggestions to refresh DaniWeb
At the top of the programming forum you will see (I hope) All New Solved Unanswered More v The `More v` will drop down if you click on it to … -
Replied To a Post in Suggestions to refresh DaniWeb
what drop down? <resists temptation to do the locked filing cabinet HHGTTG thing again> -
Replied To a Post in why is my import to connect is an error
See if what still works? -
Replied To a Post in why is my import to connect is an error
Java 1.8 is perfectly ok, it’s also known as Java 8. It’s the current LTS version. They changed the version numbers for marketing use after 1.4, but the version numbers … -
Replied To a Post in Redirect to a page using a drop-down menu
Why does this topic have a Java tag? -
Replied To a Post in why is my import to connect is an error
The netbeans screenshot shows jdk 1.8, so that’s ok -
Replied To a Post in why is my import to connect is an error
Java micro edition is a cut-down version of Java to run on very small computers. If you are writing for a pc or a server then it’s not relevant. I … -
Replied To a Post in why is my import to connect is an error
I was referring to JavaME - the micro edition of a Java, because I don’t think that has sql as standard. Apart from that all I can guess is some … -
Replied To a Post in why is my import to connect is an error
Puzzling! Are you using Java ME? -
Replied To a Post in why is my import to connect is an error
Where is the full error message? You know, the one that says which line number and which symbol??. -
Replied To a Post in why is my import to connect is an error
Hi divinity02 You know me. We have worked together many times. But this time I agree with the previous posts. You haven’t given anywhere near enough information that we could … -
Replied To a Post in How to call constructor with parameters from another class?
I don't think your problem is with code syntax, it's with the overall design/flow of the app. Let's try to understand that... (stop me when I go wrong here) You … -
Replied To a Post in How to call constructor with parameters from another class?
I still can't see where you expect to get the initial values of img, url etc from. Is it from the `// some logic to parse` method? (if so, then … -
Replied To a Post in How to call constructor with parameters from another class?
To run that code you need values for img, url etc. Where do those values come from? Eg: should the user type them in? -
Replied To a Post in Need help in the code
People here do want to help you, but the information you have provided is not sufficient. Did you take the time to check rproffitt's link in his first answer? -
Gave Reputation to rproffitt in Need help in the code
@JC. I didn't intend to shame anyone. Let's hope they spend time on their composition of the question. -
Replied To a Post in Need help in the code
> Spend some time on grammer (sic). Sentences should start with a capital letter and end with the usual period, question mark or ! It's pretty obvious that English isn't … -
Replied To a Post in URL Hash Gets Removed in IE After Redirect
Sandeep: Nice try, but SIX YEARS too late. -
Replied To a Post in Frequency in a Double Dimension Array
OK, looks like the answers array is `[student][answers]`. The correctA array seems clear enough. The student array seems pointless. Perhaps you can explain? Before writing a single line of code … -
Replied To a Post in JList in a class
Not sure why that code isn't working, but then I don't like the way you have forced the scroll pane into a class that should just be a list. I … -
Replied To a Post in M.2 drive won't boot Windows, 120GB disk shows 251MB in diskpart
I had the same symptoms with an SSD that died. It seems the 250Meg was the buffer size in the drive controller and when the drive itself fails all the … -
Replied To a Post in java
THink about how you do that... it's a loop. you start with salary = 10,000 in each pass of the loop you add 5% to that when the salary reaches … -
Replied To a Post in Given a CIDR notation, print the range of the possible IP addresses.
Dani owns the copyright to everything on DaniWeb, but I'm sure she will be happy to permit you what you want for this piece of code. Use DaniWeb messaging to … -
Replied To a Post in Reguler Expression (regix) problems
... but I still don't understand why you don't just use the Swing built-in classes, eg JFormattedTextField field = new JFormattedTextField(NumberFormat.getNumberInstance()); -
Replied To a Post in Reguler Expression (regix) problems
> mve code is correct, it is just working backwords, ??? This is what we call "denial" and it's never going to help. It's not correct because it doesn't do … -
Replied To a Post in Reguler Expression (regix) problems
Hi guys, mind if I join in? I tried `^[0-9]*\.?[0-9]+?$` in Java - just needed to double up the backslash for a Java literal. Works OK for me. Maybe the … -
Replied To a Post in trying to push a new object in an array
Library is the top level of the data model. You create that before you start any GUI. You may need to access a database or something as part of that. … -
Replied To a Post in Get Notification based on User's Current Time from Database Value
Then that sounds like your `handle` method is never being called. Try it with a traditional Timer. -
Replied To a Post in Get Notification based on User's Current Time from Database Value
and do you get the print from line 21? ps: I'm not familiar with using KeyFrames as a countdown timer like that. Aren't KeyFrames run sequentially on the same TimeLine? … -
Replied To a Post in Get Notification based on User's Current Time from Database Value
That looks very reasonable. Does the print on line 14 show the expected value? -
Gave Reputation to abrogard in Anyone Got A Recursive Algorithm For The Pareto Principle?
You know the Pareto Principle? The 80/20 rule? That 80% of the work gets done by 20% of the people? Or 80% of the money belongs to 20% of the … -
Replied To a Post in Anyone Got A Recursive Algorithm For The Pareto Principle?
Why 2 parameters? Isn't there just one (the amount to be split)? If so you may be worrying about returning 2 values from each call, in which case: 1. You … -
Replied To a Post in Get Notification based on User's Current Time from Database Value
Yes, that's a lot clearer. Here's a suggestion: When the user logs on, retrieve all his appts. For each appt work out how many seconds it is from now until … -
Replied To a Post in Get Notification based on User's Current Time from Database Value
> I'm trying to get a pop up as soon as a user logs in. I already have the pop up, but it keeps popping up all the results one … -
Replied To a Post in trying to push a new object in an array
Can't commernt on the detailed code, but yes, that's the structure I would use. > ultimately I want that array to be replaced by data that comes from a database … -
Replied To a Post in Creating a web based Augmented Reality app
Why not ask the author of that code? - the contact info is on the page you linked -
Replied To a Post in trying to push a new object in an array
If you're thinking in OO then static is generally NOT the way. In general, if you have a form and someunderlying data model (the array in this case?) then the … -
Replied To a Post in error: non-static variable this cannot be referenced from a static context
Your code does not have an inner class. Only nested classes can be inner classes.
The End.