J
Justin
I have a class that extends a JDialog component. Within the
constructor, I call an addWidgets method. That method contains the
line in question:
Font nameFont = getFont().deriveFont(1,30);
This line is causing a null pointer exception. I dont understand why,
if someone could help me create the new font and explain to me why this
causes an error, it would be greatly appreciated.
Also the import list is as follows:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.awt.font.*;
Thanks
constructor, I call an addWidgets method. That method contains the
line in question:
Font nameFont = getFont().deriveFont(1,30);
This line is causing a null pointer exception. I dont understand why,
if someone could help me create the new font and explain to me why this
causes an error, it would be greatly appreciated.
Also the import list is as follows:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.awt.font.*;
Thanks