is there anyway of unspecifying the size of an array so the number of elements input can vary each time?
I'm currently using an array to store values entered which are then manipulated but the array is set to 100000 and is creating problems.
Thanks in advance
the only place that JTextField is used is in the following code
public void createHome()
{
homep = new JPanel();
homep.setLayout( null);
JLabel infoH = new JLabel("Test");
infoH.setBounds(30, 10, 375, 20);
homep.add(infoH);
JLabel home1 =...
The error displayed is
Exception occurred during event dispatching:
java.lang.NullPointerException
at ChangeHome.newHome(ChangeHome.java:219)
at ChangeHome.access$100(ChangeHome.java:7)
at ChangeHome$2.actionPerformed(ChangeHome.java:125)
at...
I want to get text from a JTextField when a button is pressed, however at the moment I'm getting a huge error message from Java at the command prompt when i press the button.
The code is below
private void newPage()
{
page = fieldad.getText();
fieldad.setEnabled(false);
}...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.