26 Topics

Member Avatar for KirkPatrick

Alright well I decided I wanted to widen my learning a bit with java and decided I was going to write a program that had to do with networking side of things. It took me a little bit of time to come up with something, so I asked my friend …

Member Avatar for toseo
0
226
Member Avatar for KirkPatrick

I have a Tcp Client (in Java) and a Tcp Server (in Groovy) and I am having problems getting the Client to communicate properly. I believe the issues involve my client not being able to send information to the server. (My assumption is the problem is somewhere near [I]line 32[/I] …

0
67
Member Avatar for KirkPatrick

I seem to be having an issue with a program I am creating. It should be a simple program that sends commands from a Java program to a Groovy script (whether the script be on the same computer or another on the network) but I am running into some problems. …

Member Avatar for KirkPatrick
0
968
Member Avatar for KirkPatrick

Hey guys, I'm fairly new to using linux however I need to know a few things. (I'm very aware there are examples on the web for most of these, but I want to know how you guys personally prefer to go about these) 1) Find hard drive serial (SCSI) without …

Member Avatar for KirkPatrick
0
190
Member Avatar for KirkPatrick

I have a question on how to get the index of a selected object. I'll briefly explain my project to help get a better understand of what I'm doing. I have created a simple object (named InfoObject) which is made up of 2 jTextfields and 1 jComboBox. I have added …

Member Avatar for Ezzaral
0
483
Member Avatar for KirkPatrick

I have a program where my JFrame contains a tabbed pane with 3 tabs, I am wanting to make it so that when tab1/jpanel1 is doubled clicked it displays the contents of the JPanel on the second monitor. In my case the second monitor will be a large plasma screen …

Member Avatar for KirkPatrick
0
3K
Member Avatar for KirkPatrick

I'm wondering if it is possible to control certain aspects in my function. All my it does is control how an object gets placed on my gui. I'm wondering if there is a way to control [I]GridBagConstraints.fill[/I] and [I]GridBagConstraints.anchor[/I] [B][U]Function:[/U][/B] [code=java] public void gridBagControl(Component ob, JPanel p, Insets in, int …

Member Avatar for KirkPatrick
0
106
Member Avatar for KirkPatrick

I have created a function that is supposed to go through a text file (csv) and read the information in it and then add it do a dataobject (which just holds the info in textfields and a combobox) which when filled adds itself to the jpanel. The issue I am …

Member Avatar for KirkPatrick
0
137
Member Avatar for KirkPatrick

This is sort of a follow up on my previous thread. I am looking into ways to click buttons, hyperlinks, or enter info into websites from a java program. So I have taken a look into the following site: [code]http://www.informit.com/guides/content.aspx?g=java&seqNum=44[/code] The page explains how to use the yahoo search. Here …

0
58
Member Avatar for KirkPatrick

I haven't ever messed with any webpages through java and I'm kind of curious as to how it would work. I have a specific question that perhaps someone will be able to answer. How would one go about pulling certain information from a forum? To better understand what I am …

Member Avatar for KirkPatrick
0
429
Member Avatar for KirkPatrick

Hey guys I'm a bit confused here as I haven't edited a renderer before. My situation is that I have a custom object that I have created. It has a few jLabels, textboxes, and a combo box. And what I'm wanting to do it make it display on a jList. …

Member Avatar for Ezzaral
0
201
Member Avatar for KirkPatrick

Well I'm going through a lot of my code and wanting to clean it up a bit by creating functions to do the necessary tasks instead of having code that is multiple lines long. For example, I use the following code multiple times [code=java] ViewObject vo = new ViewObject(a, b, …

Member Avatar for Ezzaral
0
116
Member Avatar for KirkPatrick

I currently have strings that are all the same throughout my classes, I was just wondering how I could make the value of the strings pass from the main class to the rest of the classes. My reasons being that I am wanting to create a property file and have …

Member Avatar for KirkPatrick
0
281
Member Avatar for KirkPatrick

Alright I have created an object, its a simple object. Basically just textfields and a combobox. I have them all in a gridbag layout with weightx and weight y set to one so that they fill out the panel I place them on. [B][U]Question 1:[/U][/B] What I'm wanting to do …

Member Avatar for KirkPatrick
0
99
Member Avatar for KirkPatrick

Its been awhile since I have toyed around with java, so I'm a bit rusty. But decided to mess with it today. I have a jPanel that I will be adding objects to, but I want to add the in a new row each time a button is clicked. Anyways …

Member Avatar for KirkPatrick
0
123
Member Avatar for KirkPatrick

Hey guys, I was having a bit of trouble with making my GUI look presentable (not too busy or crammed up) and I have a few questions that shouldn't be too hard to answer. I'll briefly explain what I have at the moment. I have a total of 15 text …

Member Avatar for KirkPatrick
0
1K
Member Avatar for KirkPatrick

Alright I am having my program read two text files (in csv format) and once it reads them, I am wanting it to do a check to see if two columns match, if they do I want it to write it to a new file. I have coded it, but …

Member Avatar for BestJewSinceJC
0
718
Member Avatar for KirkPatrick

I'm using CsvReader/CsvWriter to read and write my data to csv files. And I have a question about appending lines of data to other certain lines. Lets say I have some data already saved, now I open my other program which has more info that I would like to add …

Member Avatar for KirkPatrick
0
3K
Member Avatar for KirkPatrick

Alright my program is giving me a hard time and I will have to briefly explain what it does and when the exception is thrown to give you a better understanding. My program goes off and reads a csv file, once it reads it, it adds the information to my …

Member Avatar for KirkPatrick
0
132
Member Avatar for KirkPatrick

I'm having a problem deciding how to handle a situation. I'll briefly explain whats going on before I ask the question(s). I have a viewObject (bean) and what it does is display information that is gathered. To keep it from getting too complicated I'll say I have 3 jLabels. One …

Member Avatar for ~s.o.s~
0
97
Member Avatar for KirkPatrick

I'm having a problem with my countdown timer and am figuring that I'm missing something obvious. All I'm trying to do here is get my jLabel to countdown from 60 to 0. [code] ActionListener refreshListener = new ActionListener() { int counterLimit = 60; public void actionPerformed(ActionEvent e) { javax.swing.Timer refreshTimer …

Member Avatar for KirkPatrick
0
118
Member Avatar for KirkPatrick

Hey guys, got another question for you. I have a program that displays a new bean on my jPanel for each piece of data that it picks up from a file. I was wondering if there is an easy way to always have it display my bean to the northwest …

Member Avatar for KirkPatrick
0
103
Member Avatar for KirkPatrick

Just had a quick question about my code. Seems like a very simple solution, perhaps I'm just too sleepy to think straight. What I am wanting to do is if a certain index is selected in my combobox i want certain textfields to display which is apparent by the code: …

Member Avatar for JamesCherrill
0
2K
Member Avatar for KirkPatrick

I have been having a little trouble getting my program to output the results I am wanting. At first I was having trouble with a cast exception at this line: [code]out = (ParseResult[]) ipHostsFound.toArray();[/code] The cast exception was: [code][Ljava.lang.Object; cannot be cast to [Lfilelocation.struct.ParseResult;[/code] So I ended up changing it …

Member Avatar for BestJewSinceJC
0
92
Member Avatar for KirkPatrick

I am reading a .Csv file and am having problems trying to get the information I want, set up the way I want. Here is where my problem comes in: [code] String[] info = beanInfo.split("," , 3); for (String str : info) { ip = info[0]; hostname = info[1]; ping …

Member Avatar for KirkPatrick
0
161
Member Avatar for KirkPatrick

Before going into the explanation I will list what I am wanting to do in order: [B][LIST] [*]Have main() read [U]results.csv[/U] and create beans according to the lines of data in the file [*]Have my beans set up correctly (getters, setters, and propertychanges) [/LIST][/B] To give you guys a quick …

0
80

The End.