- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 33
- Posts with Upvotes
- 22
- Upvoting Members
- 24
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Programmer, Animal-Lover, Gamer, Computer "Geek"
- Interests
- Programming, Gaming, Computers, Networking, Cooking, Fishing, Camping,
- PC Specs
- AMD FX 9590 4.7GHz CPU, NVIDIA GeForce 650 Ti BOOST OC 2GB, 16GB GSKILL 2400MHz DDR3 RAM
A couple questions before I even attempt this project... Is it possible to create a VoIP application in Java? Is it posssibe to do this using standard libraries? If you can't make one with standard libraries, which libraries are needed to accomplish this? Also, is this a good Introduction to … | |
Hey everyone, I'm looking for some help with coming up with a system to communicate data between client and server sockets. I was thinking of a command system, but that would only work when the client is sending a request to the server, not when the server is returning data … | |
I'm creating an application that with continuously attempt to run a list of programs until they are open. I'm having an issue when it comes to programs that require administrative priveleges however. I've done some searching and found the below script (in createElevationScript()) that *should* run a program with administrative … | |
Re: I'm sure it wouldn't hurt to put it through all the popular Encryption Algorithms? Worse that can happen is you get the wrong result. | |
I have this method that is used to set the columns and data in the listview based on a string. I'm not sure how to add the columns I need programactically. I need to use different data types though. private void populateLeaderBoardList() { string btnContent = (string)btn_exportLeaderBoard.Content; if (btnContent.Contains("Totals")) { … | |
I'm having some issues with my BSP Dungeon Generation and I'm not sure why! I'd greatly appreciate the help :) Occasionally I'll get an IllegalArgumentException in RandomHelper. That may help, but it's not the issue because it only happens rarely. As you can see, [this image](http://puu.sh/nb9Ir/70efbe5e81.png) shows that the Rooms … | |
Why is my finally block not firing after projectDCThread.join() is called? This method IS in a class that implements Runnable, however it's not overriding the deprecated stop() method. public synchronized void stop() { if(isRunning || safeCloseRequested) { try { isRunning = false; projectDCThread.join(); } catch (InterruptedException e) { Logger.append("Exception thrown … | |
Re: Perhaps writing input from your Java program to a text file is what you're referring to. If that's the case, search the forums for something along the lines of "writing to a text file". | |
Flickering occurs when Active Rendering with JPanel, not sure why as I've done this before (couldn't find source code of that project however). Relevant Code: Graphics g = projectDCWindow.getWindowGraphics(); // Gets the Graphics Object from a JFrame g.setColor(Color.BLACK); g.fillRect(0, 0, (int) ProjectDCInfo.getDefaultWindowSize().getWidth(), (int) ProjectDCInfo.getDefaultWindowSize().getHeight()); // Clears the screen projectDCGSM.get().render(g); // … | |
Re: Also, posting the problem that you're running into would greatly help us understand and help you accomplish what you're trying to solve. | |
Re: If this is a school or work assignment, I'd suggest getting familiar with DaniWeb's rules found [here](https://www.daniweb.com/community/rules). "Do provide evidence of having done some work yourself if posting questions from school or work assignments" | |
Looking for complete code snippets to read through and try to understand. Post them below and I'll post back with what I think it does. | |
Curious who's all used MiGLayout and what everyone's thoughts are on it. Is it a prefered layout over others? If so, which? What do you like and dislike about it? Is there any other 3rd Party Layout's you would recommend? What features do they have that make them recommended? | |
I was wondering if it would be more efficient to render a single BufferedImage instead of rendering a bunch of BufferedImages in a double for loop? I have an idea of how to do it, I just don't know what methods in BufferedImage you would use to create the bigger … | |
I'm used to using AWT's Canvas and BufferedImage and things like that. I've switched from using Canvas for drawing, to using a JPanel and I'm blown away by the efficiency. I intend on fully using Swing for all of my GUI. My question is, what is Swing's equivalent of BufferedImage? | |
So I have a few concerns about the new Categories after a while of using them and I thought this would be the best way to express them. I have noticed that it seems to be a little more difficult to navigate the forums and theres a few reasons I … | |
I know you're not supposed to use Lightweight Components like JFrame with non-Lightweight Components like JFrame, so my question is, what do you use with a Canvas? Is there also some example code for it? Thanks! | |
Is there a way to require a subclass to call super explicitly in it's constructor? | |
I'm looking for what exactly is a Vector3 (or any Vector for that matter) and also what a Quaternion is in code? What are the variables types? Should you have multiple classes for each type? Thanks! | |
I have a custom class which extends JPanel and overrides the paintComponent() method. Here's what that looks like: @Override protected void paintComponent(Graphics g) { if(redrawRequested) { g.setColor(ETCH_BACKGROUND_COLOR); g.fillRect(0, 0, owner.getAppWidth(), owner.getAppHeight()); redrawRequested = false; } g.setColor(Color.BLACK); g.fillRect(pointX, pointY, PIXEL_SIZE, PIXEL_SIZE); } The same custom class also implements KeyListener. I am … | |
Re: I'm not sure why your code is even compiling as the less than sign should be on the left side of the equals sign. This should be how it is in any case, less than, greater than, equal. Anyway, on with the question, you should be setting one of your … | |
I want to iterate over a List in a 2D way, basically starting at the center and working my way around in a "circular" fashion. The List is a List of type Chunk and Chunks store a Vector 3 position. I also have a Player which has a Vector3 position. … | |
I'm curious, when setting the default close operation for JFrames, should you use JFrame's constants or WindowConstants' constants? As far as I can tell they're the same. Although, IntelliJ (not tested on other IDE's) prefers WindowConstants' EXIT_ON_CLOSE at least. So basically my question is, which one should be used? Which … | |
Is this try catch block enough to ensure the process ran successfully? protected boolean attemptLaunch() { try { System.out.println("Attempting to open '" + name + "'."); //Try to open the Process new ProcessBuilder(path).start(); return true; } catch (IOException e) { System.out.println("Opening failed. Will retry during next Iteration."); return false; } … | |
So this is the first time using a Spring Layout and I gotta say, it honestly seems like a very nice Layout to use, but I can't quite seem to get it working the way I want it to. Let me explain: I have a JList which should be inset … | |
I need a boolean to be stored with a String (or possibly a Path, not sure which one I want to use yet). I thought about using a Map, so I did some looking around and found out that LinkedHashMaps are the only type of Map that stay in Order … | |
Re: Keeping in mind with the aspect of "**for learners**", Here are some projects I started out with. **THESE ARE ALL TEXT BASED(NO GUI)** **Area Calculator** Calculate the area given the shape and dimensions needed, then output. **Blackjack** Make a Blackjack game that asks the user if he wants to hit. … | |
I have a custom ListCell in which I have methods to move the position of the cell to the right or left, but I want a button to be shown similar to deleting a Conversation in Messages on iPhone. If I add a new ImageView, which will act as the … | |
I'm making one of those puzzle games that has the empty tile which you need to slide them around to finish the picture. When I refer to the "Active Tile" I'm referring to the tile that's empty on the board. I'm changing the position of the active tile and the … | |
I can swap two tiles, however, when I need to shuffle them, I need each tile to have a unique position. I've tried setting up array's for the x and y position of both the tiles to be swapped checking against the randomly generated number to make sure it's position … |