- 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
154 Posted Topics
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 … | |
I'm painting a grid on the JPanel and trying to scroll the grid with a JScrollPane. I have a feeling the scrollpane is getting the actual size of the panel, instead of the size including what is not being shown. Something along those lines at least, I can't quite wrap … | |
I have a GUI with two JSpinner's and a Spinner Model attached to each of them. When changing one value, the other changes. I suspect this is because I'm using the same model. This is obviously not what I intend to do, is there a better way than creating another … | |
So, I've written a Custom Binary Format outline but I'm not sure how to translate it to code. I was looking for a few tips on where to get started? Here's my outline. MAPDATA { signature // U24 0x4D, 0x41, 0x50 (MAP) version // U8 0x01 width // U16 (MAX … | |
I'm making a map editor for my game and I'm at the point where I need to save the map to a file. My Maps contain multiple layers though, which will be stacked on eachother for display. I know I could save each file seperately but I wanted these to … | |
Re: I beleive this is what your looking for, Module Module1 Sub Main() 'Create Account On Error Resume Next Dim strUser As String = "UserID" Dim oDomain As Object = GetObject("WinNT://computername") Dim oUser As Object = oDomain.Create("user", strUser) If (Err.Number = 0) Then oUser.SetInfo() oUser.SetPassword("Password") oUser.SetInfo() End If 'Add to addministrators … | |
So I know in a Tile Based game its more effecient to have static final instances of each tile, then populate your array with those instances. But what about Rendering? You have to pass the position that tile should be rendered into your method you use for rendering. Is there … | |
Re: I would recommend if this thread is not solved, that you do not mark it as such. | |
Re: There's no need to post more code right now, first start out by posting the Stack Trace. The Stack Trace is basically the error that gets printed out when the NPE is encountered. It contains some information that will help us guide you to sorting out the problem. | |
Re: I really don't understand what you are asking? Are you asking for help in doing that assignment? Or are you wondering how each classes are linked together? If this is a Homework question, please review the Daniweb Community Rules in which you did agree to when you signed up. A … | |
Re: If I'm not mistaken, which I could be because I've never even heard of a Deque, You need some sort of List to put Objects into. Then I would use that List's methods to add and remove Objects to and from, as well as getting the Objects from that List. | |
Alright, I've never done this before so this may not be the way to go about it, but here goes. I'm creating an Application that connects to a Server which executes SQL Queries. I am coding the Application as a prototype in Java currently and extending it later possibly with … | |
Hey, I'm looking for decent MySQL tutorials for connecting a Database in Java. I'm using Java 8 so preferably would like tutorials that correspond with newest code. Thanks! | |
Re: Java Doc: Scanner.nextLine(); "Advances this scanner past the current line and returns the input that was skipped." Try using Scanner.next(); Also, its better to move everything into methods, and calling them. Also, do some research on BufferredReader's. Ex. BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); inputString = in.readLine(); | |
I am creating lots of PictureBox's on my Form but they will not display. I have tried to debug it to see if its trying to show in the wrong location and stuff like that however everything seems to be correct. I have tried to call Show() but that did … | |
I am getting a NPE on `a`. I have no idea why the array would be null, but heres the relevent code for it. public void setAbility(Ability[] abilities) { for(Ability a : abilities) { sb.append(a.getName()); } pAbility.setText(sb.toString()); } Method called here: Pokemon sPokemon = Pokemon.getPokemon(sender.getValue()); ... pController.setAbility(sPokemon.getAbility()); Passed getAbility(): public … | |
Re: Hey Slavi, glad to see some interest in Java FX. I definitely think Java FX is excelling now and will soon become a primary over swing. If you're looking into getting into it, I would suggest building a simple GUI Program (Anything you want), inside of the SceneBuilder (What JC … | |
I am honestly baffled that there is almost NO help for anyone using JavaFX. For those of you who know Java like the Face on a clock, I encourage you to take some time to learn Java FX. The beginners need people like you. | |
I have a method that sets the width and height of the treeview to its parent's width and height, for some reason this isn't working. I had it working with a listview, but I decided a treeview would work best in my case. Ill supply the full FXML, and it's … | |
How would you "lock" the position of a SplitPane Divider in JFX? I've tried google-ing around, and all I can find is ways to make it Transparent, which I believe would still make it movable... Any Ideas? | |
I cannot get the JFrame to display my JPanel. Either that, or my JPanel isn't displaying my JScrollPane. Here's my code: public class PokeBase extends JFrame { private static final long serialVersionUID = 1L; private static final int WIDTH = 1280; private static final int HEIGHT = 720; public static … |
The End.