• Post Reply Bookmark Topic Watch Topic
  • New Topic

Center a JLabel

 
dan Ranity
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there i am new to guis but iam trying to make a sudoku game and iam playing around with > and < sign but they are not centred beetween the box. This is what i got.



The question is how do i centre this ?
Thanks for the help
 
Paul Clapham
Sheriff
Posts: 21892
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi dan, welcome to the Ranch!

As for your question: without knowing what layout manager is being used to arrange your GUI, and what other things are in that GUI, and what you want the JLabel centred within, it's impossible to answer that. Could you provide a small example (see the SSCCE page for more details) which illustrates your question?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!