Advertisement

Experts have come up with some helpful tips for getting a solution to your problem fast.

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Top Java Solutions: 276 - 300 of 471
 
Hi, I'm new to Java. I would like to know if I can insert a string to an existing text file. Example if my file consists of the following: apple nice orange sour banana ok after inser...
I have a panel which i need to add combo boxes as needed. e.g. start with a blank panel and through an increment and decrement button on a seperate panel, create/remove new comboboxes on the ...
I am trying to insert a new  row  into the database but one of the id types is a Logical Type.  Does anyone know  how  I can declare a Logical Type and add a value to it (either a dummy value ...
This is for my homework but it is not about my homework. I created a class with methods that are called from Main class. The first method utilizes the .nextInt() method, the next call uses .ne...
I have a JTabbedPane... I need to find out whic tab was clicked ... is there any action event6s for the tabbed pane whic nables u to do this...
I am using SocketFactory to create sockets, but I need to know how to keep track of the sockets it creates so I can close them in a different webpage later on. Currently I dont, I let them exp...
Hi, I'm totally clueless with Java Functors and help urgently with Java Generics. I've implemented a generic ArrayList class named List I'm having a problem with the method findMax below. T...
hello, i am reading in an xml file using         DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();         DocumentBuilder docBuilder = docBuilderFactory.new...
Hi, When signing an applet, I've been taking the following steps: 1) Create a key:       keytool -genkey -alias MyApplet 2) Export the certificate:     keytool export -alias MyA...
my code make aloop in "adjustmentValueChanged" because i set the scrollbar value in "adjustmentValueChanged", its mean that scrollbar getting an event again, so "adjustmentValueChanged" gettin...
I have some webservices(and therefore different threads), that access a commonly shared static variable that's a hashmap.  I've been trying to get a good understanding of java synchronization ...
I am trying to draw class diagrams for my classes. I have one interface called IFetchContentSource. It has the following details getContentByLocation(Arraylist location, String source_ob...
Hi, In JComboBox, how do i control the space  between the dropdown and the dropdown icon? Using a renderer does not work, as it just elongates the dropdown.  I need to control the space in b...
Hi, In eclipse I made a 'library' project, which looks like:     MyLibrary         |         --- org.me.test.server         --- org.me.test.client         --- org.me.test.structures ...
Hi,      What is a hibernate exception in Java? Thanks!
Hi, I made a simple game server. The base class has a simple class called Player which looks like:     public class Player     {         String m_name;         String m_id;     } ...
How to develop countdown calendar with the specify events , such as: 1) create event 2) add event 3) delete event in the JSP coding and whatever the jar file and softwares and tools we c...
Hi, I'm trying to make JTextPane wrap text around an image (or any other object that can be added to it). Example taken how this functionality should look like is in attachment. Basically, th...
I am using tomcat5.25 to deploy a very simple servlet application. But failed. It works yesterday. But today it suddenly does not work. I am using MyEclips6 and J2SE 6. Any hints are high appr...
Hi, I'm trying to centralise the JLabel in a JPanel. After compiling, it refuses to centralise. I keep getting JLabel in TOP CENTER position which is not what i want. I want a CENTER CENTER po...
Hi, experts, what do things like the following mean: publish(V...) process(V...) and even protected void process(String... messages) Is it a special form of multiple arguments that I m...
I am trying to search a hashmap key by its value, for example: Map<String, Double> Task_Cost = new HashMap<String, Double>(); The values in this HashMap are as follows: {AB=1.0, AX=1.5,BC...
I have migrate application java1.4 to 1.5 before migrating it the following code was working fine but after changing it that code  it is returning an error "NullPointerException" Before cha...
I need a simple way to transfer a tiny text file from a client java class to a server java class. If possible, I want to do this bit per bit or octet per octet. For the little background...
In Windows, when you say logoff it will say which user it needs to log off right. So, In a Java Program how to get that username and print it? I know how to get hostname with InetAddress but...