pls i need to change the image on a Jlabel to another image when a user inputs a string word "change".

How do i go about it?

By caling JLabel.setIcon() in whatever event you're using to process input.

yourLabelName.setIcon( yourIconName);

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.