32,204 Topics
| |
So im doing a MMO, wich will have a lot of entities, monsters, players etc .. So i want opinions from you experts, wich a aproch should i go for... create the entity when its near the view port so that the game dnt struggle updating each entity or will … | |
I've searched extensively for this, but failing to arrive at a proper solution, I had to proceed with this question. I have just recently started learning JavaFX/Java and I am trying to build a table which, along with some other columns, would have a single ProgressIndicator column. This means that … | |
I have a array of string I will call a method on this array for each of the element of it ,the method will return one integer,but some of the elements are the same then I do not want to call the method . for example this is the array:{aa … | |
Hi I am creating a program in which I have 2 tabs. I want to make my tabs bigger in size so they can take whole panel space. Is there any way I can make both tabs size bigger. thanks import java.awt.*; import static java.awt.Font.BOLD; import java.awt.event.*; import java.awt.event.*; import … | |
So I've tried desperately to download JRE to end up with nothing. Originally I thought I deleted something so I cleared my computer of all JRE files plus all java related files, deleted them and completely removed them. I even downloaded JavaRa and removed all files from there. I then … | |
Hello, I am developing a database system and as part of a project I have been asked to look into fault tolerance. From what I understand a fault tolerant program is a program that is not vulnerable to errors. Any ideas how I can ensure that the program I am … | |
Implement a shape hierarchy. you must have your superclass [B]shape[/B] and 2 subclasses [B]two-dimensional shape[/B] and [B]three-dimensional shape[/B]. Under two-dimensional shape, you have other subclasses, [B]circle, square, and triangle[/B]. Under the three-dimensional shape you have the [B]sphere, cube, and tetrahedron[/B]. Each two-dimensional shape should contain a method [I]getArea[/I] to calculate … | |
Can someone kindly help me with a solution to this assignment http://math.hws.edu/eck/cs225/s09/lab9/ CPSC 225, Spring 2009 Lab 9: Sets in the Java Collection Framework For this week's lab, you will use two of the classes in the Java Collection Framework: HashSet and TreeSet. You will use these classes to implement … | |
I have a 2D arraylist, named as adjLists, which contains arraylists, containing values like these. Each two values are a "pair" and each third is a "flag" for the pair. [278, 106, 0, 397, 36, 0, 59, 208, 0, 366, 221, 0] [366, 221, 0, 397, 36, 0, 132, 390, … | |
Hellooo, Is there a way to compare a datagram packet's IP address with the host's IP address? Because i have a client/server (client is acting as a client & server) class that uses multisocket to broadcast to every host it'll send the datagram to itself as well, which i don't … | |
How can I rewrite this with java config? <int-kafka:outbound-channel-adapter id="mainOutboundChannelAdapter" kafka-producer-context-ref="kafkaProducerContext" channel="mainOutboundTopicChanel"> </int-kafka:outbound-channel-adapter> | |
Hello, how does an Interpreter work ? I read up on it and it seems you just parse each line and then (somehow) execute the lines. I suppose the code needs instructions on how to execute each line ? | |
Hi, I'm using multiset intersection function inorder to find the similar characters located in two sets. This is working good. I wanted to know if I can introduce a wild card in this intersection function such that if it finds the wild card it will ignore or consider as a … | |
How to write a Java program to implement it. The program should be simple. It may ask for the sentence and returns the count of all parts of speech found in the sentence. Can any one idea to solve this type problem | |
i am doing this gpa java program where I have to implement two method, one called calgpa and the next calqualitypoints, and i have also have to put in two java arrays one for the numbers of courses and the other for whats graded the problem my program is giving … | |
I read http://www.java2s.com/Code/Java/Swing-JFC/ProgressBarDemolongtask.htm on how to do a progress bar and up to now, I am still at a loss of how to implement one progress bar. say I have I have 4 functions that stores some random text into a text file -function a stores the text in textfile … | |
Hello..can anyone help me on how to make application flood using java coding? | |
This is my link class fill-up form: private void cmd_updateActionPerformed(java.awt.event.ActionEvent evt) { UserClass UC = new UserClass(); String password = new String(PW.getPassword()); String confirmPassword = new String(RPW.getPassword()); try { if(!UN.getText().trim().equals("")&&!RPW.getText().trim().equals("")) { DefaultTableModel model = (DefaultTableModel) UC.table_user.getModel(); String value1 = UN.getText(); String value2 = PW.getPassword().toString(); model.setValueAt(value1, UC.table_user.getSelectedRow(), 0); model.setValueAt(value2, UC.table_user.getSelectedRow(), 1); … | |
Hey guys, I'm working on a chat program where a UDP console-based chat program's client sends a message to the server and subsequently the server sends it to all other clients on the network. As of this moment the program is able to: 1. Client send message to server 2. … | |
I installed Eclipse and it worked for few days and it nolonger openned giving error:- can someone help me (mbusi.ndlovu@gmail.com) Java was started but returned exit code=13 C:\ProgramData\Oracle\Java\javapath\javaw.exe -Dosgi.requiredJavaVersion=1.6 -Xms40m -Xmsx512m -jar C:\Program Files\eclipse-java-luna-SR2-win32-x86_64\eclipse\\plugins/org.eclipse.equinox.la uncher_1.3.0.v20140415-2008.jar -os win 32 -ws win32 -arch x86_64 -showsplash C:\Program Files\eclipse-java-luna-SR2-win32-x86\\plugins\org.eclipse.platform_4 .4.2v20150204-1700\splsh.bmp -launcher C:\Program Files\eclipse-java-luna-SR2-win32-x86_64\eclipse\eclipse.exe -name … | |
Hi i am trying to make taxi meter which shows the current price.Rightnow I have to click startmeter afterevery 1 minute than it's update the new price but I want it to update automatically once the price change after 1 minute instead of me pressing startmeter everytime.thanks for your help. … | |
Hello all: I'm teaching myself Java (but for now I'm using one of the Teach Yourself Java 7 books). I'm currently learning about channels and sockets and I'm reading about blocking an nonblocking methods. The book discusses a three steps to set up nonblocking communication, and because technology is ever … | |
Hi Guys I have a program thats supposed to generate 9 random objects made from lines and then allow me to save the panel showing the state of all 9 objects. Currently all 9 objects are being generated and when i click save the panel is being saved to a … | |
I need to fill an image created using a ton of QuadCurves, but they don't fill it all the way using the traditional fill method. Any suggestions? public class MonstercatComponent extends JComponent{ public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; drawGrid(g2); g2.setStroke(new BasicStroke(5)); QuadCurve2D earLeft1 = new QuadCurve2D.Double(145, 155, … | |
I having a problem with the cloneNode tag problem. NodeList movielist = doc.getElementsByTagName("movie"); Element child = (Element)movielist.item(6); Element newNode = (Element)child.cloneNode(true); child.appendChild(newNode); newNode.setAttribute("id", "this is newnode"); code above will clone the whole set of thing. but the problem is it colne in wrong tag. i want some thing like this … | |
I have texts (Paragraphs) and I want to replace each of annotated wrong word in the paragraph with the correct word indicated by the position (index) number of the wrong word and i need to do it for each paragraph... So, what method should I use to search by index … | |
Can any one send me the config setting for jdbc and mysql using apache server setting in netbean. i wanna use jsp with xampp and jdbc | |
Below is the code i am using to create dropdown using listfields.In this i am able to create dropdown with hardcoded data binded to listfields with no Problem,but when i bind data from webservice when i clicked on horizontalfield(dropdown),first it shows the null pointer exception(White screen),by clicking middle button of … | |
xml file <?xml version="1.0" encoding="UTF-8" standalone="no"?><movies> <movie id="1111"> <title>Blackhat</title> <genre>thriller</genre> <duration> 90 mins </duration> <age>28</age></movie> <movie id="1002"> <title>The Wedding Ringer</title> <genre>comedy</genre> <duration> 100 mins </duration> </movie> <movie id="1003"> <title>The Avengers</title> <genre>action</genre> <duration> 180 mins </duration> </movie> <movie id="1004"> <title>Taken 3</title> <genre>action</genre> <duration> 100 mins </duration> </movie> <movie id="1005"> <title>Insurgent</title> <genre>Science … | |
here I am again, I am currently stuck on round 1 and I have two week to build this game, and I am from there, system.out.println(hello, p2 what is your name) p2name = dashin.next(); system.out.println(now tell me love, what is your age p2); p2age = dashin.nextInt(); if(age < 4 || … |
The End.