Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 14 of 14
Search took 0.05 seconds.
Search: Posts Made By: Atlan
Forum: Java and JSP 01-21-2013, 01:32 AM
Replies: 1
Views: 374
Posted By Atlan
Formating a JTextField

Hi again.

I'm creating a form, which uses JTextFields to enter and store text.

The problem is, I create a large JTextField, which has room to store about 4 lines of text. But the text doesn't...
Forum: Java and JSP 01-02-2013, 07:53 PM
Replies: 4
Views: 1,451
Posted By Atlan
Ah ha! That did it! Thanks a bunch.

Ah ha! That did it! Thanks a bunch.
Forum: Java and JSP 12-30-2012, 07:31 PM
Replies: 4
Views: 1,451
Posted By Atlan
I tried using a loop, but I ran into a problem. ...

I tried using a loop, but I ran into a problem.

for(int wb = 0; wb < 60; wb++)
{
arsenalSel[wb].addActionListener(new ActionListener()
{
public void...
Forum: Java and JSP 12-29-2012, 10:53 PM
Replies: 4
Views: 1,451
Posted By Atlan
Linking an ActionListener to an array

Hi again

I've got a lot of mostly identical JButtons (60), which I put into an array, to save time.

JButton[] arsenalSel = new JButton[60];

which I add with a For loop

GridBagConstraints...
Forum: Java and JSP 11-24-2012, 11:23 PM
Replies: 0
Views: 559
Posted By Atlan
drawing graphics in java

Hello all

I'm trying to draw a fairly simple image in Java, using the basic methods- drawOval, drawLine, and drawRect. Simple, but time consuming.

I mean, say I'm drawing a line. I enter all 4...
Forum: Java and JSP 09-22-2012, 01:40 AM
Replies: 8
Views: 1,339
Posted By Atlan
Ok... I'm man enough to admit when I'm stumped. ...

Ok... I'm man enough to admit when I'm stumped.

I want to store the text (about 20 characters worth at maximum), in a string, from which I'll send it to various other classes. Why do I need a...
Forum: Java and JSP 09-21-2012, 08:36 PM
Replies: 8
Views: 1,339
Posted By Atlan
Thats how I want it to work, yes. Ideally,...

Thats how I want it to work, yes.

Ideally, the contents of the JTextField will always, instantly, update the String I store it in.
Forum: Java and JSP 09-21-2012, 04:26 AM
Replies: 8
Views: 1,339
Posted By Atlan
It really is. Anyone know whats going wrong? And...

It really is. Anyone know whats going wrong? And how to fix it?
Forum: Java and JSP 09-21-2012, 03:19 AM
Replies: 8
Views: 1,339
Posted By Atlan
You were right about the KeyListener, it solved...

You were right about the KeyListener, it solved my problems.

Unfortunately, it also created one. The Backspace command it wonky.

Here's how it works:
(text in text box) (text stored in...
Forum: Java and JSP 09-19-2012, 02:25 AM
Replies: 8
Views: 1,339
Posted By Atlan
JTextField problem

Hi everyone

I'm making a small program using Java. As part of this, the user is able to enter text in a JTextField (in a JPanel).

My problem is, the only way that the actionlistener will...
Forum: Java and JSP 09-02-2012, 10:50 PM
Replies: 1
Views: 742
Posted By Atlan
Actionlistener problem

Hey everyone.

I'm working on a project with JFrame, and I've got a problem I can't solve.

The basic idea is, I'm writing a gui for another class. The Gui needs to be able to add information...
Forum: Java and JSP 08-24-2012, 05:55 AM
Replies: 2
Views: 1,076
Posted By Atlan
Complete success! Thanks a bunch.

Complete success! Thanks a bunch.
Forum: Java and JSP 08-24-2012, 04:17 AM
Replies: 2
Views: 1,076
Posted By Atlan
Rounding up an integar

Hi all

I'm trying to write a small function which has to, at one point, round a number UP to the nearest multiple of 5.

In theory, the results should be:
4 rounds up to 5
5 rounds up to 5
6...
Forum: Java and JSP 07-27-2012, 12:35 AM
Replies: 1
Views: 565
Posted By Atlan
Drawing images in Java

Hi all.

I'm trying to use Java to make a map designer for a tabletop rpg. So far, its going fairly well, but I've got one big problem: When I display the map, if I manipulate the image box (make...
Showing results 1 to 14 of 14

 
Forum Jump

All times are GMT +1. The time now is 12:28 PM.