-
Replied To a Post in Pretty printing code on mobile
Sorry Rev Jim. My bad. JC -
Replied To a Post in Game of disks in c#
You will be working in your chosen career well through the middle of the 2100's Computer skills will be absolutely essential for you to use the necessary tools and technologies. … -
Replied To a Post in Java question count by any number
The name START is confusing.... it would be better named `step`, or `increment` or somesuch. (And all caps implies a constant in Java.) And while we're at it... why is … -
Replied To a Post in Java question count by any number
It's hard to answer this without giving the actual solution (which we prefer not to do - you learn more by working it out for yourself), but here's some pseudo-code … -
Replied To a Post in Bouncing ball
If you can't tell the difference then this application is too advanced for your current level of knowledge -
Replied To a Post in Java question count by any number
Line 14 Suppose `i` is counting up in fives, i%10 is 0 every other pass ( 5, 10, 15, 20 etc) , so you get a new line every 2 … -
Replied To a Post in Java issues with actionPerformed
> Line 2. What if that test comes up true when it should not? Yes. If two elements of the buttoms array are both equal to the current source then … -
Replied To a Post in Java issues with actionPerformed
> line 5 sets available[i] to 0 then line 11 tests for 0 Well, no. Line 5 sets it, line 8 breaks from the switch, and line 11 is never … -
Replied To a Post in Java issues with actionPerformed
are you certain that the actionPerformed is only being called once? -
Replied To a Post in Mac problem
<no longer relevant> -
Replied To a Post in Pretty printing code on mobile
"over extrapolated" ... a worthy sibling to"mis-spoke". Don't worry, this is the post-truth age of Trump and Boris. Your 10,000 other visitors or newbies can join the unprecedented millions at … -
Replied To a Post in Pretty printing code on mobile
> JamesCherrill says that line numbers on his tablet make or break his using of the site. Lie. I never said that. -
Replied To a Post in Pretty printing code on mobile
(just for the record, I've not stopped posting because I've been convinced. I've stopped posting because I'm wasting my time) -
Replied To a Post in Openfiledialog and Savefiledialog when i press cancel !
Good advice, but 9 years too late. -
Replied To a Post in Pretty printing code on mobile
iPads now run iPadOS, not iPhone IOS. As you may guess it's optimised for the tablet screen sizes. According to Apple the iPad Pro series run desktop Safari. I use … -
Gave Reputation to SwamiPete in What is Wrong With My Code and What Does This Error Mean?
While the correct form of the assignment would, as JamesCherill says, certainly be: a = '?'; a more illustrative correction might be: a = "?"[0]; -
Replied To a Post in Need help with game of life programming assignment c++
> In your case you may wish to start with an array, fill it with the starting data or states then code to follow those rules and iterate (loop) over … -
Replied To a Post in The basic causes of Data Loss in Windows
My neighbour's son is a freelance 3D graphics artist. He had two years work on his PC when someone in the flat below fell asleep with cigarette in his hand, … -
Replied To a Post in Pretty printing code on mobile
> wireless devices tend to not always be connected to WiFi and therefore downloading and parsing such large JavaScript files significantly reduces page timings. Don't know who your mobile supplier … -
Replied To a Post in Pretty printing code on mobile
I guess you have never heard of something called an "iPad", let alone the "iPad Pro". The screens on these beasts are better than on most PCs. Some of us … -
Replied To a Post in What is Wrong With My Code and What Does This Error Mean?
A `char` is a one-byte integer value, used ti hold the ASCII value of a single character. A string literal (enclosed in double quotes) is equivalent to an array of … -
Gave Reputation to rproffitt in To AMP or not to AMP?
For me, ads have never been a big bother. What really brings down the quality are posts such as the member above along with https://www.daniweb.com/members/1169854/alilufyan25 https://www.daniweb.com/members/1169853/baabrozreal which are as close … -
Replied To a Post in DaniWeb is now ad-free!!
No. -
Replied To a Post in Menu using arrays and function
You are missing a semi-colon on line 238. (Yes, I know its a guess, but since you didn't say what the problem was, or show us the code, all I … -
Replied To a Post in Make a given number odd or even
maybe I'm just an old-timer who started with binary, but for me flipping the last bit just screams odd/even, but the modulus arithmetic I had to think about. Guess it … -
Replied To a Post in Make a given number odd or even
How about ANDing it with 0xFFFFFFFE for even, ORing it with 0x00000001 for odd? -
Replied To a Post in Why Java is not support multiple inheritance?
Not quite true any more. SInce the introduction of lambdas Java has "default methods" in interfaces, which are inherited by any class that implements the interface. And yes, because you … -
Replied To a Post in JButton appears in the wrong JFrame when repaint() is called
Using double buffering works, but it's unnecessary complexity and overhead. Swing already has double buffering internally. Threre are also sound reasons for not directly painting in a JFrame... eg what … -
Replied To a Post in JButton appears in the wrong JFrame when repaint() is called
You have (quite rightly) overridden `paintComponent`. super's `paintComponent` is responsible for clearing/setting the background, so you have missed that functionality and and are starting with whatever is left over in … -
Gave Reputation to rproffitt in JButton appears in the wrong JFrame when repaint() is called
Which Java are you using? I tried a recent Java and it complained. > Compiling... /str/JavaFiddle.java:19: error: class Interactive is public, should be declared in a file named Interactive.java public … -
Replied To a Post in Problem setting Preferredsize for JButton
Wrong wrong wrong. Terrible advice. Layout managers are essential for creating apps that run on screens with different resolutions or different fonts. You need to learn to use them, not … -
Replied To a Post in Connection to Java Derby Network Server
^ like rproffitt said. The normal way to specify where databases are stored on the server is by specifying a Java system property called derby.system.home on the server. It would … -
Replied To a Post in Connection to Java Derby Network Server
Not sure where you are going here... You don't need the dbdriver string or the classForName (althugh for Java 7 who knows now?). DriverManager.getConnection will find and load the appropriate … -
Replied To a Post in Connection to Java Derby Network Server
Java compilers have an option to compile using the syntax of a previous version, but in any case if you have code that stops running after Java 7 then you … -
Replied To a Post in Connection to Java Derby Network Server
You are using Java 7 - no public support since 2015. You should be very worried about your security. Current Java is 13. So the first thing is to update … -
Edited Update the JDialog when it is opened but not visible
Hi! I have made a POS Sotware. I have used only one JFrame as Main/Home Screen of the software and used JDialogs for all other screens. In this post I … -
Replied To a Post in Update the JDialog when it is opened but not visible
Like rproffitt said: don't extend a solved topic with a new question. Start a new topic and re-post your question there. In the meantime have a look at https://docs.oracle.com/javase/tutorial/jdbc/basics/connecting.html (Also … -
Replied To a Post in Update the JDialog when it is opened but not visible
Click on "Reply to this topic" and there's a "Question Solved" slide switch at the bottom. -
Replied To a Post in Find duplicates in ArrayList and store them in another ArrayList
> Yes, that worked perfectly. Of course it did! ;) Glad to have helped JC ps: Mark Question Solved? -
-
Replied To a Post in Find duplicates in ArrayList and store them in another ArrayList
That could be much easier amd faster of you sorted the List (or create a sorted copy) first. Then just store every record that's equal to the previous record. If … -
Replied To a Post in Trump
> What can I not now rebut your slander? Yes, of course you can try. You are free to express your opinions (within the [DaniWeb Community Rules](https://www.daniweb.com/community/contribute)), as is Reverend … -
-
Replied To a Post in Update the JDialog when it is opened but not visible
Great! Let me know if/when that's done and I'll help you get the Listener stuff working. JC -
Replied To a Post in Update the JDialog when it is opened but not visible
OK. Step 1: Separate the data from the user interface - ie separate the Model from the View. You should have a class that loads and holds the master list … -
Replied To a Post in Update the JDialog when it is opened but not visible
Sure. I'll get something together tomorrow. Goodnight. J -
Replied To a Post in [Error] expected expression before '{' token
Yes. You can pass the address or the array, but both actually pass the address. Specifying the array size seems to have no real effect other than to document a … -
Replied To a Post in Programming help with adventure game room change function
Room1 has three exits but only one connecting room, so any attempt to go in the second or third exit will crash for lack of a corresponding connecting room. -
Replied To a Post in Update the JDialog when it is opened but not visible
You can start by considering these three options to see which fits your needs best... 1. Make it `public`. Very easy, but horrible violation of encapsulation 2. Have a public … -
Replied To a Post in [Error] expected expression before '{' token
> You don't specify an array size in the parameter list. I thought that was pefectly valid in C ... am I wrong?
The End.