Skip to content

Commit 06efbc8

Browse files
committed
Update package name in README.md
1 parent 7c27d3c commit 06efbc8

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
# swing-stream-utils
55
Utils for working with Java Swing components via Java 8 streams.
66

7-
Functionality of the library is provided by the static methods of class `org.swingk.utils.stream.SwingStreamUtils`.
7+
Functionality of the library is provided by the static methods of class `io.github.swingk.stream.SwingStreamUtils`.
88
The methods may be divided into two categories: those which allow to iterate (or stream) over data items of Swing components
99
(e.g. `SwingStreamUtils.stream`) and collectors which allow to create Swing components from a stream data (e.g. `SwingStreamUtils.toTable`).
1010

1111
Example 1 (count how many times `JTable` cell value "London" appears in the selected cells of column 3):
1212
```java
13-
import org.swingk.utils.stream.SwingStreamUtils;
14-
import org.swingk.utils.stream.TableCellData;
13+
import io.github.swingk.stream.SwingStreamUtils;
14+
import io.github.swingk.stream.TableCellData;
1515

1616
JTable table = ...;
1717
long count = SwingStreamUtils.stream(table)
@@ -35,9 +35,9 @@ Example 2 (create table with 'Name' and 'Size' columns from a list of `File` obj
3535
import java.io.File;
3636
import java.util.List;
3737

38-
import org.swingk.utils.stream.ColumnDef;
38+
import io.github.swingk.stream.ColumnDef;
3939

40-
import static org.swingk.utils.stream.SwingStreamUtils.toTable;
40+
import static io.github.swingk.stream.SwingStreamUtils.toTable;
4141

4242
List<File> files = ...;
4343
/* FileTable is a subclass of JTable */
@@ -51,9 +51,9 @@ Example 3 (create a table with specific model class):
5151
import java.io.File;
5252
import java.util.List;
5353

54-
import org.swingk.utils.stream.ColumnDef;
54+
import io.github.swingk.stream.ColumnDef;
5555

56-
import static org.swingk.utils.stream.SwingStreamUtils.toTable;
56+
import static io.github.swingk.stream.SwingStreamUtils.toTable;
5757

5858
List<File> files = ...;
5959
FileTable table = files.stream()
@@ -71,9 +71,9 @@ Example:
7171
import java.io.File;
7272
import java.util.function.Supplier;
7373

74-
import org.swingk.utils.stream.ColumnDef;
74+
import io.github.swingk.stream.ColumnDef;
7575

76-
import static org.swingk.utils.stream.SwingStreamUtils.toTable;
76+
import static io.github.swingk.stream.SwingStreamUtils.toTable;
7777

7878
enum Column implements Supplier<ColumnDef<File>> {
7979
NAME(new ColumnDef<>("Name", File::getName, 100, String.class)),
@@ -110,7 +110,7 @@ import java.io.File;
110110
import java.util.List;
111111
import javax.swing.JComboBox;
112112

113-
import static org.swingk.utils.stream.SwingStreamUtils.toComboBox;
113+
import static io.github.swingk.stream.SwingStreamUtils.toComboBox;
114114

115115
List<File> files = ...;
116116
JComboBox<String> = files.stream()
@@ -125,7 +125,7 @@ import java.util.stream.Collectors;
125125
import java.awt.Component;
126126
import java.awt.Container;
127127

128-
import static org.swingk.utils.stream.SwingStreamUtils.streamDescendants;
128+
import static io.github.swingk.stream.SwingStreamUtils.streamDescendants;
129129

130130
Container container = ...;
131131
List<Component> visibleDescendants = streamDescendants(container)
@@ -138,7 +138,7 @@ Example 6 (find all unselected combo box items which start with a letter "z"):
138138
```java
139139

140140

141-
import org.swingk.utils.stream.SwingStreamUtils;
141+
import io.github.swingk.stream.SwingStreamUtils;
142142

143143
JComboBox<String> comboBox = ...;
144144
List<String> visibleDescendants = SwingStreamUtils.stream(comboBox)
@@ -153,9 +153,9 @@ import java.util.Optional;
153153
import javax.swing.JTree;
154154
import javax.swing.tree.TreeNode;
155155

156-
import org.swingk.utils.stream.KTreePath;
157-
import org.swingk.utils.stream.SwingStreamUtils;
158-
import org.swingk.utils.stream.TreeTraversalType;
156+
import io.github.swingk.stream.KTreePath;
157+
import io.github.swingk.stream.SwingStreamUtils;
158+
import io.github.swingk.stream.TreeTraversalType;
159159

160160
JTree tree = ...;
161161
TreeNode node = ...;
@@ -168,9 +168,9 @@ It is worth mentioning that in most cases (check JavaDoc) the utility ensures th
168168
```java
169169
import java.util.List;
170170
...
171-
import org.swingk.utils.stream.ColumnDef;
171+
import io.github.swingk.stream.ColumnDef;
172172

173-
import static org.swingk.utils.stream.SwingStreamUtils.toTable;
173+
import static io.github.swingk.stream.SwingStreamUtils.toTable;
174174

175175
// may be not EDT (for example, Swing worker background thread)
176176
List<Server> servers = ...;
@@ -184,9 +184,9 @@ JTable table = servers.parallelStream() // OK to use parallel stream!
184184
```java
185185
import java.util.List;
186186
...
187-
import org.swingk.utils.stream.ColumnDef;
187+
import io.github.swingk.stream.ColumnDef;
188188

189-
import static org.swingk.utils.stream.SwingStreamUtils.toTableModel;
189+
import static io.github.swingk.stream.SwingStreamUtils.toTableModel;
190190

191191
// may be executed on any thread
192192
List<User> users = ...;

0 commit comments

Comments
 (0)