Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Markrp

    sub classes and accessing methods

    The problem is two JPanels added to a JFrame, within 1 JPanel(newTop) it has a JLabel and the other JPanel(newPanel) has a Jbutton. I want to click a button in one panel and update the label in the other.. Any ideas public class Gui { public Gui() { JFrame newFrame = new JFrame("Test")...
  2. Markrp

    JButton

    I Have array of JButtons if a 8x8 grid I want to click a button and change the icon of another in the grid (not the one clicked), I dont seem to be able to access the array outside the mouse listener. class test { //cant access this why? private JButton but[] = new JButton[64]; private class...
  3. Markrp

    MouseListener problem

    Thanks this has helped.
  4. Markrp

    MouseListener problem

    This is the code private class MyMouseAdapter extends MouseAdapter { MyMouseAdapter (){} public void mouseClicked(MouseEvent event) { if(event.isMetaDown()) { JOptionPane.showMessageDialog(null,"RIGHT"); } else {...

Part and Inventory Search

Back
Top