Hello, i'm new to Java and i'm trying to learn the basics. Problem is i want to make this buttons top to bottom, Tried some but kinda confused here. Please help
Here is my code
JPanel mainPannel = new JPanel();
JButton jbt1 = new JButton("Шинээр үүсгэх");
JButton jbt2 = new JButton("Хугацаа сунгах");
JButton jbt3 = new JButton("Данс хаах");
JButton jbt4 = new JButton("Архив");
JButton jbt5 = new JButton("Прогрaмыг хаах");
mainPannel.setBorder(new TitledBorder("Үндсэн Цэс"));
//Create font and a line border
Font largeFont = new Font("ArialMon", Font.BOLD, 20);
Border lineBorder = new LineBorder(Color.BLACK, 2);
//Add panel to mainFrame
JPanel listPane = new JPanel();
listPane.setLayout(new BoxLayout(listPane, BoxLayout.Y_AXIS));
I know how to do a JButton, but the thing is, I don't want that to say Play, Quit, etc.. I want to customise it, like say in Minecraft, where the Singleplayer button is on a stone; or in Papers, please, the button for Story Mode is underlined with dots. You know what I mean.
I've tried searching around the internet, but all they show is the JButton code, not how to customise.
I want to handle 404 page not found exception in my Spring MVC web app, I'm using SPRING 4.2.5.RELEASE, I had read several question regarding this topic but the similar questions are using a different spring java configuration.
I have a Global Exception Handler Controller class that have all my Exceptions, this class works fine but I can't handle a 404 page not found exception.
This is the approach that I take following a tutorial
1) I created a class named ResourceNotFoundException that extends from RuntimeException and I putted this annotation over the class definition
But still when I put a URL that doesn't exist I get this error "No mapping found for HTTP request with URI"
The questions that I had read said that I need to enable to true an option for the Dispatcher but since my configuration it's different from the other questions and I don't have a Web.xml I couldn't apply that.