private void setVals(){ Properties props = myService.getRegistrationProperties(); Object[][] objs = new Object[props.size()][2]; int i = 0; for(Entry e : props.entrySet()){ objs[i][0] = e.getKey(); objs[i][1] = e.getValue(); i++; } tblProperties.setModel(new DefaultTableModel( objs, new String []{"Property Name", "Value"})); int h = tblProperties.getRowCount() * (tblProperties.getRowHeight()+tblProperties.getRowMargin()); Dimension dim = pnlProperties.getSize(); dim.setSize(dim.width, h); Dimension dim2 = tblProperties.getSize(); Dimension d2 = new Dimension(dim2.width, h); //tblProperties.setSize(d2); pnlProperties.setPreferredSize(d2); }
private void setVals(){ Properties props = myService.getRegistrationProperties(); Object[][] objs = new Object[props.size()][2]; int i = 0; for(Entry e : props.entrySet()){ objs[i][0] = e.getKey(); objs[i][1] = e.getValue(); i++; } tblProperties.setModel(new DefaultTableModel( objs, new String []{"Property Name", "Value"})); int h = tblProperties.getRowCount() * (tblProperties.getRowHeight()+tblProperties.getRowMargin()); Dimension dim = pnlProperties.getSize(); dim.setSize(dim.width, h); Dimension dim2 = tblProperties.getSize(); Dimension d2 = new Dimension(dim2.width, h); //tblProperties.setSize(d2); pnlProperties.setPreferredSize(d2); }
thals.getRegistrationProperties().stringPropertyNames()){ for(String f : myFilters){ Pattern p = Pattern.compile( thals.getRegistrationProperties().stringPropertyNames()){ for(String f : myFilters){ Pattern p = Pattern.compile( ".*" + f + ".*", Pattern.MULTILINE | Pattern.DOTALL); if(thals.getRegistrationProperties().getProperty(s) != null && p.matcher( thals.getRegistrationProperties().getProperty( s)).matches()){ return (myAvailability.equals("Available") &&
thals.getRegistrationProperties().stringPropertyNames()){ for(String f : myFilters){ Pattern p = Pattern.compile( thals.getRegistrationProperties().stringPropertyNames()){ for(String f : myFilters){ Pattern p = Pattern.compile( ".*" + f + ".*", Pattern.MULTILINE | Pattern.DOTALL); if(thals.getRegistrationProperties().getProperty(s) != null && p.matcher( thals.getRegistrationProperties().getProperty( s)).matches()){ return (myAvailability.equals("Available") &&