it is suppose to be a constructer call because I want to be able to use the entire array. but i have no idea how to make that call :S
Type: Posts; User: lf2killer
it is suppose to be a constructer call because I want to be able to use the entire array. but i have no idea how to make that call :S
so i should make it like this: when i call my method?
UsernameArrayHolder username = new UsernameArrayHolder();
PasswordArrayHolder password = new PasswordArrayHolder();...
hi there :)
i have this class here:
public class UsernameArrayHolder {
public String[] UsernameArrayHolder() { //need identifier
...
don't i do that with
login.addActionListener(new login());
or is that just me that is wrong? because i can make it work if i take it out of the login method there then it works butn when i put...
and what does that mean?
Hello there :)
i have this simple login function where i compare what you write with what is in the array and if it is the same it will open a new window else nothing will happen but it doesn't seem...
i'm pretty sure i have done that
Hello i'm trying to call my login class from my main to run the program, but i don't know what i'm doing wrong :/
i get this error here:
Bank.java:24: error: constructor testlogin in class...
okay :)
but how do i remove the frame from the code you gave me bacause I tried to cut it own, but the code wont work after that?
Thanks for that :)
but i have other objects which i change into when i press different buttons, would it be better if placed all them in my main and then called my method on how to do diffrent...
Hello i have this little program here, what i would like to happen is when i press the login button it makes that dialog dissapear and open a new frame. I can make that happen but i can't make the...
i have my first method
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
public class login implements ActionListener {
i have this code here:
import java.io.*
public class ReadLastLine {
public static void main(String[] args) throws Exception {
FileInputStream in = new FileInputStream("test.txt");
ok thanks :) but what should i do it to run? make a new public class where i call this method?
public class textAreaTest {
public final JTextArea Center = new JTextArea(400, 500);
public...
hello there i have a problem where my Center is out of scope of do i make it in scope? :)
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
public class...
Thanks for the reply now i have been trying to make sense of it with that but with no luck :s
I have a Jframe and in that i have a JTextArea and two buttons and when i press one button it displays...
Hello there :)
i'm trying to make a button where i push that and it display what is in the text file on the JTextArea, but i can't not make it to work when i press the button i have no idea how to...
when i tried what part?
it don't need to be secure at all ^^ that is not my focus point at the moment now i just want a login system and be able to open you personal file ^^
--- Update ---
But i have onemore quiestion...
Hello there :)
i have question i wonder if it possible.
I have a simple GUI where i have a log-in system, but i want to know if it possible to keep the log-in information in a txt file. and when...
Thanks alot :)
Hello
i'm trying to make a simple program and when i press a button i open up a new window but how do i make the old one disappear?
can't find out how i'm doing :S
here is my code for the...
ye okay :/ but isn't there a way to do it without arrays? :S
Hello there :)
i have some names in a txt file that i put in jGrasp, then i want to make the names in alphabetically order in a other txt file.
is there a command to do that? i have been looking...
Thanks but i got it to work late but if you wanted to know what i tired to create here is the code :)
import java.util.*;
public class dicegame11_0_gruppe_5 {
public static void main...